update-taptap-mcp · git:20260618.5765f21 · 2026-06-18 · sha256 baf64e2941f5deaf
update-taptap-mcp git:20260618.5765f21A
Immutable. This exact content never changes and is served at /api/v1/blob/baf64e2941f5deaf.
--- 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. ## Required Steps 1. 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`. 2. 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`. 3. 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, run `npx -y -p @taptap/maker taptap-maker upgrade` without `--target-dir` only after explaining that project `AGENTS.md` will not be updated. 4. 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`. 5. After restart/reconnect, verify by reading `maker://status`; if resources are unavailable, call `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.