@taptap/instant-games-open-mcp 1.23.3 → 1.23.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/instant-games-open-mcp",
3
- "version": "1.23.3",
3
+ "version": "1.23.4",
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, resolve pull/rebase/conflict with user approval, then retry `maker_build_current_directory`.
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, or run `taptap-maker doctor`. |
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, list every available app, ask the user to choose, prepare the AI dev
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,8 +200,12 @@ 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, display every app entry from the tool result and ask the user to
204
- choose by index, app id, or name. Do not replace the list with a summary such as "10 apps are
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 40 apps and `limit` is capped at 100.
205
+ If the target is not visible, ask the user to type `next`, provide app id/name keywords, or run
206
+ `taptap-maker apps --offset 40 --limit 40` / `taptap-maker apps --json`. If the chat/client width
207
+ is enough, you may present the preview as a compact two-column layout; otherwise keep a single
208
+ column. Do not omit app_id, and do not replace the preview with only a summary such as "40 apps are
205
209
  available".
206
210
 
207
211
  Do not auto-select:
@@ -316,6 +320,26 @@ Prefer user/global scope for Maker MCP installation. If a project/local config a
316
320
  do not block the workflow; just explain that user/global scope is recommended to avoid config
317
321
  being tied to a specific project folder.
318
322
 
323
+ ## Remote Sync Status
324
+
325
+ For a bound Maker project, `maker://status` and `maker_status_lite` include `Maker remote sync`.
326
+ Read this section before the user starts editing in a fresh conversation:
327
+
328
+ - For frequent polling or quick local-only status checks, call `maker_status_lite` with
329
+ `skip_remote_sync: true` to avoid a `git fetch origin` network round trip on every status read.
330
+ - `up_to_date`: continue development.
331
+ - `needs_pull` with `local_changes: no`: tell the user the workspace is clean and the local AI can
332
+ run `git pull --ff-only origin main` before editing.
333
+ - `needs_pull` with `local_changes: yes`: do not pull immediately. Explain that remote changes exist
334
+ and local edits are present; ask the local AI to inspect `git status` and help the user choose
335
+ submit current changes, stash then pull and restore, or cancel.
336
+ - `diverged`: do not push or blindly pull. Ask the local AI to plan a rebase or merge of current
337
+ Maker remote changes.
338
+ - `branch_not_allowed`: Maker only accepts `main`; switch/migrate local commits to `main` before
339
+ build or submit.
340
+ - `remote_unavailable`: follow the failure classification and retry later only for temporary
341
+ 5xx/network/timeout failures.
342
+
319
343
  ## Local Change Review
320
344
 
321
345
  Before submitting, run local Git inspection when available:
@@ -358,7 +382,10 @@ them before build.
358
382
 
359
383
  For push failures, use the returned `classification`, `retryable`, `retry_reason`, and
360
384
  `retry_attempts` fields. Temporary 5xx/network/timeout failures may be retried with the Maker build
361
- tool; rejected remote updates require pull/rebase first; auth failures require refreshing PAT.
385
+ tool; `remote_rejected` means remote updates require pull/rebase first; `auth` means refreshing PAT;
386
+ `branch_not_allowed` means Maker remote only accepts `main`; `forbidden_path` means the remote
387
+ pre-receive hook rejected one or more paths/directories and the forbidden pattern from stderr must
388
+ be removed from the unpushed commit before retrying.
362
389
 
363
390
  When a Maker tool output contains `push_recovery`, follow it exactly:
364
391
 
@@ -366,6 +393,11 @@ When a Maker tool output contains `push_recovery`, follow it exactly:
366
393
  - Do not ask for permission to run a generic `git push`.
367
394
  - Retry with `maker_build_current_directory` for submit and build requests.
368
395
  - If the failure is `remote_rejected`, ask before pull/rebase; do not create a new branch or PR.
396
+ - If the failure is `branch_not_allowed`, do not pull/rebase. Tell the user Maker only accepts
397
+ `main`, switch back to `main`, cherry-pick the preserved local commit there, then retry.
398
+ - If the failure is `forbidden_path`, do not refresh PAT. Read the forbidden pattern in stderr,
399
+ remove those paths from the unpushed commit while keeping local files, then retry after
400
+ `git status` is clean for them.
369
401
 
370
402
  ## Pull And Conflict Handling
371
403