@taptap/maker 0.0.29 → 0.0.30-beta.2
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 +9 -3
- package/dist/maker.js +902 -314
- package/docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md +11 -12
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +21 -23
- package/skills/update-taptap-mcp/SKILL.md +8 -5
|
@@ -192,16 +192,18 @@ npx --version
|
|
|
192
192
|
先确认用户本地项目目录存在 `.maker-mcp/config.json`,并记录客户端当前打开的 workspace。
|
|
193
193
|
|
|
194
194
|
- 支持 MCP Roots 的客户端应只打开当前 Maker 项目,使用 workspace root 识别项目。
|
|
195
|
-
- 不支持 MCP Roots
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
- 不支持 MCP Roots 的客户端应由 Agent 在具体 Maker tool 调用中传入项目绝对路径作为
|
|
196
|
+
`target_dir`,不要把项目路径写入用户级 MCP 配置。
|
|
197
|
+
- 某些 WorkBuddy 版本不会把当前 workspace 暴露为 MCP Roots。此时仍禁止使用 `cd && npx`
|
|
198
|
+
补丁;应恢复不含项目 `cwd` 的标准启动配置、只打开正确项目 workspace,并收集 WorkBuddy
|
|
199
|
+
的实际进程 cwd 和启动日志作为诊断信息,不能依赖反复重写配置来切换项目。
|
|
199
200
|
- 本地配置中的项目 id 与当前项目不一致时,先检查客户端启动目录和实际读取的配置,不要重新绑定
|
|
200
201
|
或覆盖用户项目。
|
|
201
202
|
|
|
202
203
|
MCP 恢复连接后,再调用 `maker_status_lite` 验证 `project_context_source`、`cwd_mismatch` 和
|
|
203
|
-
Maker tools
|
|
204
|
-
|
|
204
|
+
Maker tools 列表。当前 Maker MCP 会在解析 cwd、项目和鉴权之前,根据版本化本地完整定义注册白名单 proxy tools;
|
|
205
|
+
`target_dir` 只决定调用时的项目上下文,不负责动态补注册。若当前会话仍缺 proxy tools,应比较
|
|
206
|
+
活动会话和 `mcp verify` 的包版本及 `tools/list`,按旧包或客户端缓存排查。
|
|
205
207
|
|
|
206
208
|
## 8. 复现客户端真实启动配置
|
|
207
209
|
|
|
@@ -239,7 +241,7 @@ npx -y -p @taptap/maker taptap-maker help
|
|
|
239
241
|
- Node/npm/npx 缺失,或客户端 PATH 不完整。
|
|
240
242
|
- 客户端读取了错误的配置文件。
|
|
241
243
|
- WorkBuddy 未启用或未信任 MCP。
|
|
242
|
-
-
|
|
244
|
+
- 客户端未暴露 MCP Roots,且调用未传 `target_dir`。
|
|
243
245
|
- 多个 AI 对话修改了共享 MCP 配置。
|
|
244
246
|
- IDE 安装路径、shell 转义或编码导致子进程启动失败。
|
|
245
247
|
- MCP server 启动后的真实业务错误。
|
|
@@ -252,11 +254,8 @@ npx -y -p @taptap/maker taptap-maker mcp install --ide <当前客户端>
|
|
|
252
254
|
```
|
|
253
255
|
|
|
254
256
|
Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm 的绝对路径启动 CLI;安装器只会把
|
|
255
|
-
验证过的绝对 Node/npm launcher 写入配置。客户端不支持 MCP Roots
|
|
256
|
-
|
|
257
|
-
```text
|
|
258
|
-
--target-dir "<Maker项目绝对路径>"
|
|
259
|
-
```
|
|
257
|
+
验证过的绝对 Node/npm launcher 写入配置。客户端不支持 MCP Roots 时,不要给安装命令追加项目
|
|
258
|
+
目录;应让 Agent 在具体 Maker tool 调用中传入 `target_dir`。
|
|
260
259
|
|
|
261
260
|
不要让多个 AI 对话同时修改共享 MCP 配置。配置恢复后,在客户端 MCP 设置中 reconnect;必要时完全
|
|
262
261
|
退出并重启客户端,再新开一个对话。
|
package/package.json
CHANGED
|
@@ -284,15 +284,16 @@ for the initial diagnosis. Work offline first:
|
|
|
284
284
|
existing `cmd.exe` or `npx.cmd` configs as legacy diagnostic evidence; do not persist them as a
|
|
285
285
|
repair. Never replace cwd with a `cd /d "<project>" && npx.cmd ...` command string, including for
|
|
286
286
|
Chinese project paths.
|
|
287
|
-
8.
|
|
288
|
-
|
|
287
|
+
8. User-level MCP config must not contain a project cwd. If WorkBuddy does not expose Roots, pass
|
|
288
|
+
`target_dir` on the concrete Maker tool call and record the process actual cwd only as diagnostic
|
|
289
|
+
evidence.
|
|
289
290
|
9. Do not assume Windows 8.3 short paths exist or differ from the original long path. Verify the
|
|
290
291
|
result first; an unchanged or missing short path is not a usable cwd workaround.
|
|
291
292
|
10. Reproduce the configured Windows launch with the same direct argv boundary when possible.
|
|
292
293
|
Separate outer shell quoting or stderr decoding failures from the MCP child process result, and
|
|
293
294
|
record both without treating wrapper failures as server evidence.
|
|
294
295
|
11. Remember that multiple AI conversations share user-level MCP config. One conversation can break
|
|
295
|
-
every other conversation by rewriting the shared command or cwd.
|
|
296
|
+
every other conversation by rewriting the shared command or manually adding a project cwd.
|
|
296
297
|
12. Classify the root cause from evidence before repairing it. Do not automatically change trust
|
|
297
298
|
storage, PATH, cwd, credentials, or game code. Use `taptap-maker mcp install --ide <client>` only
|
|
298
299
|
after evidence confirms that the active config entry is damaged. Reconnect and verify again in
|
|
@@ -308,27 +309,25 @@ request parameters, current `tools/list`, exact error code/message/data, complet
|
|
|
308
309
|
warning, debug, and remote status fields while removing credentials. Do not rewrite command, cwd,
|
|
309
310
|
PATH, trust state, credentials, or game code unless the collected evidence identifies that cause.
|
|
310
311
|
|
|
311
|
-
Only after the base Maker MCP connection works should you use the following MCP-based
|
|
312
|
+
Only after the base Maker MCP connection works should you use the following MCP-based context checks.
|
|
312
313
|
|
|
313
314
|
If the user is in a bound Maker project but `generate_image`, `batch_generate_images`, `edit_image`,
|
|
314
315
|
`create_video_task`, `query_video_task`, `text_to_music`, `text_to_sound_effect`,
|
|
315
316
|
`batch_sound_effects`, `text_to_dialogue`, `audition_voices_for_character`,
|
|
316
317
|
`confirm_character_voice`, `create_3d_asset`,
|
|
317
318
|
`generate_test_qrcode`, `get_ad_config`, or `get_debug_feedbacks` are missing from the current AI
|
|
318
|
-
tool list, diagnose the MCP
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
WorkBuddy ignores configured cwd, do not keep rewriting that field; use its active workspace,
|
|
331
|
-
MCP Roots, and actual process cwd evidence instead.
|
|
319
|
+
tool list, do not diagnose project cwd as the registration cause. Current Maker MCP registers every
|
|
320
|
+
whitelisted proxy tool from local definitions before resolving cwd, project binding, auth, or the
|
|
321
|
+
remote proxy:
|
|
322
|
+
|
|
323
|
+
1. Capture the active client's exact `tools/list` and loaded `@taptap/maker` version.
|
|
324
|
+
2. Verify the configured launcher with `taptap-maker mcp verify --json`; a successful current
|
|
325
|
+
launcher plus a stale active tool list indicates client/session caching, not missing project auth.
|
|
326
|
+
3. Reconnect the active Maker MCP once from the client UI or start a new session so it loads the
|
|
327
|
+
current package. Do not rewrite a user-level cwd to make proxy tools appear.
|
|
328
|
+
4. After the tools are present, read status. `MCP project context cwd` with `status: mismatch` means
|
|
329
|
+
calls without `target_dir` may select an unbound or wrong project; the tools remain registered.
|
|
330
|
+
Use the active workspace/MCP Roots or pass the real project directory as `target_dir` for that call.
|
|
332
331
|
|
|
333
332
|
When Maker proxy tools are missing, explain that this is likely a session/configuration problem and
|
|
334
333
|
that requests specifically requiring those tools cannot use them in the current session.
|
|
@@ -373,11 +372,10 @@ Workflow:
|
|
|
373
372
|
remain visible when an AI summarizes or truncates a long app list, even if another app name
|
|
374
373
|
appears to match the current directory. Users can choose `0`/`new` and enter a project name,
|
|
375
374
|
or use `taptap-maker init --create --name "my-local-game"` for non-interactive runs.
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
`taptap-maker mcp install --target-dir <PROJECT_DIR>` as a compatibility fix.
|
|
375
|
+
User-level MCP config never pins the selected Maker project directory as `cwd`. Clients that
|
|
376
|
+
support MCP Roots should let the current workspace root identify the Maker project. If a client
|
|
377
|
+
does not support MCP Roots, pass the real project directory as `target_dir` on the concrete
|
|
378
|
+
Maker tool call. Never rewrite shared user-level MCP config to switch projects.
|
|
381
379
|
Tell the user that the first Maker clone can take 20+ seconds because the server may be
|
|
382
380
|
preparing the repository, and that they should keep the command running while the CLI retries
|
|
383
381
|
transient 503/5xx failures.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: update-taptap-mcp
|
|
3
|
-
description:
|
|
3
|
+
description: Use when users ask to update, refresh, or upgrade the local TapTap Maker MCP package.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# TapTap Maker MCP Upgrade Workflow
|
|
@@ -30,7 +30,8 @@ This workflow upgrades only the current machine and the current Maker project di
|
|
|
30
30
|
Do not run any upgrade command before that explanation and approval step.
|
|
31
31
|
2. Identify the current Maker project directory. Use `--target-dir` only when the directory is
|
|
32
32
|
confirmed to be a Maker project, which means it or one of its parents contains
|
|
33
|
-
`.maker-mcp/config.json`.
|
|
33
|
+
`.maker-mcp/config.json`. This argument only selects the project whose managed `AGENTS.md` policy
|
|
34
|
+
is updated; it never writes that directory into user-level MCP config.
|
|
34
35
|
3. If the AI client has exactly one attached workspace and that workspace is the Maker project, use
|
|
35
36
|
that workspace as `<PROJECT_DIR>`. If there are multiple workspaces, or the current directory is
|
|
36
37
|
not clearly a Maker project, ask the user for the Maker project directory before using
|
|
@@ -71,7 +72,8 @@ confirmed, explain that this refresh will not update project `AGENTS.md`, then r
|
|
|
71
72
|
`taptap-maker upgrade` performs current-directory upgrade work:
|
|
72
73
|
|
|
73
74
|
- Refreshes AI client MCP config to launch `npx -y -p @taptap/maker taptap-maker`.
|
|
74
|
-
-
|
|
75
|
+
- User-level MCP config never contains a project `cwd`; unchanged entries are not rewritten.
|
|
76
|
+
- `--target-dir` only selects the project whose managed `AGENTS.md` policy is updated.
|
|
75
77
|
- Updates the current project's TapTap Maker managed `AGENTS.md` policy block when the directory is
|
|
76
78
|
bound to a Maker project.
|
|
77
79
|
- Keeps user-written `AGENTS.md` content outside the managed block.
|
|
@@ -80,8 +82,9 @@ confirmed, explain that this refresh will not update project `AGENTS.md`, then r
|
|
|
80
82
|
|
|
81
83
|
## If Upgrade Appears Not To Take Effect
|
|
82
84
|
|
|
83
|
-
If `maker://status` still shows an old package,
|
|
84
|
-
restart/reconnect,
|
|
85
|
+
If `maker://status` still shows an old package, an unexpected project context, or missing Maker
|
|
86
|
+
proxy tools after restart/reconnect, first inspect MCP Roots and the tool call's `target_dir`. Also
|
|
87
|
+
check whether a legacy project-level MCP config is overriding user/global config.
|
|
85
88
|
Common project-level files include:
|
|
86
89
|
|
|
87
90
|
- `.mcp.json`
|