@taptap/maker 0.0.18-beta.1 → 0.0.19-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 +5 -1
- package/dist/maker.js +1063 -494
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +80 -33
- 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
|
|
|
@@ -74,24 +109,26 @@ selected files.
|
|
|
74
109
|
## Maker Creative Asset Tool Policy
|
|
75
110
|
|
|
76
111
|
When the current directory is a bound Maker project, use Maker MCP for game asset generation and
|
|
77
|
-
editing. Prefer Maker MCP proxy tools over native AI image/video/audio tools. These
|
|
78
|
-
generated files inside the project
|
|
79
|
-
|
|
112
|
+
editing when possible. Prefer Maker MCP proxy tools over native AI image/video/audio tools. These
|
|
113
|
+
Maker tools keep generated files inside the project, record remote mappings for later editing, and
|
|
114
|
+
can forward resolvable local reference media as data URLs when the remote tool schema supports it.
|
|
80
115
|
|
|
81
|
-
This
|
|
116
|
+
This guidance helps users prefer Maker-managed tools for Maker game assets.
|
|
82
117
|
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
that Maker proxy tools are unavailable in this session.
|
|
87
|
-
- Do not fall back to generic imagegen or native media generation unless the user explicitly asks to
|
|
88
|
-
leave the Maker asset workflow.
|
|
118
|
+
- Prefer Maker proxy tools for Maker project asset requests when the Maker proxy tool is callable.
|
|
119
|
+
- If the required Maker proxy tool is not exposed in the current AI session, tell the user that
|
|
120
|
+
Maker proxy tools are unavailable in this session.
|
|
89
121
|
|
|
90
122
|
- Use `generate_image` for one image.
|
|
91
123
|
- Use `batch_generate_images` for multiple images.
|
|
92
124
|
- Use `edit_image` for modifying project images.
|
|
93
125
|
- Use `create_video_task` for game videos and image/video referenced generation.
|
|
126
|
+
- Use `query_video_task` to refresh video task status, release completed task quota, and fetch final videos.
|
|
94
127
|
- Use `text_to_music` for game music or audio.
|
|
128
|
+
- Follow each tool schema for supported local path, remote URL, and data URL inputs.
|
|
129
|
+
- Local proxy may convert resolvable local reference media to data URLs before forwarding.
|
|
130
|
+
- If a Maker proxy tool returns an error or `isError`, report the full remote result/error payload.
|
|
131
|
+
Include the server response payload so developers can diagnose the issue.
|
|
95
132
|
- Use `create_3d_model_task` for game 3D models.
|
|
96
133
|
- Use `query_3d_model_task` for polling 3D model tasks.
|
|
97
134
|
- Before `edit_image`, resolve dragged or referenced images to a local project image path or CDN
|
|
@@ -101,8 +138,10 @@ This policy overrides generic imagegen or native media skills for Maker game ass
|
|
|
101
138
|
- Do not call `edit_image` without an image path or CDN URL.
|
|
102
139
|
|
|
103
140
|
Generated assets should be saved by Maker MCP under `assets/image`, `assets/video`, or
|
|
104
|
-
`assets/audio`; generated 3D
|
|
105
|
-
|
|
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.
|
|
106
145
|
|
|
107
146
|
## Project Detection
|
|
108
147
|
|
|
@@ -114,6 +153,13 @@ A directory is a Maker project when the user's current project directory or one
|
|
|
114
153
|
|
|
115
154
|
When this file exists, explain that the directory is already bound to a Maker project.
|
|
116
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
|
+
|
|
117
163
|
When this file is missing and the user asks to clone, initialize, or continue Maker local
|
|
118
164
|
development, do not ask the user for an app_id directly. Follow the initialization workflow.
|
|
119
165
|
|
|
@@ -143,8 +189,9 @@ directory.
|
|
|
143
189
|
### Proxy Tools Missing From The Current Session
|
|
144
190
|
|
|
145
191
|
If the user is in a bound Maker project but `generate_image`, `batch_generate_images`, `edit_image`,
|
|
146
|
-
`create_video_task`, `text_to_music`, `create_3d_model_task`, or
|
|
147
|
-
from the current AI tool list, 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:
|
|
148
195
|
|
|
149
196
|
1. Read `maker://status` or call `maker_status_lite` without `target_dir` to see the MCP server cwd.
|
|
150
197
|
2. If the user provides or the client exposes the real Maker project directory, call
|
|
@@ -157,8 +204,8 @@ from the current AI tool list, diagnose the MCP cwd before suggesting repeated r
|
|
|
157
204
|
`taptap-maker` MCP config `cwd` to the Maker project directory, then reconnect `taptap-maker`
|
|
158
205
|
from the client's MCP UI such as `/mcp`.
|
|
159
206
|
|
|
160
|
-
|
|
161
|
-
|
|
207
|
+
When Maker proxy tools are missing, explain that this is likely a session/configuration problem and
|
|
208
|
+
that Maker tools are preferred for Maker game assets.
|
|
162
209
|
|
|
163
210
|
## Initialization Workflow
|
|
164
211
|
|
|
@@ -194,10 +241,10 @@ Workflow:
|
|
|
194
241
|
5. Run `taptap-maker init` in the user's intended Maker directory. The CLI will request PAT if
|
|
195
242
|
missing, fetch TapTap token, show a paged app preview, ask the user to choose or create a Maker
|
|
196
243
|
project, clone the Maker project, prepare the AI dev kit, and install/verify MCP config.
|
|
197
|
-
The app preview always includes `0. Create a new Maker project
|
|
198
|
-
remain visible when an AI summarizes or truncates a long app list
|
|
199
|
-
|
|
200
|
-
non-interactive runs.
|
|
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.
|
|
201
248
|
The generated MCP config pins the selected Maker project directory as `cwd` when the target
|
|
202
249
|
client supports it. If a user manually reinstalls MCP config later, prefer
|
|
203
250
|
`taptap-maker mcp install --target-dir <PROJECT_DIR>`.
|
|
@@ -303,9 +350,9 @@ full list, or run `taptap-maker apps --all` for a one-shot human-readable dump;
|
|
|
303
350
|
`taptap-maker apps --json` only when AI / scripts need the machine-readable list. If the
|
|
304
351
|
chat/client width is enough, you may present the preview as a compact two-column layout;
|
|
305
352
|
otherwise keep a single column. Keep app_id visible in every app row, and include the preview
|
|
306
|
-
details instead of only a summary such as "40 apps are available". Always preserve
|
|
307
|
-
`0. Create a new Maker project
|
|
308
|
-
preview is cropped.
|
|
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.
|
|
309
356
|
|
|
310
357
|
Selection confirmation:
|
|
311
358
|
|
|
@@ -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.
|