@taptap/instant-games-open-mcp 1.23.3 → 1.23.5
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 +16 -3
- package/dist/maker.js +396 -41
- package/dist/proxy.js +1 -1
- package/dist/server.js +97 -85
- package/package.json +1 -1
- package/skills/taptap-maker-dev-kit-guide/SKILL.md +4 -1
- package/skills/taptap-maker-local/SKILL.md +39 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taptap/instant-games-open-mcp",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TapTap Open API MCP Server - Documentation and Management APIs for TapTap Minigame and H5 Games (Leaderboard, and more features coming)",
|
|
6
6
|
"main": "dist/server.js",
|
|
@@ -33,6 +33,8 @@ When a user asks to develop or modify a Maker project after clone:
|
|
|
33
33
|
If these entries are missing in a bound Maker project, read `maker://status` or call
|
|
34
34
|
`maker_status_lite` with the actual project directory as `target_dir` to confirm state, then run
|
|
35
35
|
`taptap-maker dev-kit update` in that project directory to restore missing local dev-kit entries.
|
|
36
|
+
If status includes `Maker remote sync`, follow that section before editing: pull first only when the
|
|
37
|
+
workspace is clean, otherwise let the local AI help the user submit, stash, or cancel before pulling.
|
|
36
38
|
|
|
37
39
|
These files are local development aids. Do not submit them to Maker Git unless the user explicitly
|
|
38
40
|
asks and understands they are local environment files.
|
|
@@ -45,7 +47,8 @@ Keep validation simple for Maker users. 用户可以直接说“提交”或“
|
|
|
45
47
|
`maker_build_current_directory`. The tool commits when needed, pushes to Maker remote, and then
|
|
46
48
|
runs the remote build.
|
|
47
49
|
- If push fails, do not start a separate build or generic Git push. Explain the returned recovery
|
|
48
|
-
details,
|
|
50
|
+
details, follow the returned classification-specific recovery (`remote_rejected`,
|
|
51
|
+
`branch_not_allowed`, `forbidden_path`, or `auth`), then retry `maker_build_current_directory`.
|
|
49
52
|
- After submit or build finishes, tell the user to open the TapMaker 网页端查看结果.
|
|
50
53
|
|
|
51
54
|
Do not create local-only test scripts just to verify Maker changes. The expected validation path is
|
|
@@ -44,7 +44,7 @@ exists.
|
|
|
44
44
|
| --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
|
|
45
45
|
| initialize / configure / continue Maker local development | Run the Maker CLI initialization workflow. |
|
|
46
46
|
| clone / download Maker project locally | Follow "Initialization Workflow"; do not ask for app_id directly. |
|
|
47
|
-
| status / is Maker ready | Read `maker://status`, call `maker_status_lite` if resources are unavailable,
|
|
47
|
+
| status / is Maker ready | Read `maker://status`, call `maker_status_lite` if resources are unavailable, then follow `Maker remote sync` if present. |
|
|
48
48
|
| submit / commit / push to Maker | Inspect local Git state, summarize changed files, then call `maker_build_current_directory` unless blocked. |
|
|
49
49
|
| pull / update from remote | Inspect local changes first; if dirty, explain options before pulling. |
|
|
50
50
|
| conflict / merge failed | Explain why the conflict happened, list conflict files, inspect conflict hunks, propose a resolution plan, and ask before editing. |
|
|
@@ -109,7 +109,7 @@ Workflow:
|
|
|
109
109
|
ask which app to clone unless the user explicitly asks to switch or re-clone.
|
|
110
110
|
3. If Git is missing, stop. Tell the user Git is required for clone/submit/build-side Git work.
|
|
111
111
|
4. Run `taptap-maker init` in the user's intended Maker directory. The CLI will request PAT if
|
|
112
|
-
missing, fetch TapTap token,
|
|
112
|
+
missing, fetch TapTap token, show a paged app preview, ask the user to choose, prepare the AI dev
|
|
113
113
|
kit, clone the Maker project, and install/verify MCP config.
|
|
114
114
|
Tell the user that the first Maker clone can take 20+ seconds because the server may be
|
|
115
115
|
preparing the repository, and that they should keep the command running while the CLI retries
|
|
@@ -200,9 +200,14 @@ If the current directory is already bound, app lists from `taptap-maker apps` ar
|
|
|
200
200
|
not ask which app to clone. Continue operating on the current bound project unless the user
|
|
201
201
|
explicitly requests a different project.
|
|
202
202
|
|
|
203
|
-
When app selection is needed,
|
|
204
|
-
choose by index, app id, or name.
|
|
205
|
-
|
|
203
|
+
When app selection is needed, show the returned app preview and total count, then ask the user to
|
|
204
|
+
choose by index, app id, or name. The default preview shows the 40 most recently active apps.
|
|
205
|
+
If the target is not visible, ask the user to type `all` inside `taptap-maker init` to expand the
|
|
206
|
+
full list, or run `taptap-maker apps --all` for a one-shot human-readable dump; use
|
|
207
|
+
`taptap-maker apps --json` only when AI / scripts need the machine-readable list. If the
|
|
208
|
+
chat/client width is enough, you may present the preview as a compact two-column layout;
|
|
209
|
+
otherwise keep a single column. Do not omit app_id, and do not replace the preview with only a
|
|
210
|
+
summary such as "40 apps are available".
|
|
206
211
|
|
|
207
212
|
Do not auto-select:
|
|
208
213
|
|
|
@@ -316,6 +321,26 @@ Prefer user/global scope for Maker MCP installation. If a project/local config a
|
|
|
316
321
|
do not block the workflow; just explain that user/global scope is recommended to avoid config
|
|
317
322
|
being tied to a specific project folder.
|
|
318
323
|
|
|
324
|
+
## Remote Sync Status
|
|
325
|
+
|
|
326
|
+
For a bound Maker project, `maker://status` and `maker_status_lite` include `Maker remote sync`.
|
|
327
|
+
Read this section before the user starts editing in a fresh conversation:
|
|
328
|
+
|
|
329
|
+
- For frequent polling or quick local-only status checks, call `maker_status_lite` with
|
|
330
|
+
`skip_remote_sync: true` to avoid a `git fetch origin` network round trip on every status read.
|
|
331
|
+
- `up_to_date`: continue development.
|
|
332
|
+
- `needs_pull` with `local_changes: no`: tell the user the workspace is clean and the local AI can
|
|
333
|
+
run `git pull --ff-only origin main` before editing.
|
|
334
|
+
- `needs_pull` with `local_changes: yes`: do not pull immediately. Explain that remote changes exist
|
|
335
|
+
and local edits are present; ask the local AI to inspect `git status` and help the user choose
|
|
336
|
+
submit current changes, stash then pull and restore, or cancel.
|
|
337
|
+
- `diverged`: do not push or blindly pull. Ask the local AI to plan a rebase or merge of current
|
|
338
|
+
Maker remote changes.
|
|
339
|
+
- `branch_not_allowed`: Maker only accepts `main`; switch/migrate local commits to `main` before
|
|
340
|
+
build or submit.
|
|
341
|
+
- `remote_unavailable`: follow the failure classification and retry later only for temporary
|
|
342
|
+
5xx/network/timeout failures.
|
|
343
|
+
|
|
319
344
|
## Local Change Review
|
|
320
345
|
|
|
321
346
|
Before submitting, run local Git inspection when available:
|
|
@@ -358,7 +383,10 @@ them before build.
|
|
|
358
383
|
|
|
359
384
|
For push failures, use the returned `classification`, `retryable`, `retry_reason`, and
|
|
360
385
|
`retry_attempts` fields. Temporary 5xx/network/timeout failures may be retried with the Maker build
|
|
361
|
-
tool;
|
|
386
|
+
tool; `remote_rejected` means remote updates require pull/rebase first; `auth` means refreshing PAT;
|
|
387
|
+
`branch_not_allowed` means Maker remote only accepts `main`; `forbidden_path` means the remote
|
|
388
|
+
pre-receive hook rejected one or more paths/directories and the forbidden pattern from stderr must
|
|
389
|
+
be removed from the unpushed commit before retrying.
|
|
362
390
|
|
|
363
391
|
When a Maker tool output contains `push_recovery`, follow it exactly:
|
|
364
392
|
|
|
@@ -366,6 +394,11 @@ When a Maker tool output contains `push_recovery`, follow it exactly:
|
|
|
366
394
|
- Do not ask for permission to run a generic `git push`.
|
|
367
395
|
- Retry with `maker_build_current_directory` for submit and build requests.
|
|
368
396
|
- If the failure is `remote_rejected`, ask before pull/rebase; do not create a new branch or PR.
|
|
397
|
+
- If the failure is `branch_not_allowed`, do not pull/rebase. Tell the user Maker only accepts
|
|
398
|
+
`main`, switch back to `main`, cherry-pick the preserved local commit there, then retry.
|
|
399
|
+
- If the failure is `forbidden_path`, do not refresh PAT. Read the forbidden pattern in stderr,
|
|
400
|
+
remove those paths from the unpushed commit while keeping local files, then retry after
|
|
401
|
+
`git status` is clean for them.
|
|
369
402
|
|
|
370
403
|
## Pull And Conflict Handling
|
|
371
404
|
|