update-taptap-mcp · git:20260623.bf4ecf0 · 2026-06-23 · sha256 99ccad057c49c3a4
update-taptap-mcp git:20260623.bf4ecf0A
Immutable. This exact content never changes and is served at /api/v1/blob/99ccad057c49c3a4.
--- name: update-taptap-mcp description: 更新本地 TapTap Maker MCP 到最新版本。当用户说"更新 taptap mcp"、"tap mcp 有新版本"、"刷新 mcp"、"升级 Maker MCP"时触发。 --- # TapTap Maker MCP Upgrade Workflow Use the CLI upgrade entry instead of hand-writing npm cache or client-config scripts. Maker local development is published by `@taptap/maker`; do not update the legacy main Open API package for Maker workflows. ## Scope This workflow upgrades only the current machine and the current Maker project directory. - Do not scan unrelated Maker projects. - Do not batch-upgrade multiple projects. - Do not delete old config backup files. Historical `.bak.*` files have no reliable ownership marker and must be left untouched. - The MCP status surface only checks the package policy and reports `required_upgrade`, `update_available`, `current`, `unavailable`, or `skipped`. It never runs `taptap-maker upgrade` by itself. ## Required Steps 1. Read `maker://status`; if resources are unavailable, fall back to `maker_status_lite`. If the `Maker MCP package update` section reports `required_upgrade`, explain the version reason to the user first. Do not run any upgrade command before that explanation and approval step. 2. Identify the current Maker project directory. Use `--target-dir` only when the directory is confirmed to be a Maker project, which means it or one of its parents contains `.maker-mcp/config.json`. 3. If the AI client has exactly one attached workspace and that workspace is the Maker project, use that workspace as `<PROJECT_DIR>`. If there are multiple workspaces, or the current directory is not clearly a Maker project, ask the user for the Maker project directory before using `--target-dir`. 4. After the user approves the upgrade, run the current package upgrade command for the confirmed project: ```bash npx -y -p @taptap/maker taptap-maker upgrade --target-dir <PROJECT_DIR> ``` If the user only wants one client, pass `--ide codex`, `--ide cursor`, or `--ide claude`. If the user only wants to refresh the machine-level MCP command and no Maker project directory is confirmed, explain that this refresh will not update project `AGENTS.md`, then run `npx -y -p @taptap/maker taptap-maker upgrade` without `--target-dir` only after the user agrees. 5. Ask the user to restart/reconnect the AI client MCP session, or open a new AI conversation. Current conversations usually do not hot-load a new MCP process or re-read `AGENTS.md`. 6. After restart/reconnect, verify by reading `maker://status`; if resources are unavailable, call `maker_status_lite`. ## Status-Driven Upgrade Notes - Trigger timing is limited to the startup asynchronous check and the 12-hour TTL lazy check from `maker://status` / `maker_status_lite`. - Business tools do not trigger version checks. - The remote policy fields are `schema_version`, `latest`, `latest_beta`, `minimum_supported`, `blacklist`, and `message`. - `required_upgrade` means the local AI must explain the reason, ask the user for approval, and only then run the appropriate upgrade command. - After any upgrade, restart or reconnect the MCP session before trusting the new status, then verify with `maker://status` or `maker_status_lite`. ## Expected Effects `taptap-maker upgrade` performs current-directory upgrade work: - Refreshes AI client MCP config to launch `npx -y -p @taptap/maker taptap-maker`. - Pins `cwd` to the current Maker project when `--target-dir` is provided. - Updates the current project's TapTap Maker managed `AGENTS.md` policy block when the directory is bound to a Maker project. - Keeps user-written `AGENTS.md` content outside the managed block. - Writes only `<config>.taptap-maker.bak.latest` when a client config actually changes. - Does not create timestamp config backups and does not delete old backups. ## If Upgrade Appears Not To Take Effect If `maker://status` still shows an old package, wrong `cwd`, or missing Maker proxy tools after restart/reconnect, check whether a project-level MCP config is overriding user/global config. Common project-level files include: - `.mcp.json` - `.codex/config.toml` - `.codex/mcp.json` - `.cursor/mcp.json` - `.vscode/mcp.json` - `codex.toml` Do not migrate, delete, or edit these project-level files automatically. Explain the finding and ask the user whether they want to move Maker MCP configuration to user/global scope. ## Old Project Handling When a user upgrades MCP and later opens an old Maker project: 1. Read `maker://status` first. 2. If the `AGENTS.md` section reports `missing_file`, `missing_block`, or `outdated`, run: ```bash npx -y -p @taptap/maker taptap-maker agents update --target-dir <PROJECT_DIR> ``` 3. Tell the user to restart/reconnect the AI client or open a new conversation so the updated `AGENTS.md` instructions are loaded. Status reads are intentionally read-only. Do not modify `AGENTS.md` from `maker://status` or `maker_status_lite`; use the CLI update command.