@taptap/instant-games-open-mcp 1.24.8 → 1.24.10
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 -3
- package/dist/proxy.js +1 -16
- package/dist/server.js +84 -85
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,11 +83,13 @@ maker_build_current_directory # commit/push/build 合并入口
|
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
`maker_build_current_directory` 同时覆盖“构建 / 预览 / 跑一下 / 验证一下 / 提交 / 推送”。
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
普通构建会先 push 到 Maker 远端再触发远端 build:本地有改动时提交改动,已有未推送 commit 时
|
|
87
|
+
直接 push,本地干净且没有未推送 commit 时创建 `chore: wake maker build server` 空提交来唤醒远端
|
|
88
|
+
服务。push 失败时不会继续 build,会返回本地 commit、ahead 状态、stderr/stdout 和下一步建议,
|
|
88
89
|
交给本地 Agent/skill 处理 pull、rebase 或冲突;push 成功但 build 失败时,会明确说明代码已到
|
|
89
90
|
Maker 远端但构建失败。只有用户明确说“不提交,只构建云端版本”时,才传
|
|
90
|
-
`confirm_remote_build_without_submit=true
|
|
91
|
+
`confirm_remote_build_without_submit=true`;该模式会先打开并返回 Maker 页面链接,方便用户查看远端
|
|
92
|
+
项目并避免服务休眠导致构建失败。
|
|
91
93
|
|
|
92
94
|
构建成功后,Maker MCP 会刷新 Maker Web 预览,并启动本地 runtime log watcher。后续如果用户询问
|
|
93
95
|
游戏运行结果、Lua 报错或调试问题,本地 AI Agent 应优先读取构建返回中的
|
package/dist/proxy.js
CHANGED
|
@@ -29137,7 +29137,7 @@ var LogWriter = class {
|
|
|
29137
29137
|
};
|
|
29138
29138
|
|
|
29139
29139
|
// src/mcp-proxy/proxy.ts
|
|
29140
|
-
var VERSION = true ? "1.24.
|
|
29140
|
+
var VERSION = true ? "1.24.10" : "dev";
|
|
29141
29141
|
var LOCAL_PROXY_TAG = "local";
|
|
29142
29142
|
var TapTapMCPProxy = class {
|
|
29143
29143
|
constructor(config2) {
|
|
@@ -29213,9 +29213,6 @@ var TapTapMCPProxy = class {
|
|
|
29213
29213
|
if (this.config.tenant.user_id) {
|
|
29214
29214
|
this.log("info", `User ID: ${this.config.tenant.user_id}`);
|
|
29215
29215
|
}
|
|
29216
|
-
if (this.config.tenant.client_session_id) {
|
|
29217
|
-
this.log("info", `Client Session ID: ${this.config.tenant.client_session_id}`);
|
|
29218
|
-
}
|
|
29219
29216
|
if (this.config.tenant.project_id) {
|
|
29220
29217
|
this.log("info", `Project ID: ${this.config.tenant.project_id}`);
|
|
29221
29218
|
}
|
|
@@ -29243,7 +29240,6 @@ var TapTapMCPProxy = class {
|
|
|
29243
29240
|
*
|
|
29244
29241
|
* Headers:
|
|
29245
29242
|
* - X-TapTap-User-Id: 用户标识
|
|
29246
|
-
* - X-TapTap-Client-Session-Id: 业务/编辑器会话标识
|
|
29247
29243
|
* - X-TapTap-Project-Id: 项目标识
|
|
29248
29244
|
* - X-TapTap-Project-Path: 项目路径
|
|
29249
29245
|
* - X-TapTap-Mac-Token: MAC 认证令牌(JSON)
|
|
@@ -29256,9 +29252,6 @@ var TapTapMCPProxy = class {
|
|
|
29256
29252
|
if (this.config.tenant.user_id) {
|
|
29257
29253
|
headers["X-TapTap-User-Id"] = this.config.tenant.user_id;
|
|
29258
29254
|
}
|
|
29259
|
-
if (this.config.tenant.client_session_id) {
|
|
29260
|
-
headers["X-TapTap-Client-Session-Id"] = this.config.tenant.client_session_id;
|
|
29261
|
-
}
|
|
29262
29255
|
if (this.config.tenant.project_id) {
|
|
29263
29256
|
headers["X-TapTap-Project-Id"] = this.config.tenant.project_id;
|
|
29264
29257
|
}
|
|
@@ -29280,7 +29273,6 @@ var TapTapMCPProxy = class {
|
|
|
29280
29273
|
* 注入的参数(以下划线开头,表示私有):
|
|
29281
29274
|
* - _mac_token: MAC 认证令牌
|
|
29282
29275
|
* - _user_id: 用户标识(可选)
|
|
29283
|
-
* - _client_session_id: 业务/编辑器会话标识(可选)
|
|
29284
29276
|
* - _project_id: 项目标识(可选)
|
|
29285
29277
|
* - _project_path: 项目路径(可选)
|
|
29286
29278
|
* - _custom_fields: 业务自定义字段(可选)
|
|
@@ -29293,9 +29285,6 @@ var TapTapMCPProxy = class {
|
|
|
29293
29285
|
if (this.config.tenant.user_id) {
|
|
29294
29286
|
injected._user_id = this.config.tenant.user_id;
|
|
29295
29287
|
}
|
|
29296
|
-
if (this.config.tenant.client_session_id) {
|
|
29297
|
-
injected._client_session_id = this.config.tenant.client_session_id;
|
|
29298
|
-
}
|
|
29299
29288
|
if (this.config.tenant.project_id) {
|
|
29300
29289
|
injected._project_id = this.config.tenant.project_id;
|
|
29301
29290
|
}
|
|
@@ -29848,9 +29837,6 @@ function validateConfig(config2) {
|
|
|
29848
29837
|
if (!config2.tenant) {
|
|
29849
29838
|
errors.push("- Missing required field: tenant");
|
|
29850
29839
|
} else {
|
|
29851
|
-
if (config2.tenant.client_session_id !== void 0 && typeof config2.tenant.client_session_id !== "string") {
|
|
29852
|
-
errors.push("- tenant.client_session_id must be a string");
|
|
29853
|
-
}
|
|
29854
29840
|
if (config2.tenant.custom_fields !== void 0) {
|
|
29855
29841
|
const cf = config2.tenant.custom_fields;
|
|
29856
29842
|
if (typeof cf !== "object" || cf === null || Array.isArray(cf) || Object.getPrototypeOf(cf) !== Object.prototype) {
|
|
@@ -29901,7 +29887,6 @@ function applyDefaults(config2) {
|
|
|
29901
29887
|
project_path: config2.tenant.project_path || ".",
|
|
29902
29888
|
user_id: config2.tenant.user_id,
|
|
29903
29889
|
project_id: config2.tenant.project_id,
|
|
29904
|
-
client_session_id: config2.tenant.client_session_id,
|
|
29905
29890
|
custom_fields: config2.tenant.custom_fields
|
|
29906
29891
|
},
|
|
29907
29892
|
auth: config2.auth,
|