@taptap/maker 0.0.26-beta.4 → 0.0.27-beta.1

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.
@@ -42,14 +42,14 @@ macOS/Linux:
42
42
  npx -y -p @taptap/maker taptap-maker mcp verify --json
43
43
  ```
44
44
 
45
- `mcp verify --json` 只检查标准 `@taptap/maker` npx/CLI 启动链路,并返回
46
- command、status、signal、stdout、stderr、error 和 failure_type。它不会启动 Maker MCP server,
47
- 不会读取或验证客户端实际生效的 MCP 配置,也不会检查 WorkBuddy trust、cwd 或 MCP Roots。
48
- `mcp verify` 成功不代表客户端 MCP 配置正常。
45
+ `mcp verify --json` 使用安装器的同一 launcher 启动 `@taptap/maker`,完成 MCP
46
+ `initialize` 和 `tools/list`,并返回 launcher_kind、command、stage、tools、stderr、error 和
47
+ failure_type。失败时命令退出码非零。它证明本机最终启动命令和 stdio MCP 通路可用,但不会读取
48
+ 客户端实际生效的配置,也不能检查任意客户端 trust、客户端配置缓存或 MCP Roots。
49
49
 
50
- 因此,无论该命令成功还是失败,后续都必须继续检查并复现客户端真实使用的 config path、command、
51
- 有序 args、cwd、WorkBuddy enable/trust、workspace/Roots、Node/npm/npx 路径、client PATH、退出状态
52
- 和 stderr。
50
+ 因此,无论该命令成功还是失败,后续都必须先确认当前客户端,再检查并复现该客户端真实使用的
51
+ config path、command、有序 args、cwd、workspace/Roots、Node/npm/npx 路径、client PATH、退出状态
52
+ 和 stderr。WorkBuddy enable/trust 只适用于已确认的 WorkBuddy 客户端。
53
53
 
54
54
  ### MCP 已连接但 tool/resource 调用失败
55
55
 
@@ -57,7 +57,7 @@ command、status、signal、stdout、stderr、error 和 failure_type。它不会
57
57
  `-32003`),说明当前会话已经建立连接。不要给 `-32003` 假定固定含义,也不要直接套用启动失败结论;
58
58
  应保留客户端返回的原始错误 code、message 和 data,按实际证据分类。
59
59
 
60
- 对于已经连接的会话,`mcp verify` 不是首要检查。它只验证标准 npx/CLI 启动链路,不能解释单次
60
+ 对于已经连接的会话,`mcp verify` 不是首要检查。它只验证本地 launcher 和 stdio MCP 通路,不能解释单次
61
61
  tool/resource 调用中的请求校验、项目上下文、远端响应或业务错误。用户 AI 应先保存以下证据:
62
62
 
63
63
  远端 Maker 构建中的 Lua/LSP 编译错误是工具级业务失败。代理会把带 `error.data.remote_result` 的
@@ -95,7 +95,12 @@ Windows 中 `~` 对应 `%USERPROFILE%`。
95
95
  多开 AI 对话不会隔离用户级 MCP 配置。某个对话如果修改了共享配置中的 command、args 或 cwd,
96
96
  其它对话在重连或重启后也会失效。应比较配置备份和最近修改时间,确认是否被其它对话重写。
97
97
 
98
- ## 4. 检查 WorkBuddy 启用和信任状态
98
+ ## 4. 当前客户端与 WorkBuddy 专属检查
99
+
100
+ 先根据当前客户端的真实配置、启动日志或 MCP `initialize` 信息确认客户端类型。
101
+ 不要因为本机存在 `.workbuddy` 就判断当前请求经过 WorkBuddy。
102
+
103
+ 只有确认当前客户端是 WorkBuddy 时,才检查以下启用和信任状态。
99
104
 
100
105
  WorkBuddy 需要同时满足:
101
106
 
@@ -113,13 +118,16 @@ AI 只读取该文件用于诊断,不自动修改账号信任状态。未信
113
118
 
114
119
  ## 5. 检查标准启动命令
115
120
 
116
- Windows 通用 `mcpServers` 配置应使用独立 command 和 args:
121
+ Windows 通用 `mcpServers` 配置应使用安装器探测并验证后的独立 command 和 args。首选形式是:
117
122
 
118
123
  ```text
119
- command: cmd.exe
120
- args: ["/d", "/s", "/c", "npx.cmd", "-y", "-p", "@taptap/maker", "taptap-maker"]
124
+ command: <绝对 node.exe>
125
+ args: ["<绝对 npm-cli.js>", "exec", "--yes", "--package", "@taptap/maker", "--", "taptap-maker"]
121
126
  ```
122
127
 
128
+ 找不到绝对 Node/npm CLI 组合时,安装器会失败且不修改配置。安装器不会把 `cmd.exe` 或
129
+ `.cmd` launcher 持久化到客户端配置,也不要手工改回依赖客户端 PATH 的裸 `npx.cmd`。
130
+
123
131
  macOS/Linux:
124
132
 
125
133
  ```text
@@ -206,12 +214,14 @@ shell 再包一层 `cmd.exe` 时,外层 shell 的引号或转义失败必须
206
214
  退出结果。同样,stderr 解码失败只说明当前读取方式或代码页不匹配;应分别记录子进程退出码、原始
207
215
  stderr、尝试的编码和解码错误,不能把解码异常直接当成 Maker MCP server 的错误。
208
216
 
209
- 例如,配置使用 Windows 标准 argv 时,按相同顺序复现:
217
+ 例如,配置使用 Windows 绝对 Node/npm CLI 时,按相同顺序复现:
210
218
 
211
219
  ```bat
212
- cmd.exe /d /s /c npx.cmd -y -p @taptap/maker taptap-maker help
220
+ "<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker -- taptap-maker
213
221
  ```
214
222
 
223
+ 然后用该 CLI 执行 `mcp verify --json`;不要只用 `help` 代替 MCP 协议握手。
224
+
215
225
  配置使用 macOS/Linux 标准 argv 时:
216
226
 
217
227
  ```bash
@@ -241,7 +251,8 @@ npx -y -p @taptap/maker taptap-maker help
241
251
  npx -y -p @taptap/maker taptap-maker mcp install --ide <当前客户端>
242
252
  ```
243
253
 
244
- Windows 可将开头的 `npx` 替换为 `npx.cmd`。客户端不支持 MCP Roots 时才追加:
254
+ Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm 的绝对路径启动 CLI;安装器只会把
255
+ 验证过的绝对 Node/npm launcher 写入配置。客户端不支持 MCP Roots 时才追加:
245
256
 
246
257
  ```text
247
258
  --target-dir "<Maker项目绝对路径>"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.26-beta.4",
3
+ "version": "0.0.27-beta.1",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",
@@ -190,8 +190,9 @@ This guidance helps users prefer Maker-managed tools for Maker game assets.
190
190
  use the returned local model path. The local proxy materializes only the `model_files` copy/extract
191
191
  instructions returned by the local runtime; report `delivery_failures` when no model can be delivered.
192
192
  - For any ad-related request such as 广告, rewarded videos, play ads, ad ID, ad placement,
193
- ad status, ad config, or `ShowRewardVideoAd`, inspect Maker project status first. Call
194
- `get_ad_config` only after the primary local project configs are initialized.
193
+ ad status, ad config, or `ShowRewardVideoAd`, first read `maker://ads-integration-guide`, then
194
+ follow it to inspect Maker project status, call `get_ad_config`, and read the project engine
195
+ document before editing ad code or testing ad behavior.
195
196
  - Do not infer ad readiness from local SDK docs, `.maker-mcp/config.json`, or runtime callbacks.
196
197
  If the primary local project configs are missing, keep ad config unavailable and do not call the
197
198
  remote tool. Build only for an explicit user build/submit/preview request. If a successful build
@@ -273,26 +274,32 @@ for the initial diagnosis. Work offline first:
273
274
  2. Attempt `npx -y -p @taptap/maker taptap-maker mcp verify --json`; on Windows use
274
275
  `npx.cmd -y -p @taptap/maker taptap-maker mcp verify --json`. If the command itself fails, keep
275
276
  that failure as diagnostic evidence.
276
- 3. This command checks only the standard `@taptap/maker` npx/CLI launch path and returns command,
277
- status, signal, stdout, stderr, error, and failure_type. It does not start the Maker MCP server
278
- and does not read or validate the client's active MCP config, WorkBuddy trust, cwd, or Roots.
279
- A successful verify result does not prove that the client MCP config works.
280
- 4. Inspect and reproduce the active config path, command, ordered args, cwd, WorkBuddy enable/trust
281
- state, workspace/Roots, Node/npm/npx paths, the AI client's PATH, exit status, and stderr.
282
- 5. For WorkBuddy, verify both the `taptap-maker` server entry and the account-level enable/trust
283
- state. Do not edit account trust storage automatically; ask the user to enable it in WorkBuddy.
284
- 6. On Windows, keep `cmd.exe`, `npx.cmd`, and each argument separate. Never replace cwd with a
285
- `cd /d "<project>" && npx.cmd ...` command string, including for Chinese project paths.
286
- 7. If WorkBuddy ignores configured cwd, do not keep rewriting the cwd field. Use the active
277
+ 3. This command uses the same resolved launcher as MCP install, starts `@taptap/maker`, completes MCP
278
+ initialize and tools/list, and returns launcher_kind, command, stage, tools, stderr, error, and
279
+ failure_type. It does not read the client's active config or validate WorkBuddy trust, client
280
+ config caching, or Roots.
281
+ 4. First identify the active AI client from reliable evidence, then inspect and reproduce only that
282
+ client's active config path, command, ordered args, cwd, workspace/Roots, Node/npm/npx paths,
283
+ client PATH, exit status, and stderr.
284
+ 5. Only when the active client is confirmed to be WorkBuddy, verify both the `taptap-maker` server
285
+ entry and the account-level enable/trust state. Do not edit account trust storage automatically;
286
+ ask the user to enable it in WorkBuddy.
287
+ 6. Never use one client's configuration or trust state to diagnose another client. `doctor` does not
288
+ inspect the active AI client's loaded tools or configuration.
289
+ 7. On Windows, configs written by the CLI must use the verified absolute Node/npm launcher. Treat
290
+ existing `cmd.exe` or `npx.cmd` configs as legacy diagnostic evidence; do not persist them as a
291
+ repair. Never replace cwd with a `cd /d "<project>" && npx.cmd ...` command string, including for
292
+ Chinese project paths.
293
+ 8. If WorkBuddy ignores configured cwd, do not keep rewriting the cwd field. Use the active
287
294
  workspace/Roots and record the process actual cwd instead.
288
- 8. Do not assume Windows 8.3 short paths exist or differ from the original long path. Verify the
295
+ 9. Do not assume Windows 8.3 short paths exist or differ from the original long path. Verify the
289
296
  result first; an unchanged or missing short path is not a usable cwd workaround.
290
- 9. Reproduce the configured Windows launch with the same direct argv boundary when possible.
291
- Separate outer shell quoting or stderr decoding failures from the MCP child process result, and
292
- record both without treating wrapper failures as server evidence.
293
- 10. Remember that multiple AI conversations share user-level MCP config. One conversation can break
297
+ 10. Reproduce the configured Windows launch with the same direct argv boundary when possible.
298
+ Separate outer shell quoting or stderr decoding failures from the MCP child process result, and
299
+ record both without treating wrapper failures as server evidence.
300
+ 11. Remember that multiple AI conversations share user-level MCP config. One conversation can break
294
301
  every other conversation by rewriting the shared command or cwd.
295
- 11. Classify the root cause from evidence before repairing it. Do not automatically change trust
302
+ 12. Classify the root cause from evidence before repairing it. Do not automatically change trust
296
303
  storage, PATH, cwd, credentials, or game code. Use `taptap-maker mcp install --ide <client>` only
297
304
  after evidence confirms that the active config entry is damaged. Reconnect and verify again in
298
305
  both the current and a new conversation.
@@ -300,7 +307,7 @@ for the initial diagnosis. Work offline first:
300
307
  If the MCP connection is established but a tool or resource call fails, including `-32003`, use a
301
308
  separate evidence-first runtime-error workflow. Do not assign a fixed meaning to `-32003`; preserve
302
309
  the exact client error. `mcp verify` is not the primary check for an already connected session
303
- because it only tests the standard npx/CLI launch path. Collect the failed tool/resource, redacted
310
+ because it tests only the local launcher and stdio MCP path. Collect the failed tool/resource, redacted
304
311
  request parameters, current `tools/list`, exact error code/message/data, complete sanitized
305
312
  `remote_result`, request/correlation IDs, timestamp with timezone, OS/architecture, AI client and
306
313
  `@taptap/maker` package versions, and stable reproduction steps. Preserve useful nested error,