@taptap/maker 0.0.30-beta.2 → 0.0.30-beta.3

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.
@@ -25,27 +25,22 @@
25
25
  保存日志和配置时,凭证值必须脱敏,包括 PAT、token、Authorization、Cookie 和其它密钥;错误结构、
26
26
  字段名、路径、参数顺序、退出状态和脱敏后的 stderr 应保留完整。
27
27
 
28
- ## 2. 报错时运行标准 npx/CLI 检查
28
+ ## 2. 报错时运行标准 launcher/CLI 检查
29
29
 
30
30
  只要 Maker tools 缺失,出现 `-32000`、`Connection closed`、`command not found` 或进程启动后立即
31
31
  退出,用户 AI 都应尝试运行以下只读命令。命令自身失败也是诊断证据,必须记录,不能因此跳过。
32
32
 
33
- Windows:
34
-
35
- ```bat
36
- npx.cmd -y -p @taptap/maker taptap-maker mcp verify --json
37
- ```
38
-
39
- macOS/Linux:
40
-
41
33
  ```bash
42
- npx -y -p @taptap/maker taptap-maker mcp verify --json
34
+ taptap-maker mcp verify --json
43
35
  ```
44
36
 
45
- `mcp verify --json` 使用安装器的同一 launcher 启动 `@taptap/maker`,完成 MCP
37
+ `mcp verify --json` 默认验证安装器物化到 Maker 用户目录的稳定 self runtime(stable self runtime),完成 MCP
46
38
  `initialize` 和 `tools/list`,并返回 launcher_kind、command、stage、tools、stderr、error 和
47
39
  failure_type。失败时命令退出码非零。它证明本机最终启动命令和 stdio MCP 通路可用,但不会读取
48
40
  客户端实际生效的配置,也不能检查任意客户端 trust、客户端配置缓存或 MCP Roots。
41
+ 只有明确检查 npm 启动链路时才追加 `--mode npx`;发布包会固定当前精确版本并使用专用可写 cache。
42
+ 如果当前 shell 找不到 `taptap-maker`,优先复用客户端配置中的绝对 command/args;最后才用当前
43
+ 精确版本的 npx 命令启动 CLI,禁止省略版本落到 npm `latest`。
49
44
 
50
45
  因此,无论该命令成功还是失败,后续都必须先确认当前客户端,再检查并复现该客户端真实使用的
51
46
  config path、command、有序 args、cwd、workspace/Roots、Node/npm/npx 路径、client PATH、退出状态
@@ -89,12 +84,25 @@ tool/resource 调用中的请求校验、项目上下文、远端响应或业务
89
84
  - Claude Code:用户级 Claude 配置或 `claude mcp` 管理的配置
90
85
  - WorkBuddy:`~/.workbuddy/mcp.json`
91
86
  - WorkBuddy 旧配置仅作为兼容检查:`~/.workbuddy/.mcp.json`
87
+ - DeepSeek Harness(DSH):`$DSH_HOME/cordis.patch.yml`,默认
88
+ `~/.dsh/cordis.patch.yml`;手工 profile 配置还可能位于
89
+ `~/.dsh/profiles/<profile>/cordis.yml` 或 `cordis.patch.yml`
92
90
 
93
91
  Windows 中 `~` 对应 `%USERPROFILE%`。
94
92
 
95
93
  多开 AI 对话不会隔离用户级 MCP 配置。某个对话如果修改了共享配置中的 command、args 或 cwd,
96
94
  其它对话在重连或重启后也会失效。应比较配置备份和最近修改时间,确认是否被其它对话重写。
97
95
 
96
+ DSH 不使用 `mcpServers` JSON。运行 `taptap-maker install` 会自动检测 DSH,并按插件 id 合并用户级
97
+ YAML 补丁,DSH 通过 HMR 热重载,无需重启 IDE。Maker 插件项应使用
98
+ `@deepseek-ai/dsh-mcp-client`、`transport: stdio`、`failOnStartupError: true` 和
99
+ `toolCallTimeoutMs: 3600000`。DSH 当前不广播 MCP Roots,不能把固定项目目录写入该用户级配置;
100
+ Agent 应在每个项目相关 Maker tool 调用中显式传入真实游戏目录 `target_dir`。
101
+ 首次新增 plugin row 必须放在顶层 `insert` 操作内;裸的顶层 `id: mcp-taptap-maker` 只能覆盖
102
+ 已经由更低层插入的同 id row,在空根上会被跳过。应优先重新运行安装器修复,不要手工复制普通
103
+ `mcpServers` JSON。若安装器发现现有 profile 级 Maker registration,会就地更新对应 profile
104
+ patch,避免再写一个全局重复 `serverName`。
105
+
98
106
  ## 4. 当前客户端与 WorkBuddy 专属检查
99
107
 
100
108
  先根据当前客户端的真实配置、启动日志或 MCP `initialize` 信息确认客户端类型。
@@ -118,23 +126,26 @@ AI 只读取该文件用于诊断,不自动修改账号信任状态。未信
118
126
 
119
127
  ## 5. 检查标准启动命令
120
128
 
121
- Windows 通用 `mcpServers` 配置应使用安装器探测并验证后的独立 command 和 args。首选形式是:
129
+ Windows 通用 `mcpServers` 配置应使用安装器探测并验证后的独立 command 和 args。默认形式是:
122
130
 
123
131
  ```text
124
132
  command: <绝对 node.exe>
125
- args: ["<绝对 npm-cli.js>", "exec", "--yes", "--package", "@taptap/maker", "--", "taptap-maker"]
133
+ args: ["%USERPROFILE%\\.taptap-maker\\mcp-runtime\\<exact-version>\\dist\\maker.js"]
126
134
  ```
127
135
 
128
- 找不到绝对 Node/npm CLI 组合时,安装器会失败且不修改配置。安装器不会把 `cmd.exe` 或
129
- `.cmd` launcher 持久化到客户端配置,也不要手工改回依赖客户端 PATH 的裸 `npx.cmd`。
136
+ 该路径由安装器创建,不能手工指向 `_npx` 临时缓存。显式 `--launcher npx` 才使用绝对
137
+ `node.exe` + `npm-cli.js`,固定当前精确版本并设置专用 npm cache。安装器不会把 `cmd.exe` 或
138
+ `.cmd` launcher 持久化到客户端配置。
130
139
 
131
140
  macOS/Linux:
132
141
 
133
142
  ```text
134
143
  command: npx
135
- args: ["-y", "-p", "@taptap/maker", "taptap-maker"]
144
+ args: ["-y", "-p", "@taptap/maker@0.0.30-beta.3", "taptap-maker"]
136
145
  ```
137
146
 
147
+ 上面的 macOS/Linux npx 形式只是显式兼容模式;默认同样是绝对 Node + 版本化 self runtime。
148
+
138
149
  不要把 command、项目路径和参数拼成一个长字符串,尤其不要使用:
139
150
 
140
151
  ```text
@@ -150,6 +161,9 @@ Windows 8.3 短路径名称可能未启用,不能把短路径当作默认兜
150
161
 
151
162
  ## 6. 检查 Node、npm、npx 和客户端 PATH
152
163
 
164
+ 默认 self launcher 只要求配置中的绝对 Node 和版本化 Maker bundle 可用。以下 npm/npx 检查只在
165
+ 客户端仍使用旧 npx 配置,或用户显式选择 `--launcher npx` 时是必需项。
166
+
153
167
  Windows 普通终端:
154
168
 
155
169
  ```bat
@@ -173,8 +187,13 @@ npm --version
173
187
  npx --version
174
188
  ```
175
189
 
176
- 如果普通终端找不到 `npx`,先修复或安装受支持的 Node.js/npm。不要继续排查 PAT 或远端服务,
177
- 因为 Maker MCP server 尚未启动。
190
+ 如果普通终端找不到 `npx`,可先运行 `taptap-maker mcp install --launcher self`
191
+ 迁移到默认 launcher;只有必须使用 npx 时才修复或安装受支持的 Node.js/npm。
192
+
193
+ DSH 应直接使用 `taptap-maker install` 自动生成的绝对 Node + self runtime 插件项。
194
+ 不要把手工 `npx` 示例当作长期配置;DSH 的 Agent 沙箱可能禁止 npx 冷启动写入默认 npm cache。
195
+ 如果 DSH 中工具调用总在约 60 秒失败,先确认实际生效的插件项包含
196
+ `toolCallTimeoutMs: 3600000`,再区分客户端超时和 Maker server 返回的业务错误。
178
197
 
179
198
  如果普通终端能找到 `npx`,但 AI 客户端或其内置终端提示 `command not found`,根因通常是客户端
180
199
  进程没有继承相同的 PATH。继续比较客户端进程环境与普通登录 shell;macOS 可额外检查:
@@ -187,6 +206,10 @@ npx --version
187
206
  带版本号的临时绝对路径写入共享 MCP 配置;优先让客户端从正确的启动环境继承 PATH,并在修复后
188
207
  用同一客户端启动方式复测。
189
208
 
209
+ 若 stderr 同时出现 EPERM/EACCES、root-owned files 或 cache 不可写,`mcp verify` 会返回
210
+ `failure_type: npm_environment_error`。这通常是沙箱或 npm cache 路径不可写,不应仅凭 npm 的
211
+ 通用提示执行 `chown ~/.npm`;优先迁移到 self launcher,或给 npx 模式提供明确可写的 cache。
212
+
190
213
  ## 7. 检查 cwd、workspace 和 MCP Roots
191
214
 
192
215
  先确认用户本地项目目录存在 `.maker-mcp/config.json`,并记录客户端当前打开的 workspace。
@@ -194,6 +217,10 @@ npx --version
194
217
  - 支持 MCP Roots 的客户端应只打开当前 Maker 项目,使用 workspace root 识别项目。
195
218
  - 不支持 MCP Roots 的客户端应由 Agent 在具体 Maker tool 调用中传入项目绝对路径作为
196
219
  `target_dir`,不要把项目路径写入用户级 MCP 配置。
220
+ - 当最终 cwd fallback 中找不到 `.maker-mcp/config.json` 时,Maker MCP 不会阻断 server 启动或
221
+ 隐藏 tools;项目相关 proxy tool 会返回 `evaluated_target_dir` 和 `project_context_source` 后
222
+ 快速失败。看到 `/tmp`、会话目录或其它项目路径时,应修正 workspace/Roots 或在该次调用显式传
223
+ `target_dir`,不要把其它目录的 `not_initialized` 当成真实项目结论。
197
224
  - 某些 WorkBuddy 版本不会把当前 workspace 暴露为 MCP Roots。此时仍禁止使用 `cd && npx`
198
225
  补丁;应恢复不含项目 `cwd` 的标准启动配置、只打开正确项目 workspace,并收集 WorkBuddy
199
226
  的实际进程 cwd 和启动日志作为诊断信息,不能依赖反复重写配置来切换项目。
@@ -219,7 +246,7 @@ stderr、尝试的编码和解码错误,不能把解码异常直接当成 Make
219
246
  例如,配置使用 Windows 绝对 Node/npm CLI 时,按相同顺序复现:
220
247
 
221
248
  ```bat
222
- "<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker -- taptap-maker
249
+ "<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker@0.0.30-beta.3 -- taptap-maker
223
250
  ```
224
251
 
225
252
  然后用该 CLI 执行 `mcp verify --json`;不要只用 `help` 代替 MCP 协议握手。
@@ -227,7 +254,7 @@ stderr、尝试的编码和解码错误,不能把解码异常直接当成 Make
227
254
  配置使用 macOS/Linux 标准 argv 时:
228
255
 
229
256
  ```bash
230
- npx -y -p @taptap/maker taptap-maker help
257
+ npx -y -p @taptap/maker@0.0.30-beta.3 taptap-maker help
231
258
  ```
232
259
 
233
260
  如果终端成功而客户端失败,应继续排查客户端读取的配置、信任状态、PATH、cwd 和子进程启动方式,
@@ -250,12 +277,13 @@ npx -y -p @taptap/maker taptap-maker help
250
277
  作为可选恢复方式,并先备份实际生效的配置:
251
278
 
252
279
  ```bash
253
- npx -y -p @taptap/maker taptap-maker mcp install --ide <当前客户端>
280
+ npx -y -p @taptap/maker@0.0.30-beta.3 taptap-maker mcp install --launcher self
254
281
  ```
255
282
 
256
- Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm 的绝对路径启动 CLI;安装器只会把
257
- 验证过的绝对 Node/npm launcher 写入配置。客户端不支持 MCP Roots 时,不要给安装命令追加项目
258
- 目录;应让 Agent 在具体 Maker tool 调用中传入 `target_dir`。
283
+ Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm 的绝对路径启动这一次 CLI;安装器
284
+ 默认会把验证过的绝对 Node 和版本化 self runtime 写入配置。只有显式 `--launcher npx` 才持久化
285
+ 绝对 Node/npm launcher。客户端不支持 MCP Roots 时,不要给安装命令追加项目目录;应让 Agent 在
286
+ 具体 Maker tool 调用中传入 `target_dir`。
259
287
 
260
288
  不要让多个 AI 对话同时修改共享 MCP 配置。配置恢复后,在客户端 MCP 设置中 reconnect;必要时完全
261
289
  退出并重启客户端,再新开一个对话。
@@ -270,7 +298,36 @@ Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm
270
298
  - 预期的 Maker tools 已注册。
271
299
  - WorkBuddy 中 `taptap-maker` 仍处于启用和信任状态。
272
300
 
273
- ## 11. 诊断报告模板
301
+ ## 11. 用户同意后的 GitHub Issue 上报
302
+
303
+ 当证据指向 Maker MCP、proxy、客户端集成或服务端基础设施异常时,AI 应主动询问用户是否允许把
304
+ 已脱敏诊断提交到官方 GitHub Issue。适合上报的现象包括启动/连接失败、tools 异常缺失、请求超时、
305
+ 反复重连失败、HTTP 5xx/unavailable 和未分类内部错误。普通参数错误、已有明确恢复路径的登录问题、
306
+ 项目文件缺失、用户取消、Lua 编译和业务校验错误不应提示上报。
307
+
308
+ 同一种故障按失败操作、错误码和稳定错误信息形成指纹;当前会话只询问一次。用户拒绝后不再针对该
309
+ 指纹打扰。用户明确同意后无需第二次确认,AI 将已脱敏的当前会话错误 JSON 通过 stdin 传入:
310
+
311
+ ```text
312
+ npx -y --package @taptap/maker@0.0.30-beta.3 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
313
+ ```
314
+
315
+ 优先原样复用当前客户端 Maker MCP 配置中的 command 和有序 args,再追加上述 `mcp report`
316
+ 参数。示例 npx 命令只在已确认当前精确版本时使用,禁止省略版本误启 npm `latest`;Windows
317
+ 找不到 `npx` 时使用配置中的绝对 `node.exe` 和 `npm-cli.js` argv。
318
+
319
+ CLI 会读取当前客户端的 `taptap-maker` 配置项、执行有短超时保护的 launcher
320
+ `initialize`/`tools/list` 验证、记录当前 cwd 和绑定项目状态,再生成 Issue 标题与 Markdown 正文。
321
+ 不会上传其它 MCP server、完整聊天、项目源码、PAT/token、完整环境变量或 project/user ID;用户
322
+ 主目录统一替换为 `~`。错误、`remote_result` 和请求参数保留非敏感结构,方便服务端按
323
+ request/correlation ID 继续定位。
324
+
325
+ 成功时返回 `created` 和 Issue URL。GitHub CLI 不存在、未登录、网络不可达、超时或提交失败时返回
326
+ `manual_required`、脱敏标题/正文和手动 Issue 地址,命令仍成功结束;AI 应明显告知用户没有自动
327
+ 提交,并展示可复制报告,然后继续原排障或开发任务。不带 `--consent` 时返回
328
+ `consent_required`,只生成报告,不发起 GitHub 写操作。
329
+
330
+ ## 12. 诊断报告模板
274
331
 
275
332
  用户 AI 应尽量完整填写以下模板。未获取到的字段写 `unknown`,不要猜测;args 必须保持原始顺序,
276
333
  凭证值必须脱敏。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.30-beta.2",
3
+ "version": "0.0.30-beta.3",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: taptap-maker-local
3
- description: Guide TapTap Maker local development workflows. Use when a user asks to initialize Maker local development, clone/download a Maker project, continue a Maker project, inspect local Maker status, pull, submit, push, or resolve Git conflicts.
3
+ description: Guide TapTap Maker local development workflows. Use when a user asks to initialize Maker local development, clone/download a Maker project, continue a Maker project, inspect local Maker status, diagnose or report Maker MCP connection/proxy failures, pull, submit, push, or resolve Git conflicts.
4
4
  ---
5
5
 
6
6
  # TapTap Maker Local Workflow
@@ -19,6 +19,7 @@ This skill covers:
19
19
  - prepare local AI dev kit after project checkout
20
20
  - choose a Maker app from the CLI app list
21
21
  - explain PAT, Git, project binding, and editor reloads
22
+ - diagnose and report Maker MCP or proxy infrastructure failures with user consent
22
23
  - inspect local changes
23
24
  - pull remote changes
24
25
  - submit local changes
@@ -64,8 +65,8 @@ Keep this split clear:
64
65
 
65
66
  - Skill: user intent, step order, whether to ask the user, friendly explanations, failure recovery.
66
67
  - CLI: save PAT, fetch app list, clone, prepare dev kit, install MCP config, verify local setup,
67
- update the current project's managed `AGENTS.md` policy block, and run the local runtime log
68
- watcher, including runtime log polling.
68
+ collect and submit sanitized MCP issue reports, update the current project's managed `AGENTS.md`
69
+ policy block, and run the local runtime log watcher, including runtime log polling.
69
70
  - MCP tools/resources: inspect Maker status and run the combined commit/push/build path.
70
71
 
71
72
  Do not reimplement Maker API calls or Git authentication in shell when the Maker CLI or MCP tool
@@ -84,6 +85,7 @@ exists.
84
85
  | conflict / merge failed | Explain why the conflict happened, list conflict files, inspect conflict hunks, propose a resolution plan, and ask before editing. |
85
86
  | build / preview / run / check game result | Use `maker_build_current_directory`; it starts the local runtime log watcher after a successful remote build result. |
86
87
  | generic code validation / tests / lint | Do not use Maker remote build unless the user explicitly asks to build, run, or preview the Maker game. |
88
+ | MCP unavailable / proxy timeout / unexpected server error | Diagnose first; offer one consent-gated GitHub issue report when the evidence suggests an MCP, proxy, client integration, or service defect. |
87
89
 
88
90
  ## Create New Maker Project Intent
89
91
 
@@ -258,6 +260,11 @@ If status output returns `AI client workspace selection`, follow that hint: choo
258
260
  workspace first, then read `maker://status` or call `maker_status_lite` with the attached project
259
261
  directory.
260
262
 
263
+ DeepSeek Harness (DSH) uses `@deepseek-ai/dsh-mcp-client` and currently does not advertise MCP
264
+ Roots. In DSH, resolve the active game workspace from the conversation/IDE context and pass that
265
+ absolute directory as `target_dir` on every project-related Maker call. Never persist it as plugin
266
+ `cwd`; multiple DSH projects share the same user-level plugin configuration.
267
+
261
268
  ### Proxy Tools Missing From The Current Session
262
269
 
263
270
  If Maker MCP is completely unavailable, tools are missing, the process exits immediately, or the
@@ -265,13 +272,17 @@ client reports `-32000`, `Connection closed`, or `command not found`, do not cal
265
272
  for the initial diagnosis. Work offline first:
266
273
 
267
274
  1. Find the MCP config file the current client actually reads and back it up.
268
- 2. Attempt `npx -y -p @taptap/maker taptap-maker mcp verify --json`; on Windows use
269
- `npx.cmd -y -p @taptap/maker taptap-maker mcp verify --json`. If the command itself fails, keep
270
- that failure as diagnostic evidence.
271
- 3. This command uses the same resolved launcher as MCP install, starts `@taptap/maker`, completes MCP
275
+ 2. Attempt `taptap-maker mcp verify --json`. It verifies the stable self runtime by default; use
276
+ `--mode npx` only when diagnosing npm startup. If the command itself fails, keep that failure as
277
+ diagnostic evidence. If `taptap-maker` is not on PATH, reuse that config's absolute command and
278
+ ordered args, append `mcp verify --json`, and run the same argv directly.
279
+ 3. This command uses the same stable launcher as MCP install and completes MCP
272
280
  initialize and tools/list, and returns launcher_kind, command, stage, tools, stderr, error, and
273
281
  failure_type. It does not read the client's active config or validate WorkBuddy trust, client
274
282
  config caching, or Roots.
283
+ In explicit npx mode, EPERM/EACCES or an unwritable npm cache is
284
+ `npm_environment_error`; prefer `mcp install --launcher self` instead of blindly changing
285
+ `~/.npm` ownership.
275
286
  4. First identify the active AI client from reliable evidence, then inspect and reproduce only that
276
287
  client's active config path, command, ordered args, cwd, workspace/Roots, Node/npm/npx paths,
277
288
  client PATH, exit status, and stderr.
@@ -280,24 +291,33 @@ for the initial diagnosis. Work offline first:
280
291
  ask the user to enable it in WorkBuddy.
281
292
  6. Never use one client's configuration or trust state to diagnose another client. `doctor` does not
282
293
  inspect the active AI client's loaded tools or configuration.
283
- 7. On Windows, configs written by the CLI must use the verified absolute Node/npm launcher. Treat
284
- existing `cmd.exe` or `npx.cmd` configs as legacy diagnostic evidence; do not persist them as a
285
- repair. Never replace cwd with a `cd /d "<project>" && npx.cmd ...` command string, including for
286
- Chinese project paths.
287
- 8. User-level MCP config must not contain a project cwd. If WorkBuddy does not expose Roots, pass
294
+ 7. On Windows, configs written by the CLI default to absolute Node plus the versioned self runtime.
295
+ Explicit npx mode uses absolute Node/npm. Treat existing `cmd.exe` or `npx.cmd` configs as legacy
296
+ diagnostic evidence; do not persist them as a repair. Never replace cwd with a
297
+ `cd /d "<project>" && npx.cmd ...` command string, including for Chinese project paths.
298
+ 8. For DSH, inspect `$DSH_HOME/cordis.patch.yml` (default `~/.dsh/cordis.patch.yml`) and any active
299
+ profile `cordis.yml`/`cordis.patch.yml`. The generated Maker plugin uses the stable self runtime,
300
+ `failOnStartupError: true`, and `toolCallTimeoutMs: 3600000`; DSH hot-reloads the patch without an
301
+ IDE restart. A new plugin row must be inside a Cordis `insert` patch; a bare top-level id patch
302
+ cannot create the row over an empty root. A fixed project `cwd` is invalid. If calls fail at about 60 seconds, repair the
303
+ active plugin config with `taptap-maker install` before diagnosing Maker server
304
+ latency.
305
+ 9. User-level MCP config must not contain a project cwd. If WorkBuddy or DSH does not expose Roots, pass
288
306
  `target_dir` on the concrete Maker tool call and record the process actual cwd only as diagnostic
289
307
  evidence.
290
- 9. Do not assume Windows 8.3 short paths exist or differ from the original long path. Verify the
291
- result first; an unchanged or missing short path is not a usable cwd workaround.
292
- 10. Reproduce the configured Windows launch with the same direct argv boundary when possible.
308
+ If cwd fallback is unbound, project-related proxy calls return `evaluated_target_dir` and
309
+ `project_context_source` before remote access. Fix Roots or pass the correct `target_dir`.
310
+ 10. Do not assume Windows 8.3 short paths exist or differ from the original long path. Verify the
311
+ result first; an unchanged or missing short path is not a usable cwd workaround.
312
+ 11. Reproduce the configured Windows launch with the same direct argv boundary when possible.
293
313
  Separate outer shell quoting or stderr decoding failures from the MCP child process result, and
294
314
  record both without treating wrapper failures as server evidence.
295
- 11. Remember that multiple AI conversations share user-level MCP config. One conversation can break
315
+ 12. Remember that multiple AI conversations share user-level MCP config. One conversation can break
296
316
  every other conversation by rewriting the shared command or manually adding a project cwd.
297
- 12. Classify the root cause from evidence before repairing it. Do not automatically change trust
298
- storage, PATH, cwd, credentials, or game code. Use `taptap-maker mcp install --ide <client>` only
299
- after evidence confirms that the active config entry is damaged. Reconnect and verify again in
300
- both the current and a new conversation.
317
+ 13. Classify the root cause from evidence before repairing it. Do not automatically change trust
318
+ storage, PATH, cwd, credentials, or game code. Use `taptap-maker install` only after evidence
319
+ confirms that the active config entry is damaged; it auto-detects clients and keeps unchanged
320
+ entries untouched. Reconnect and verify again in both the current and a new conversation.
301
321
 
302
322
  If the MCP connection is established but a tool or resource call fails, including `-32003`, use a
303
323
  separate evidence-first runtime-error workflow. Do not assign a fixed meaning to `-32003`; preserve
@@ -332,6 +352,57 @@ remote proxy:
332
352
  When Maker proxy tools are missing, explain that this is likely a session/configuration problem and
333
353
  that requests specifically requiring those tools cannot use them in the current session.
334
354
 
355
+ ### Maker MCP Issue Reporting
356
+
357
+ Use this flow only for likely Maker infrastructure or integration defects. Examples include MCP
358
+ startup failure, `Connection closed`, unexpected missing tools, proxy connection failure, request
359
+ timeout, repeated reconnect failure, HTTP 5xx/unavailable responses, or an unclassified internal
360
+ server error. Diagnose enough to distinguish these from expected user or project errors before
361
+ offering a report.
362
+
363
+ Do not propose issue reporting for expected user or project errors such as invalid parameters,
364
+ missing project files, expired login with a documented recovery, user cancellation, project Lua
365
+ compile errors, or other business validation errors with a concrete next action.
366
+
367
+ Ask once per distinct failure fingerprint in the current conversation. Use the failed operation,
368
+ error code, and stable error message as the fingerprint. If the user declines, do not ask again for
369
+ that fingerprint during the conversation. A materially different infrastructure failure may be
370
+ offered once separately.
371
+
372
+ Before collecting or submitting, ask in the user's language. Explain that the report contains the
373
+ sanitized error, only the active client's Maker MCP entry, local runtime/Maker status, and current
374
+ workspace context. State that it excludes PAT/token values, other MCP servers, project source, and
375
+ the complete conversation. A suitable Chinese prompt is:
376
+
377
+ > Maker MCP 似乎遇到了连接或服务异常。是否允许我收集已脱敏的报错、Maker MCP 配置和运行环境,
378
+ > 并提交到官方 GitHub Issue,帮助开发团队定位和修复?不会上传 PAT/token、完整聊天或项目源码。
379
+
380
+ Only after explicit consent, create a compact JSON object with the useful current-session evidence:
381
+ summary, exact sanitized error, failed operation, error code/data, sanitized `remote_result`,
382
+ request/correlation ID, reproduction steps, visible Maker tools, client version, and workspace roots.
383
+ Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
384
+
385
+ ```text
386
+ npx -y --package @taptap/maker@0.0.30-beta.3 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
387
+ ```
388
+
389
+ Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp
390
+ report` arguments above. This preserves the installed beta/stable version and, on Windows, the
391
+ absolute `node.exe` plus `npm-cli.js` launcher. Use the npx fallback only when it contains the exact
392
+ installed Maker version. Never use an unversioned package spec,
393
+ assume `taptap-maker` or `npx` is on PATH, or build a `cmd /c`, `cd && npx`, or PowerShell wrapper.
394
+ For DSH, read only the active Maker plugin from the user/profile Cordis YAML and reuse its
395
+ `config.command` plus ordered `config.args`; do not upload other DSH plugins or environment values.
396
+ If neither an exact configured launcher nor an exact version is available, explain that automatic
397
+ collection cannot start, show the manual Issue URL, and continue the original task.
398
+
399
+ Do not ask for a second confirmation after the user consents. If the result is `created`, show the
400
+ returned Issue URL. If the result is `manual_required`, clearly tell the user that automatic GitHub
401
+ submission was unavailable, show the returned sanitized title/body, and provide the returned manual
402
+ Issue URL. This fallback is informational: it must not block troubleshooting or the user's original
403
+ Maker task. If the result is `consent_required`, do not submit; ask for consent because the required
404
+ authorization was not provided.
405
+
335
406
  ## Initialization Workflow
336
407
 
337
408
  Trigger phrases include:
@@ -36,18 +36,20 @@ This workflow upgrades only the current machine and the current Maker project di
36
36
  that workspace as `<PROJECT_DIR>`. If there are multiple workspaces, or the current directory is
37
37
  not clearly a Maker project, ask the user for the Maker project directory before using
38
38
  `--target-dir`.
39
- 4. After the user approves the upgrade, run the current package upgrade command for the confirmed
40
- project:
39
+ 4. Read the exact target package version from the status result (`latest` or `latest_beta`, matching
40
+ the user's current release channel). After the user approves the upgrade, run that exact package
41
+ version for the confirmed project:
41
42
 
42
43
  ```bash
43
- npx -y -p @taptap/maker taptap-maker upgrade --target-dir <PROJECT_DIR>
44
+ npx -y -p @taptap/maker@<TARGET_VERSION> taptap-maker upgrade --target-dir <PROJECT_DIR>
44
45
  ```
45
46
 
46
47
  If the user only wants one client, pass `--ide codex`, `--ide cursor`, or `--ide claude`.
47
48
 
48
49
  If the user only wants to refresh the machine-level MCP command and no Maker project directory is
49
50
  confirmed, explain that this refresh will not update project `AGENTS.md`, then run
50
- `npx -y -p @taptap/maker taptap-maker upgrade` without `--target-dir` only after the user agrees.
51
+ `npx -y -p @taptap/maker@<TARGET_VERSION> taptap-maker upgrade` without `--target-dir` only after the
52
+ user agrees.
51
53
 
52
54
  5. Tell the user that the current MCP session remains available and continues using the existing
53
55
  version and proxy tools. The updated package and `AGENTS.md` take effect on the next MCP start or
@@ -71,7 +73,10 @@ confirmed, explain that this refresh will not update project `AGENTS.md`, then r
71
73
 
72
74
  `taptap-maker upgrade` performs current-directory upgrade work:
73
75
 
74
- - Refreshes AI client MCP config to launch `npx -y -p @taptap/maker taptap-maker`.
76
+ - Materializes the exact package version as a stable self runtime and refreshes AI client MCP config
77
+ to use its absolute Node and bundle paths.
78
+ - `--launcher npx` is an explicit compatibility mode; it pins the exact package version and uses a
79
+ dedicated writable npm cache instead of becoming the upgrade default.
75
80
  - User-level MCP config never contains a project `cwd`; unchanged entries are not rewritten.
76
81
  - `--target-dir` only selects the project whose managed `AGENTS.md` policy is updated.
77
82
  - Updates the current project's TapTap Maker managed `AGENTS.md` policy block when the directory is
@@ -105,7 +110,7 @@ When a user upgrades MCP and later opens an old Maker project:
105
110
  2. If the `AGENTS.md` section reports `missing_file`, `missing_block`, or `outdated`, run:
106
111
 
107
112
  ```bash
108
- npx -y -p @taptap/maker taptap-maker agents update --target-dir <PROJECT_DIR>
113
+ npx -y -p @taptap/maker@<TARGET_VERSION> taptap-maker agents update --target-dir <PROJECT_DIR>
109
114
  ```
110
115
 
111
116
  3. Tell the user the current session remains usable. The updated `AGENTS.md` instructions load on the