@taptap/maker 0.0.25-beta.2 → 0.0.26-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.
- package/README.md +3 -1
- package/dist/maker.js +712 -184
- package/docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md +302 -0
- package/package.json +3 -1
- package/skills/taptap-maker-local/SKILL.md +64 -4
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
# TapTap Maker MCP 本地连接自检与修复指引
|
|
2
|
+
|
|
3
|
+
适用于以下现象:
|
|
4
|
+
|
|
5
|
+
- AI 客户端提示 `-32000`、`Connection closed`、`command not found` 或启动后立即退出。
|
|
6
|
+
- 当前对话没有 `maker_status_lite`、`maker_build_current_directory` 等 Maker tools。
|
|
7
|
+
- 同一项目之前可用,重启客户端、新开对话或多开对话后失效。
|
|
8
|
+
- 普通终端可以运行 Maker CLI,但 Codex、WorkBuddy 等客户端无法启动 MCP。
|
|
9
|
+
|
|
10
|
+
`Connection closed` 只说明 MCP server 子进程已经退出。它不能直接证明 PAT、远端服务、项目绑定
|
|
11
|
+
或中文项目路径有问题。MCP 尚未连接时,初始自检必须依赖本地文件、shell 命令和客户端日志,
|
|
12
|
+
不能依赖 Maker MCP tools。
|
|
13
|
+
|
|
14
|
+
## 1. 先保存现场
|
|
15
|
+
|
|
16
|
+
在修改前记录并备份:
|
|
17
|
+
|
|
18
|
+
- AI 客户端名称、版本、安装路径和当前 workspace。
|
|
19
|
+
- 客户端实际读取的 MCP 配置文件。
|
|
20
|
+
- `taptap-maker` 的原始 `command`、`args`、`cwd` 和环境变量。
|
|
21
|
+
- MCP 启动日志、完整 stderr、退出码或 signal。
|
|
22
|
+
- 当前对话与新对话是否都缺少 Maker tools。
|
|
23
|
+
|
|
24
|
+
不要自动修改 trust storage、PATH、cwd、凭证或游戏业务代码,不要编辑猜测出来的配置副本。
|
|
25
|
+
保存日志和配置时,凭证值必须脱敏,包括 PAT、token、Authorization、Cookie 和其它密钥;错误结构、
|
|
26
|
+
字段名、路径、参数顺序、退出状态和脱敏后的 stderr 应保留完整。
|
|
27
|
+
|
|
28
|
+
## 2. 报错时运行标准 npx/CLI 检查
|
|
29
|
+
|
|
30
|
+
只要 Maker tools 缺失,出现 `-32000`、`Connection closed`、`command not found` 或进程启动后立即
|
|
31
|
+
退出,用户 AI 都应尝试运行以下只读命令。命令自身失败也是诊断证据,必须记录,不能因此跳过。
|
|
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
|
+
```bash
|
|
42
|
+
npx -y -p @taptap/maker taptap-maker mcp verify --json
|
|
43
|
+
```
|
|
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 配置正常。
|
|
49
|
+
|
|
50
|
+
因此,无论该命令成功还是失败,后续都必须继续检查并复现客户端真实使用的 config path、command、
|
|
51
|
+
有序 args、cwd、WorkBuddy enable/trust、workspace/Roots、Node/npm/npx 路径、client PATH、退出状态
|
|
52
|
+
和 stderr。
|
|
53
|
+
|
|
54
|
+
### MCP 已连接但 tool/resource 调用失败
|
|
55
|
+
|
|
56
|
+
如果 `tools/list` 或其它 Maker MCP 调用已经成功,但某个 tool/resource 调用失败(包括客户端显示
|
|
57
|
+
`-32003`),说明当前会话已经建立连接。不要给 `-32003` 假定固定含义,也不要直接套用启动失败结论;
|
|
58
|
+
应保留客户端返回的原始错误 code、message 和 data,按实际证据分类。
|
|
59
|
+
|
|
60
|
+
对于已经连接的会话,`mcp verify` 不是首要检查。它只验证标准 npx/CLI 启动链路,不能解释单次
|
|
61
|
+
tool/resource 调用中的请求校验、项目上下文、远端响应或业务错误。用户 AI 应先保存以下证据:
|
|
62
|
+
|
|
63
|
+
- 失败的 tool/resource 名称,以及可稳定复现的操作步骤。
|
|
64
|
+
- 完整但已脱敏的请求参数;保留字段名、类型和结构,不保留 PAT、token、Authorization、Cookie、
|
|
65
|
+
secret 或其它凭证值。
|
|
66
|
+
- 当前会话的 `tools/list`,用于确认失败能力是否实际注册,以及 schema 是否与请求一致。
|
|
67
|
+
- 原始 error code、message、完整 data,以及完整、已脱敏的 `remote_result`;不要删掉嵌套错误、
|
|
68
|
+
warning、debug 或远端状态字段。
|
|
69
|
+
- request ID、correlation ID、trace ID 等关联标识;不存在时记录 `unknown`。
|
|
70
|
+
- 错误发生时间(含时区)、操作系统与架构、AI 客户端名称和版本、`@taptap/maker` 包版本。
|
|
71
|
+
|
|
72
|
+
先用相同脱敏参数稳定复现一次,再判断是 schema/参数错误、项目上下文错误、客户端转发错误、远端
|
|
73
|
+
业务错误还是临时服务错误。不要因为 MCP 已连接后的单次调用失败就重写 command、cwd、PATH、信任
|
|
74
|
+
状态或用户项目代码。只有证据同时显示启动链路也异常时,才回到本指南的离线启动检查流程。
|
|
75
|
+
|
|
76
|
+
## 3. 找到实际生效的 MCP 配置
|
|
77
|
+
|
|
78
|
+
常见位置:
|
|
79
|
+
|
|
80
|
+
- Codex:`~/.codex/config.toml`
|
|
81
|
+
- Cursor:`~/.cursor/mcp.json`
|
|
82
|
+
- Claude Code:用户级 Claude 配置或 `claude mcp` 管理的配置
|
|
83
|
+
- WorkBuddy:`~/.workbuddy/mcp.json`
|
|
84
|
+
- WorkBuddy 旧配置仅作为兼容检查:`~/.workbuddy/.mcp.json`
|
|
85
|
+
|
|
86
|
+
Windows 中 `~` 对应 `%USERPROFILE%`。
|
|
87
|
+
|
|
88
|
+
多开 AI 对话不会隔离用户级 MCP 配置。某个对话如果修改了共享配置中的 command、args 或 cwd,
|
|
89
|
+
其它对话在重连或重启后也会失效。应比较配置备份和最近修改时间,确认是否被其它对话重写。
|
|
90
|
+
|
|
91
|
+
## 4. 检查 WorkBuddy 启用和信任状态
|
|
92
|
+
|
|
93
|
+
WorkBuddy 需要同时满足:
|
|
94
|
+
|
|
95
|
+
- `~/.workbuddy/mcp.json` 中存在 `taptap-maker`,并且 `disabled` 为 `false`。
|
|
96
|
+
- 当前账号已经在 WorkBuddy MCP 设置中启用并信任 `taptap-maker`。
|
|
97
|
+
|
|
98
|
+
账号状态存放在:
|
|
99
|
+
|
|
100
|
+
```text
|
|
101
|
+
~/.workbuddy/connectors/<account-id>/connector-states.json
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
AI 只读取该文件用于诊断,不自动修改账号信任状态。未信任时,应让用户在 WorkBuddy MCP 设置中
|
|
105
|
+
手动启用并信任,然后 reconnect 或重启 WorkBuddy。
|
|
106
|
+
|
|
107
|
+
## 5. 检查标准启动命令
|
|
108
|
+
|
|
109
|
+
Windows 通用 `mcpServers` 配置应使用独立 command 和 args:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
command: cmd.exe
|
|
113
|
+
args: ["/d", "/s", "/c", "npx.cmd", "-y", "-p", "@taptap/maker", "taptap-maker"]
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
macOS/Linux:
|
|
117
|
+
|
|
118
|
+
```text
|
|
119
|
+
command: npx
|
|
120
|
+
args: ["-y", "-p", "@taptap/maker", "taptap-maker"]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
不要把 command、项目路径和参数拼成一个长字符串,尤其不要使用:
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
cd /d "<Maker项目路径>" && npx.cmd ...
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Maker 支持中文项目路径;但 Windows `cmd.exe`、客户端参数转义、编码和 argv 直传可能让上述
|
|
130
|
+
`cd &&` 形式以 rc=1 退出或产生乱码。这是启动命令问题,不代表 Maker 不支持中文路径。
|
|
131
|
+
|
|
132
|
+
Windows 8.3 短路径名称可能未启用,不能把短路径当作默认兜底。只有在同一台机器、同一磁盘卷上
|
|
133
|
+
验证后才能把结果作为诊断证据;如果 `%~sI` 返回原始长路径、空值或仍含原始路径特征,说明没有可用
|
|
134
|
+
的短路径别名,不要继续把它拼进 MCP 启动命令。
|
|
135
|
+
|
|
136
|
+
## 6. 检查 Node、npm、npx 和客户端 PATH
|
|
137
|
+
|
|
138
|
+
Windows 普通终端:
|
|
139
|
+
|
|
140
|
+
```bat
|
|
141
|
+
where.exe node
|
|
142
|
+
where.exe npm
|
|
143
|
+
where.exe npx
|
|
144
|
+
node --version
|
|
145
|
+
npm --version
|
|
146
|
+
npx --version
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
macOS/Linux 普通终端:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
command -v node
|
|
153
|
+
command -v npm
|
|
154
|
+
command -v npx
|
|
155
|
+
type -a node npm npx
|
|
156
|
+
node --version
|
|
157
|
+
npm --version
|
|
158
|
+
npx --version
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
如果普通终端找不到 `npx`,先修复或安装受支持的 Node.js/npm。不要继续排查 PAT 或远端服务,
|
|
162
|
+
因为 Maker MCP server 尚未启动。
|
|
163
|
+
|
|
164
|
+
如果普通终端能找到 `npx`,但 AI 客户端或其内置终端提示 `command not found`,根因通常是客户端
|
|
165
|
+
进程没有继承相同的 PATH。继续比较客户端进程环境与普通登录 shell;macOS 可额外检查:
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
/bin/zsh -lic 'command -v node; command -v npm; command -v npx; printf "%s\n" "$PATH"'
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
对于 nvm、fnm、Volta、asdf、Homebrew 等安装方式,应先确认实际路径仍有效。不要未经验证就把
|
|
172
|
+
带版本号的临时绝对路径写入共享 MCP 配置;优先让客户端从正确的启动环境继承 PATH,并在修复后
|
|
173
|
+
用同一客户端启动方式复测。
|
|
174
|
+
|
|
175
|
+
## 7. 检查 cwd、workspace 和 MCP Roots
|
|
176
|
+
|
|
177
|
+
先确认用户本地项目目录存在 `.maker-mcp/config.json`,并记录客户端当前打开的 workspace。
|
|
178
|
+
|
|
179
|
+
- 支持 MCP Roots 的客户端应只打开当前 Maker 项目,使用 workspace root 识别项目。
|
|
180
|
+
- 不支持 MCP Roots 的客户端可用 `--target-dir <Maker项目绝对路径>` 重新安装配置。
|
|
181
|
+
- 某些 WorkBuddy 版本可能忽略 `mcp.json` 的 `cwd`。此时仍禁止使用 `cd && npx` 补丁;应恢复
|
|
182
|
+
标准启动命令、只打开正确项目 workspace,并收集 WorkBuddy 的实际 cwd 和启动日志。已经确认
|
|
183
|
+
WorkBuddy 忽略 `cwd` 时,不能依赖该字段修复项目上下文,也不要反复重写它。
|
|
184
|
+
- 本地配置中的项目 id 与当前项目不一致时,先检查客户端启动目录和实际读取的配置,不要重新绑定
|
|
185
|
+
或覆盖用户项目。
|
|
186
|
+
|
|
187
|
+
MCP 恢复连接后,再调用 `maker_status_lite` 验证 `project_context_source`、`cwd_mismatch` 和
|
|
188
|
+
Maker tools 列表。向 `maker_status_lite` 传 `target_dir` 只能证明项目目录有效,不能给已经启动的
|
|
189
|
+
错误 MCP session 动态补注册 tools。
|
|
190
|
+
|
|
191
|
+
## 8. 复现客户端真实启动配置
|
|
192
|
+
|
|
193
|
+
使用实际生效配置中的相同 command、有序 args 和 cwd 执行只读启动检查,并保存退出码、signal、
|
|
194
|
+
spawn error、stdout 和完整 stderr。不要用第 2 节的标准命令代替这一步;两者比较后才能区分标准
|
|
195
|
+
npx/CLI 启动链路故障和客户端真实配置故障。
|
|
196
|
+
|
|
197
|
+
Windows 复现应尽量使用与 MCP 客户端相同的 argv 直传边界。通过 Bash、PowerShell 或其它外层
|
|
198
|
+
shell 再包一层 `cmd.exe` 时,外层 shell 的引号或转义失败必须单独记录,不能替代 MCP 子进程的真实
|
|
199
|
+
退出结果。同样,stderr 解码失败只说明当前读取方式或代码页不匹配;应分别记录子进程退出码、原始
|
|
200
|
+
stderr、尝试的编码和解码错误,不能把解码异常直接当成 Maker MCP server 的错误。
|
|
201
|
+
|
|
202
|
+
例如,配置使用 Windows 标准 argv 时,按相同顺序复现:
|
|
203
|
+
|
|
204
|
+
```bat
|
|
205
|
+
cmd.exe /d /s /c npx.cmd -y -p @taptap/maker taptap-maker help
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
配置使用 macOS/Linux 标准 argv 时:
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
npx -y -p @taptap/maker taptap-maker help
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
如果终端成功而客户端失败,应继续排查客户端读取的配置、信任状态、PATH、cwd 和子进程启动方式,
|
|
215
|
+
不要归因于远端 Maker 服务。
|
|
216
|
+
|
|
217
|
+
## 9. 按证据分类后修复
|
|
218
|
+
|
|
219
|
+
先按证据分类根因,再由用户 AI 只修改已确认有问题的项目:
|
|
220
|
+
|
|
221
|
+
- MCP 启动命令或参数错误。
|
|
222
|
+
- Node/npm/npx 缺失,或客户端 PATH 不完整。
|
|
223
|
+
- 客户端读取了错误的配置文件。
|
|
224
|
+
- WorkBuddy 未启用或未信任 MCP。
|
|
225
|
+
- 客户端忽略 cwd 或 MCP Roots。
|
|
226
|
+
- 多个 AI 对话修改了共享 MCP 配置。
|
|
227
|
+
- IDE 安装路径、shell 转义或编码导致子进程启动失败。
|
|
228
|
+
- MCP server 启动后的真实业务错误。
|
|
229
|
+
|
|
230
|
+
不要无条件重装或覆盖 MCP 配置。仅在证据确认实际配置项损坏时,才可把官方 CLI 重新生成标准配置
|
|
231
|
+
作为可选恢复方式,并先备份实际生效的配置:
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
npx -y -p @taptap/maker taptap-maker mcp install --ide <当前客户端>
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
Windows 可将开头的 `npx` 替换为 `npx.cmd`。客户端不支持 MCP Roots 时才追加:
|
|
238
|
+
|
|
239
|
+
```text
|
|
240
|
+
--target-dir "<Maker项目绝对路径>"
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
不要让多个 AI 对话同时修改共享 MCP 配置。配置恢复后,在客户端 MCP 设置中 reconnect;必要时完全
|
|
244
|
+
退出并重启客户端,再新开一个对话。
|
|
245
|
+
|
|
246
|
+
## 10. 恢复后的验证
|
|
247
|
+
|
|
248
|
+
连接恢复后分别在当前对话和新对话中调用 `maker_status_lite`,确认:
|
|
249
|
+
|
|
250
|
+
- MCP 可以稳定连接。
|
|
251
|
+
- `project_context_source` 指向 workspace root 或正确 Maker 项目。
|
|
252
|
+
- 没有 `cwd_mismatch`。
|
|
253
|
+
- 预期的 Maker tools 已注册。
|
|
254
|
+
- WorkBuddy 中 `taptap-maker` 仍处于启用和信任状态。
|
|
255
|
+
|
|
256
|
+
## 11. 诊断报告模板
|
|
257
|
+
|
|
258
|
+
用户 AI 应尽量完整填写以下模板。未获取到的字段写 `unknown`,不要猜测;args 必须保持原始顺序,
|
|
259
|
+
凭证值必须脱敏。
|
|
260
|
+
|
|
261
|
+
```text
|
|
262
|
+
client:
|
|
263
|
+
config_path:
|
|
264
|
+
command:
|
|
265
|
+
args:
|
|
266
|
+
cwd:
|
|
267
|
+
node_path:
|
|
268
|
+
npm_path:
|
|
269
|
+
npx_path:
|
|
270
|
+
client_PATH:
|
|
271
|
+
exit_status:
|
|
272
|
+
signal:
|
|
273
|
+
spawn_error:
|
|
274
|
+
wrapper_error:
|
|
275
|
+
stdout:
|
|
276
|
+
stderr:
|
|
277
|
+
stderr_encoding:
|
|
278
|
+
occurred_at:
|
|
279
|
+
os_arch:
|
|
280
|
+
client_version:
|
|
281
|
+
maker_package_version:
|
|
282
|
+
failed_operation:
|
|
283
|
+
redacted_request_params:
|
|
284
|
+
tools_list:
|
|
285
|
+
error_code:
|
|
286
|
+
error_message:
|
|
287
|
+
error_data:
|
|
288
|
+
remote_result:
|
|
289
|
+
request_or_correlation_id:
|
|
290
|
+
reproduction_steps:
|
|
291
|
+
workbuddy_trust:
|
|
292
|
+
workspace_roots:
|
|
293
|
+
classification:
|
|
294
|
+
evidence:
|
|
295
|
+
repair:
|
|
296
|
+
verification:
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
启动失败时,`evidence` 应包含标准 `mcp verify --json` 结果和客户端真实配置复现结果。MCP 已连接但
|
|
300
|
+
调用失败时,优先填写运行期错误字段,不要求把 `mcp verify` 当作首要证据。`repair` 只记录基于证据
|
|
301
|
+
采取的修改;`verification` 记录重连或稳定复现后的结果。`redacted_request_params`、`error_data` 和
|
|
302
|
+
`remote_result` 中的凭证值必须脱敏,同时保留排障所需的完整结构和非敏感内容。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taptap/maker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TapTap Maker local development CLI and MCP server",
|
|
6
6
|
"main": "dist/maker.js",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"skills/taptap-maker-local/",
|
|
18
18
|
"skills/taptap-maker-dev-kit-guide/",
|
|
19
19
|
"skills/update-taptap-mcp/",
|
|
20
|
+
"docs/",
|
|
21
|
+
"docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md",
|
|
20
22
|
"README.md"
|
|
21
23
|
],
|
|
22
24
|
"keywords": [
|
|
@@ -28,6 +28,10 @@ This skill covers:
|
|
|
28
28
|
Build, submit, push, preview, and verify behavior belongs to the single Maker MCP build tool. The
|
|
29
29
|
post-build runtime log polling loop belongs to the local Maker CLI watcher.
|
|
30
30
|
|
|
31
|
+
Do not infer or set a service environment from preview, build, test, or local-development intent.
|
|
32
|
+
Do not add environment parameters to Maker tool calls or user MCP config; use the default Maker
|
|
33
|
+
service configuration.
|
|
34
|
+
|
|
31
35
|
For multiplayer builds, use `maker_build_current_directory` structured parameters instead of
|
|
32
36
|
editing project JSON directly. `entry_client` / `entry_server` map to `project.json`
|
|
33
37
|
`entry@client` / `entry@server`; `multiplayer.enabled`, `max_players`, `background_match`,
|
|
@@ -42,6 +46,16 @@ build-critical fields are damaged. `$schema`, `sources`, and `build` must keep t
|
|
|
42
46
|
shape; `sources.*.tag` must be `stable` for online user projects, and `build.asset_ignores` only
|
|
43
47
|
needs to exist. Do not edit settings build fields directly for feature work; restore only the
|
|
44
48
|
build-critical fields when the check fails, and preserve valid `@runtime` config.
|
|
49
|
+
The health checker itself is read-only. When repair is needed, prefer the exact
|
|
50
|
+
file from Git or an intact misplaced copy; only repair fixed fields in a parseable
|
|
51
|
+
settings object. Never synthesize project identity, entry, version, publish metadata,
|
|
52
|
+
or resource groups from defaults. With user confirmation, missing settings defaults may
|
|
53
|
+
be added without overwriting existing intent: `$schema`, `build.output_dir=../dist`,
|
|
54
|
+
`build.asset_dirs=["../assets","../scripts"]`, `build.generate_fs_path=true`,
|
|
55
|
+
`build.asset_ignores=[]`, `assets_7z_threshold=50`, `preload_include_refs=true`,
|
|
56
|
+
`trim_remote_refs=true`, `legacy_binary=false`, and `tags={}`. Do not invent locked
|
|
57
|
+
`sources.*.tag` values; recover them from Git or an intact copy. `entry=main.lua`
|
|
58
|
+
is only safe after confirming that the project uses that entry script.
|
|
45
59
|
|
|
46
60
|
## Responsibilities
|
|
47
61
|
|
|
@@ -186,7 +200,8 @@ This guidance helps users prefer Maker-managed tools for Maker game assets.
|
|
|
186
200
|
for this recovery path.
|
|
187
201
|
- If status or doctor reports `Maker project initialization` with `missing_project_json` or
|
|
188
202
|
`missing_taptap_identity`, follow that `next_action` before using tools that depend on remote
|
|
189
|
-
project config.
|
|
203
|
+
project config. A first build is only valid when `.project` does not exist; if `.project` already
|
|
204
|
+
exists and `project.json` was deleted, restore it from Git or an intact copy first.
|
|
190
205
|
- For online player feedback, problem reports, issue reports, debug feedback, real-device logs,
|
|
191
206
|
screenshots, 问题反馈, 问题上报, 真机日志, or 玩家反馈, call the Maker proxy
|
|
192
207
|
`get_debug_feedbacks` tool when available.
|
|
@@ -249,6 +264,50 @@ directory.
|
|
|
249
264
|
|
|
250
265
|
### Proxy Tools Missing From The Current Session
|
|
251
266
|
|
|
267
|
+
If Maker MCP is completely unavailable, tools are missing, the process exits immediately, or the
|
|
268
|
+
client reports `-32000`, `Connection closed`, or `command not found`, do not call Maker MCP tools
|
|
269
|
+
for the initial diagnosis. Work offline first:
|
|
270
|
+
|
|
271
|
+
1. Find the MCP config file the current client actually reads and back it up.
|
|
272
|
+
2. Attempt `npx -y -p @taptap/maker taptap-maker mcp verify --json`; on Windows use
|
|
273
|
+
`npx.cmd -y -p @taptap/maker taptap-maker mcp verify --json`. If the command itself fails, keep
|
|
274
|
+
that failure as diagnostic evidence.
|
|
275
|
+
3. This command checks only the standard `@taptap/maker` npx/CLI launch path and returns command,
|
|
276
|
+
status, signal, stdout, stderr, error, and failure_type. It does not start the Maker MCP server
|
|
277
|
+
and does not read or validate the client's active MCP config, WorkBuddy trust, cwd, or Roots.
|
|
278
|
+
A successful verify result does not prove that the client MCP config works.
|
|
279
|
+
4. Inspect and reproduce the active config path, command, ordered args, cwd, WorkBuddy enable/trust
|
|
280
|
+
state, workspace/Roots, Node/npm/npx paths, the AI client's PATH, exit status, and stderr.
|
|
281
|
+
5. For WorkBuddy, verify both the `taptap-maker` server entry and the account-level enable/trust
|
|
282
|
+
state. Do not edit account trust storage automatically; ask the user to enable it in WorkBuddy.
|
|
283
|
+
6. On Windows, keep `cmd.exe`, `npx.cmd`, and each argument separate. Never replace cwd with a
|
|
284
|
+
`cd /d "<project>" && npx.cmd ...` command string, including for Chinese project paths.
|
|
285
|
+
7. If WorkBuddy ignores configured cwd, do not keep rewriting the cwd field. Use the active
|
|
286
|
+
workspace/Roots and record the process actual cwd instead.
|
|
287
|
+
8. Do not assume Windows 8.3 short paths exist or differ from the original long path. Verify the
|
|
288
|
+
result first; an unchanged or missing short path is not a usable cwd workaround.
|
|
289
|
+
9. Reproduce the configured Windows launch with the same direct argv boundary when possible.
|
|
290
|
+
Separate outer shell quoting or stderr decoding failures from the MCP child process result, and
|
|
291
|
+
record both without treating wrapper failures as server evidence.
|
|
292
|
+
10. Remember that multiple AI conversations share user-level MCP config. One conversation can break
|
|
293
|
+
every other conversation by rewriting the shared command or cwd.
|
|
294
|
+
11. Classify the root cause from evidence before repairing it. Do not automatically change trust
|
|
295
|
+
storage, PATH, cwd, credentials, or game code. Use `taptap-maker mcp install --ide <client>` only
|
|
296
|
+
after evidence confirms that the active config entry is damaged. Reconnect and verify again in
|
|
297
|
+
both the current and a new conversation.
|
|
298
|
+
|
|
299
|
+
If the MCP connection is established but a tool or resource call fails, including `-32003`, use a
|
|
300
|
+
separate evidence-first runtime-error workflow. Do not assign a fixed meaning to `-32003`; preserve
|
|
301
|
+
the exact client error. `mcp verify` is not the primary check for an already connected session
|
|
302
|
+
because it only tests the standard npx/CLI launch path. Collect the failed tool/resource, redacted
|
|
303
|
+
request parameters, current `tools/list`, exact error code/message/data, complete sanitized
|
|
304
|
+
`remote_result`, request/correlation IDs, timestamp with timezone, OS/architecture, AI client and
|
|
305
|
+
`@taptap/maker` package versions, and stable reproduction steps. Preserve useful nested error,
|
|
306
|
+
warning, debug, and remote status fields while removing credentials. Do not rewrite command, cwd,
|
|
307
|
+
PATH, trust state, credentials, or game code unless the collected evidence identifies that cause.
|
|
308
|
+
|
|
309
|
+
Only after the base Maker MCP connection works should you use the following MCP-based cwd checks.
|
|
310
|
+
|
|
252
311
|
If the user is in a bound Maker project but `generate_image`, `batch_generate_images`, `edit_image`,
|
|
253
312
|
`create_video_task`, `query_video_task`, `text_to_music`, `text_to_sound_effect`,
|
|
254
313
|
`batch_sound_effects`, `text_to_dialogue`, `audition_voices_for_character`,
|
|
@@ -264,9 +323,10 @@ suggesting repeated restarts:
|
|
|
264
323
|
`tools/list` ran from the MCP server cwd, not the Maker project directory. Passing `target_dir`
|
|
265
324
|
to `maker_status_lite` proves the project is valid, but it does not dynamically add proxy tools
|
|
266
325
|
to the already-started MCP session.
|
|
267
|
-
4.
|
|
268
|
-
`taptap-maker`
|
|
269
|
-
|
|
326
|
+
4. If the client is confirmed to honor MCP cwd, tell the user to start it from the Maker project
|
|
327
|
+
directory or update the `taptap-maker` config cwd, then reconnect from the client MCP UI. If
|
|
328
|
+
WorkBuddy ignores configured cwd, do not keep rewriting that field; use its active workspace,
|
|
329
|
+
MCP Roots, and actual process cwd evidence instead.
|
|
270
330
|
|
|
271
331
|
When Maker proxy tools are missing, explain that this is likely a session/configuration problem and
|
|
272
332
|
that Maker tools are preferred for Maker game assets.
|