@taptap/maker 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/maker.js +965 -434
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +84 -21
- package/skills/update-taptap-mcp/SKILL.md +60 -173
package/package.json
CHANGED
|
@@ -34,7 +34,8 @@ Keep this split clear:
|
|
|
34
34
|
|
|
35
35
|
- Skill: user intent, step order, whether to ask the user, friendly explanations, failure recovery.
|
|
36
36
|
- CLI: save PAT, fetch app list, clone, prepare dev kit, install MCP config, verify local setup,
|
|
37
|
-
|
|
37
|
+
update the current project's managed `AGENTS.md` policy block, and run the local runtime log
|
|
38
|
+
watcher, including runtime log polling.
|
|
38
39
|
- MCP tools/resources: inspect Maker status and run the combined commit/push/build path.
|
|
39
40
|
|
|
40
41
|
Do not reimplement Maker API calls or Git authentication in shell when the Maker CLI or MCP tool
|
|
@@ -42,15 +43,49 @@ exists.
|
|
|
42
43
|
|
|
43
44
|
## Main Intent Table
|
|
44
45
|
|
|
45
|
-
| User intent | Required workflow
|
|
46
|
-
| --------------------------------------------------------- |
|
|
47
|
-
| initialize / configure / continue Maker local development | Run the Maker CLI initialization workflow.
|
|
48
|
-
| clone / download Maker project locally | Follow "Initialization Workflow"; do not ask for app_id directly.
|
|
49
|
-
| status / is Maker ready | Read `maker://status`, call `maker_status_lite` if resources are unavailable, then follow `Maker remote sync` if present.
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
46
|
+
| User intent | Required workflow |
|
|
47
|
+
| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
48
|
+
| initialize / configure / continue Maker local development | Run the Maker CLI initialization workflow. |
|
|
49
|
+
| clone / download Maker project locally | Follow "Initialization Workflow"; do not ask for app_id directly. |
|
|
50
|
+
| status / is Maker ready | Read `maker://status`, call `maker_status_lite` if resources are unavailable, then follow `AGENTS.md` and `Maker remote sync` hints if present. |
|
|
51
|
+
| upgrade Maker MCP / old project policy | Run `taptap-maker upgrade` for the current project directory; do not scan unrelated Maker projects. |
|
|
52
|
+
| submit / commit / push to Maker | Inspect local Git state, summarize changed files, then call `maker_build_current_directory` unless blocked. |
|
|
53
|
+
| pull / update from remote | Inspect local changes first; if dirty, explain options before pulling. |
|
|
54
|
+
| conflict / merge failed | Explain why the conflict happened, list conflict files, inspect conflict hunks, propose a resolution plan, and ask before editing. |
|
|
55
|
+
| build / preview / run / verify | Use `maker_build_current_directory`; it starts the local runtime log watcher after a successful remote build result. |
|
|
56
|
+
|
|
57
|
+
## Create New Maker Project Intent
|
|
58
|
+
|
|
59
|
+
Treat these user phrases as an explicit request to create a new Maker project:
|
|
60
|
+
|
|
61
|
+
- 创建新项目
|
|
62
|
+
- 创建项目
|
|
63
|
+
- 创建maker项目
|
|
64
|
+
- 创建 Maker 项目
|
|
65
|
+
- 创建游戏
|
|
66
|
+
- 创建新游戏
|
|
67
|
+
- 创建新游戏/项目
|
|
68
|
+
- 新建项目
|
|
69
|
+
- 新建游戏
|
|
70
|
+
|
|
71
|
+
When this intent is present, project creation has higher priority than matching an existing app by
|
|
72
|
+
name. If the current directory is unbound, guide the user into the Maker init creation path:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
taptap-maker init --create
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
If the user already provided a project/game name, pass it explicitly:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
taptap-maker init --create --name "<PROJECT_NAME>"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
If no name is provided, ask for the project name or suggest the current directory name as the
|
|
85
|
+
default, but do not silently invent a name. If the current directory is already bound to a Maker
|
|
86
|
+
project, do not create a new project there; tell the user to open or create a new independent
|
|
87
|
+
directory first. A same-name app may be shown as an alternative existing-project choice, but a
|
|
88
|
+
same-name app must not override the user's explicit create-project intent.
|
|
54
89
|
|
|
55
90
|
## Maker Git Workflow Policy
|
|
56
91
|
|
|
@@ -94,10 +129,19 @@ This guidance helps users prefer Maker-managed tools for Maker game assets.
|
|
|
94
129
|
- Local proxy may convert resolvable local reference media to data URLs before forwarding.
|
|
95
130
|
- If a Maker proxy tool returns an error or `isError`, report the full remote result/error payload.
|
|
96
131
|
Include the server response payload so developers can diagnose the issue.
|
|
132
|
+
- Use `create_3d_model_task` for game 3D models.
|
|
133
|
+
- Use `query_3d_model_task` for polling 3D model tasks.
|
|
134
|
+
- Before `edit_image`, resolve dragged or referenced images to a local project image path or CDN
|
|
135
|
+
URL. If the user references an attached/local image, inspect the attachment or workspace file path
|
|
136
|
+
first. If the image is under `assets/image`, pass that path. If only a file name is given, search
|
|
137
|
+
`assets/image` for the matching file.
|
|
138
|
+
- Do not call `edit_image` without an image path or CDN URL.
|
|
97
139
|
|
|
98
140
|
Generated assets should be saved by Maker MCP under `assets/image`, `assets/video`, or
|
|
99
|
-
`assets/audio
|
|
100
|
-
|
|
141
|
+
`assets/audio`; generated 3D model outputs save the original GLB/FBX and MDL zip under
|
|
142
|
+
`assets/model`, then extract MDL contents into `assets/Meshes`, `assets/Materials`,
|
|
143
|
+
`assets/Textures`, and `assets/Prefabs`. Do not prefer client-native image generation when the user
|
|
144
|
+
is asking for Maker game assets in a bound project.
|
|
101
145
|
|
|
102
146
|
## Project Detection
|
|
103
147
|
|
|
@@ -109,6 +153,13 @@ A directory is a Maker project when the user's current project directory or one
|
|
|
109
153
|
|
|
110
154
|
When this file exists, explain that the directory is already bound to a Maker project.
|
|
111
155
|
|
|
156
|
+
For a bound project, always inspect `maker://status` or `maker_status_lite` before continuing
|
|
157
|
+
development after an MCP/package upgrade. If the status includes an `AGENTS.md` section with
|
|
158
|
+
`status: missing_file`, `missing_block`, or `outdated`, run
|
|
159
|
+
`taptap-maker agents update --target-dir <project dir>` or `taptap-maker upgrade --target-dir
|
|
160
|
+
<project dir>` before making gameplay/code changes. After updating `AGENTS.md`, tell the user to
|
|
161
|
+
restart/reconnect the AI client or open a new conversation so the updated instructions are loaded.
|
|
162
|
+
|
|
112
163
|
When this file is missing and the user asks to clone, initialize, or continue Maker local
|
|
113
164
|
development, do not ask the user for an app_id directly. Follow the initialization workflow.
|
|
114
165
|
|
|
@@ -138,8 +189,9 @@ directory.
|
|
|
138
189
|
### Proxy Tools Missing From The Current Session
|
|
139
190
|
|
|
140
191
|
If the user is in a bound Maker project but `generate_image`, `batch_generate_images`, `edit_image`,
|
|
141
|
-
`create_video_task`, `query_video_task`,
|
|
142
|
-
diagnose the MCP cwd before
|
|
192
|
+
`create_video_task`, `query_video_task`, `text_to_music`, `create_3d_model_task`, or
|
|
193
|
+
`query_3d_model_task` are missing from the current AI tool list, diagnose the MCP cwd before
|
|
194
|
+
suggesting repeated restarts:
|
|
143
195
|
|
|
144
196
|
1. Read `maker://status` or call `maker_status_lite` without `target_dir` to see the MCP server cwd.
|
|
145
197
|
2. If the user provides or the client exposes the real Maker project directory, call
|
|
@@ -187,8 +239,12 @@ Workflow:
|
|
|
187
239
|
login/project clone/MCP config, then guide the user to retry `taptap-maker python setup` with
|
|
188
240
|
the current AI or install Python 3.12 manually and run `taptap-maker python doctor`.
|
|
189
241
|
5. Run `taptap-maker init` in the user's intended Maker directory. The CLI will request PAT if
|
|
190
|
-
missing, fetch TapTap token, show a paged app preview, ask the user to choose
|
|
191
|
-
|
|
242
|
+
missing, fetch TapTap token, show a paged app preview, ask the user to choose or create a Maker
|
|
243
|
+
project, clone the Maker project, prepare the AI dev kit, and install/verify MCP config.
|
|
244
|
+
The app preview always includes `0,创建新项目 / 0. Create a new Maker project`. This row must
|
|
245
|
+
remain visible when an AI summarizes or truncates a long app list, even if another app name
|
|
246
|
+
appears to match the current directory. Users can choose `0`/`new` and enter a project name,
|
|
247
|
+
or use `taptap-maker init --create --name "my-local-game"` for non-interactive runs.
|
|
192
248
|
The generated MCP config pins the selected Maker project directory as `cwd` when the target
|
|
193
249
|
client supports it. If a user manually reinstalls MCP config later, prefer
|
|
194
250
|
`taptap-maker mcp install --target-dir <PROJECT_DIR>`.
|
|
@@ -284,7 +340,8 @@ a Maker project, or when the user explicitly asks to switch or re-clone.
|
|
|
284
340
|
|
|
285
341
|
If the current directory is already bound, app lists from `taptap-maker apps` are reference only.
|
|
286
342
|
Continue operating on the current bound project. When the user explicitly requests a different
|
|
287
|
-
project
|
|
343
|
+
project or wants to create a new project, require a new independent directory before starting the
|
|
344
|
+
project selection or creation flow.
|
|
288
345
|
|
|
289
346
|
When app selection is needed, show the returned app preview and total count, then ask the user to
|
|
290
347
|
choose by index, app id, or name. The default preview shows the 40 most recently active apps.
|
|
@@ -293,17 +350,21 @@ full list, or run `taptap-maker apps --all` for a one-shot human-readable dump;
|
|
|
293
350
|
`taptap-maker apps --json` only when AI / scripts need the machine-readable list. If the
|
|
294
351
|
chat/client width is enough, you may present the preview as a compact two-column layout;
|
|
295
352
|
otherwise keep a single column. Keep app_id visible in every app row, and include the preview
|
|
296
|
-
details instead of only a summary such as "40 apps are available".
|
|
353
|
+
details instead of only a summary such as "40 apps are available". Always preserve and show
|
|
354
|
+
`0,创建新项目 / 0. Create a new Maker project`, because it is the supported creation entry even
|
|
355
|
+
when the app preview is cropped or a same-name app exists.
|
|
297
356
|
|
|
298
357
|
Selection confirmation:
|
|
299
358
|
|
|
300
359
|
- Ask the user to choose by index, app id, or name.
|
|
360
|
+
- If the user wants a new project, tell them to choose `0`/`new` in `taptap-maker init` and enter a
|
|
361
|
+
project name; do not invent a project name unless the user explicitly asks the AI to name it.
|
|
301
362
|
- Treat the user's explicit reply as the selected app.
|
|
302
363
|
- If there is only one app, still ask for confirmation before selecting it.
|
|
303
364
|
|
|
304
|
-
After the user chooses, route the next action to `taptap-maker init` so the
|
|
305
|
-
workflow can continue
|
|
306
|
-
through the supported CLI option.
|
|
365
|
+
After the user chooses or creates a project, route the next action to `taptap-maker init` so the
|
|
366
|
+
Maker initialization workflow can continue. For non-interactive CLI runs, pass the selected app id
|
|
367
|
+
through the supported CLI option, or use `--create --name <NAME>` for creation.
|
|
307
368
|
|
|
308
369
|
## Working Directory Compliance Check
|
|
309
370
|
|
|
@@ -317,6 +378,8 @@ After `taptap-maker doctor`, decide whether the directory is suitable for clone:
|
|
|
317
378
|
|
|
318
379
|
- If the directory is already bound to a Maker project, do not clone again unless the user
|
|
319
380
|
explicitly asks to switch or re-clone.
|
|
381
|
+
- If the directory is already bound to a Maker project and the user wants a new project, stop and
|
|
382
|
+
require a new independent directory; do not create a new Maker project into the existing binding.
|
|
320
383
|
- If Git is missing, stop and tell the user to install Git first.
|
|
321
384
|
- If `Maker Git directory` reports `inside_parent_git_repo` or `target_is_git_root: no` with an
|
|
322
385
|
outer `git_root`, explain that the directory is under another Git repository. Recommend a
|
|
@@ -1,203 +1,90 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: update-taptap-mcp
|
|
3
|
-
description: 更新本地
|
|
3
|
+
description: 更新本地 TapTap Maker MCP 到最新版本。当用户说"更新 taptap mcp"、"tap mcp 有新版本"、"刷新 mcp"、"升级 Maker MCP"时触发。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# TapTap Maker MCP Upgrade Workflow
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Use the CLI upgrade entry instead of hand-writing npm cache or client-config scripts. Maker local
|
|
9
|
+
development is published by `@taptap/maker`; do not update the legacy main Open API package for
|
|
10
|
+
Maker workflows.
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
- 不建议安装到当前目录、项目目录或仓库级 scope,避免配置随项目变化或被误提交。
|
|
12
|
-
- 如果用户当前使用项目级配置,不要强制迁移,也不要阻塞更新;只说明推荐做法,并给出迁移方向。
|
|
13
|
-
- 具体迁移操作交给用户当前 AI 客户端处理,例如让客户端把 MCP 从 project/local scope 移到 user/global scope。
|
|
12
|
+
## Scope
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
This workflow upgrades only the current machine and the current Maker project directory.
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
# Windows (PowerShell)
|
|
26
|
-
|
|
27
|
-
## Step 0:友好提醒安装位置
|
|
28
|
-
|
|
29
|
-
```powershell
|
|
30
|
-
# 1. 项目级 .mcp.json(Claude Code / Codex 都会读)
|
|
31
|
-
if (Test-Path .mcp.json) {
|
|
32
|
-
if (Select-String -Path .mcp.json -Pattern 'taptap' -Quiet) {
|
|
33
|
-
Write-Host "ℹ️ 当前目录 .mcp.json 包含 taptap MCP。更新可以继续;建议后续迁移到 user/global scope。"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
# 2. Claude Code 项目级残留(~/.claude.json 的 projects[<path>].mcpServers)
|
|
38
|
-
$cj = "$env:USERPROFILE\.claude.json"
|
|
39
|
-
if (Test-Path $cj) {
|
|
40
|
-
$json = Get-Content $cj -Raw | ConvertFrom-Json
|
|
41
|
-
$json.projects.PSObject.Properties | ForEach-Object {
|
|
42
|
-
$projectPath = $_.Name
|
|
43
|
-
$servers = $_.Value.mcpServers
|
|
44
|
-
if ($servers) {
|
|
45
|
-
$servers.PSObject.Properties | Where-Object { $_.Name -match 'taptap' } | ForEach-Object {
|
|
46
|
-
Write-Host "ℹ️ Claude Code 项目级 taptap MCP:$($_.Name) under project $projectPath。更新可以继续;建议后续迁移到 user/global scope。"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
# user scope 正确位置
|
|
51
|
-
if ($json.mcpServers) {
|
|
52
|
-
$json.mcpServers.PSObject.Properties | Where-Object { $_.Name -match 'taptap' } | ForEach-Object {
|
|
53
|
-
Write-Host "✅ user scope 已安装:$($_.Name)"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
# 3. 常见项目级 MCP / AI 客户端配置。只查已知路径,避免扫到游戏资源或源码导致噪音。
|
|
59
|
-
$projectConfigPaths = @(
|
|
60
|
-
'.codex\config.toml',
|
|
61
|
-
'.codex\mcp.json',
|
|
62
|
-
'.cursor\mcp.json',
|
|
63
|
-
'.vscode\mcp.json',
|
|
64
|
-
'codex.toml'
|
|
65
|
-
)
|
|
66
|
-
foreach ($f in $projectConfigPaths) {
|
|
67
|
-
if ((Test-Path $f) -and (Select-String -Path $f -Pattern 'taptap' -Quiet)) {
|
|
68
|
-
Write-Host "ℹ️ $f 包含 taptap MCP。更新可以继续;建议后续迁移到 user/global scope。"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
如果发现项目级配置,只做友好提醒,不要中断更新流程。可以告诉用户:更新缓存可以继续;后续可让当前 AI 客户端把 MCP 从 project/local scope 迁移到 user/global scope。
|
|
16
|
+
- Do not scan unrelated Maker projects.
|
|
17
|
+
- Do not batch-upgrade multiple projects.
|
|
18
|
+
- Do not delete old config backup files. Historical `.bak.*` files have no reliable ownership
|
|
19
|
+
marker and must be left untouched.
|
|
74
20
|
|
|
75
|
-
##
|
|
76
|
-
|
|
77
|
-
```powershell
|
|
78
|
-
npm view '@taptap/maker' version
|
|
79
|
-
$NpxDir = Join-Path (npm config get cache) '_npx'
|
|
80
|
-
Get-ChildItem $NpxDir -Directory -ErrorAction SilentlyContinue | ForEach-Object {
|
|
81
|
-
$p = Join-Path $_.FullName 'node_modules\@taptap\instant-games-open-mcp\package.json'
|
|
82
|
-
if (Test-Path $p) { "$($_.Name) -> $((Get-Content $p -Raw | ConvertFrom-Json).version)" }
|
|
83
|
-
}
|
|
84
|
-
```
|
|
21
|
+
## Required Steps
|
|
85
22
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Remove-Item -Recurse -Force $_.FullName
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## Step 3:预热下载
|
|
100
|
-
|
|
101
|
-
预热正式 npm 包,并验证 `taptap-maker` binary 可以启动。
|
|
102
|
-
|
|
103
|
-
```powershell
|
|
104
|
-
$log = Join-Path $env:TEMP 'taptap-mcp-warmup.log'
|
|
105
|
-
npx -y -p '@taptap/maker' taptap-maker help > $log 2> "$log.err"
|
|
106
|
-
```
|
|
23
|
+
1. Identify the current Maker project directory. Use `--target-dir` only when the directory is
|
|
24
|
+
confirmed to be a Maker project, which means it or one of its parents contains
|
|
25
|
+
`.maker-mcp/config.json`.
|
|
26
|
+
2. If the AI client has exactly one attached workspace and that workspace is the Maker project, use
|
|
27
|
+
that workspace as `<PROJECT_DIR>`. If there are multiple workspaces, or the current directory is
|
|
28
|
+
not clearly a Maker project, ask the user for the Maker project directory before using
|
|
29
|
+
`--target-dir`.
|
|
30
|
+
3. Run the current package upgrade command for the confirmed project:
|
|
107
31
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
```powershell
|
|
111
|
-
$NpxDir = Join-Path (npm config get cache) '_npx'
|
|
112
|
-
Get-ChildItem $NpxDir -Directory -ErrorAction SilentlyContinue | ForEach-Object {
|
|
113
|
-
$p = Join-Path $_.FullName 'node_modules\@taptap\instant-games-open-mcp\package.json'
|
|
114
|
-
if (Test-Path $p) { "$($_.Name) -> $((Get-Content $p -Raw | ConvertFrom-Json).version)" }
|
|
115
|
-
}
|
|
116
|
-
claude mcp list 2>&1 | Select-String -Pattern 'taptap|Warning'
|
|
32
|
+
```bash
|
|
33
|
+
npx -y -p @taptap/maker taptap-maker upgrade --target-dir <PROJECT_DIR>
|
|
117
34
|
```
|
|
118
35
|
|
|
119
|
-
|
|
36
|
+
If the user only wants one client, pass `--ide codex`, `--ide cursor`, or `--ide claude`.
|
|
120
37
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
38
|
+
If the user only wants to refresh the machine-level MCP command and no Maker project directory is
|
|
39
|
+
confirmed, run `npx -y -p @taptap/maker taptap-maker upgrade` without `--target-dir` only after
|
|
40
|
+
explaining that project `AGENTS.md` will not be updated.
|
|
124
41
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
```bash
|
|
130
|
-
# 1. 项目级 .mcp.json
|
|
131
|
-
[ -f .mcp.json ] && grep -q -i taptap .mcp.json && \
|
|
132
|
-
echo "ℹ️ 当前目录 .mcp.json 包含 taptap MCP。更新可以继续;建议后续迁移到 user/global scope。"
|
|
133
|
-
|
|
134
|
-
# 2. Claude Code 项目级残留
|
|
135
|
-
CJ="$HOME/.claude.json"
|
|
136
|
-
if [ -f "$CJ" ]; then
|
|
137
|
-
jq -r '
|
|
138
|
-
.projects // {} | to_entries[]
|
|
139
|
-
| . as $p | $p.value.mcpServers // {} | to_entries[]
|
|
140
|
-
| select(.key | test("taptap"; "i"))
|
|
141
|
-
| "ℹ️ Claude Code 项目级 taptap MCP: \($p.key) -> \(.key)。更新可以继续;建议后续迁移到 user/global scope。"
|
|
142
|
-
' "$CJ"
|
|
143
|
-
jq -r '
|
|
144
|
-
.mcpServers // {} | to_entries[]
|
|
145
|
-
| select(.key | test("taptap"; "i"))
|
|
146
|
-
| "✅ user scope 已安装: \(.key)"
|
|
147
|
-
' "$CJ"
|
|
148
|
-
fi
|
|
149
|
-
|
|
150
|
-
# 3. 常见项目级 MCP / AI 客户端配置。只查已知路径,避免扫到游戏资源或源码导致噪音。
|
|
151
|
-
for f in .codex/config.toml .codex/mcp.json .cursor/mcp.json .vscode/mcp.json codex.toml; do
|
|
152
|
-
[ -f "$f" ] && grep -q -i taptap "$f" && \
|
|
153
|
-
echo "ℹ️ $f 包含 taptap MCP。更新可以继续;建议后续迁移到 user/global scope。"
|
|
154
|
-
done
|
|
155
|
-
```
|
|
42
|
+
4. Ask the user to restart/reconnect the AI client MCP session, or open a new AI conversation.
|
|
43
|
+
Current conversations usually do not hot-load a new MCP process or re-read `AGENTS.md`.
|
|
44
|
+
5. After restart/reconnect, verify by reading `maker://status`; if resources are unavailable, call
|
|
45
|
+
`maker_status_lite`.
|
|
156
46
|
|
|
157
|
-
|
|
47
|
+
## Expected Effects
|
|
158
48
|
|
|
159
|
-
|
|
49
|
+
`taptap-maker upgrade` performs current-directory upgrade work:
|
|
160
50
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
```
|
|
51
|
+
- Refreshes AI client MCP config to launch `npx -y -p @taptap/maker taptap-maker`.
|
|
52
|
+
- Pins `cwd` to the current Maker project when `--target-dir` is provided.
|
|
53
|
+
- Updates the current project's TapTap Maker managed `AGENTS.md` policy block when the directory is
|
|
54
|
+
bound to a Maker project.
|
|
55
|
+
- Keeps user-written `AGENTS.md` content outside the managed block.
|
|
56
|
+
- Writes only `<config>.taptap-maker.bak.latest` when a client config actually changes.
|
|
57
|
+
- Does not create timestamp config backups and does not delete old backups.
|
|
169
58
|
|
|
170
|
-
|
|
59
|
+
## If Upgrade Appears Not To Take Effect
|
|
171
60
|
|
|
172
|
-
|
|
61
|
+
If `maker://status` still shows an old package, wrong `cwd`, or missing Maker proxy tools after
|
|
62
|
+
restart/reconnect, check whether a project-level MCP config is overriding user/global config.
|
|
63
|
+
Common project-level files include:
|
|
173
64
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
65
|
+
- `.mcp.json`
|
|
66
|
+
- `.codex/config.toml`
|
|
67
|
+
- `.codex/mcp.json`
|
|
68
|
+
- `.cursor/mcp.json`
|
|
69
|
+
- `.vscode/mcp.json`
|
|
70
|
+
- `codex.toml`
|
|
180
71
|
|
|
181
|
-
|
|
72
|
+
Do not migrate, delete, or edit these project-level files automatically. Explain the finding and
|
|
73
|
+
ask the user whether they want to move Maker MCP configuration to user/global scope.
|
|
182
74
|
|
|
183
|
-
|
|
75
|
+
## Old Project Handling
|
|
184
76
|
|
|
185
|
-
|
|
186
|
-
npx -y -p @taptap/maker taptap-maker help \
|
|
187
|
-
> /tmp/taptap-mcp-warmup.log 2>&1
|
|
188
|
-
```
|
|
77
|
+
When a user upgrades MCP and later opens an old Maker project:
|
|
189
78
|
|
|
190
|
-
|
|
79
|
+
1. Read `maker://status` first.
|
|
80
|
+
2. If the `AGENTS.md` section reports `missing_file`, `missing_block`, or `outdated`, run:
|
|
191
81
|
|
|
192
82
|
```bash
|
|
193
|
-
|
|
194
|
-
for d in "$NPX_DIR"/*/; do
|
|
195
|
-
p="$d/node_modules/@taptap/maker/package.json"
|
|
196
|
-
[ -f "$p" ] && echo "$(basename $d) -> $(jq -r .version $p)"
|
|
197
|
-
done
|
|
198
|
-
claude mcp list 2>&1 | grep -E "taptap|Warning"
|
|
83
|
+
npx -y -p @taptap/maker taptap-maker agents update --target-dir <PROJECT_DIR>
|
|
199
84
|
```
|
|
200
85
|
|
|
201
|
-
|
|
86
|
+
3. Tell the user to restart/reconnect the AI client or open a new conversation so the updated
|
|
87
|
+
`AGENTS.md` instructions are loaded.
|
|
202
88
|
|
|
203
|
-
|
|
89
|
+
Status reads are intentionally read-only. Do not modify `AGENTS.md` from `maker://status` or
|
|
90
|
+
`maker_status_lite`; use the CLI update command.
|