@taptap/instant-games-open-mcp 1.24.5 → 1.24.7-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 +40 -12
- package/bin/taptap-maker +27 -0
- package/dist/maker.js +33909 -0
- package/dist/proxy.js +1 -1
- package/dist/server.js +1 -1
- package/package.json +9 -7
- package/skills/taptap-maker-dev-kit-guide/SKILL.md +55 -0
- package/skills/taptap-maker-local/SKILL.md +483 -0
- package/skills/update-taptap-mcp/SKILL.md +203 -0
package/README.md
CHANGED
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
- **🤖 智能引导** - AI Agent 自动验证前置条件,主动询问用户选择
|
|
19
19
|
|
|
20
20
|
**NPM**: [@taptap/instant-games-open-mcp](https://www.npmjs.com/package/@taptap/instant-games-open-mcp)
|
|
21
|
-
**Maker NPM**: [@taptap/maker](https://www.npmjs.com/package/@taptap/maker)
|
|
22
21
|
|
|
23
22
|
## 🦞 OpenClaw Plugin(实验中)
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
仓库内提供了一个可独立发布的 OpenClaw plugin 子包:
|
|
26
25
|
|
|
27
26
|
- [`packages/openclaw-dc-plugin`](packages/openclaw-dc-plugin)
|
|
28
27
|
|
|
@@ -42,17 +41,18 @@
|
|
|
42
41
|
详见:
|
|
43
42
|
|
|
44
43
|
- [OpenClaw Plugin 说明](docs/OPENCLAW_PLUGIN.md)
|
|
44
|
+
- 维护者发布方式:`npm run openclaw:pack` / `npm run openclaw:publish`
|
|
45
45
|
|
|
46
46
|
## 🛠️ TapTap Maker 本地开发(CLI-first)
|
|
47
47
|
|
|
48
48
|
Maker 本地开发按“初始化用 CLI,开发循环用 MCP”拆分。首次配置推荐直接运行:
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
npx -y @taptap/maker init
|
|
51
|
+
npx -y -p @taptap/instant-games-open-mcp taptap-maker init
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
CLI 负责一次性流程:Git 检查、PAT 保存、TapTap token 换取、app 列表选择、
|
|
55
|
-
clone、
|
|
54
|
+
CLI 负责一次性流程:Git 检查、PAT 保存、TapTap token 换取、app 列表选择、AI dev kit
|
|
55
|
+
准备、Maker Git clone、MCP 配置写入与基础验证。安装或修改 MCP 配置后,Claude Code /
|
|
56
56
|
Codex / Cursor 通常需要重启会话、刷新 MCP 或新开窗口才会出现新的 MCP tools;但当前终端
|
|
57
57
|
里的 CLI 初始化流程可以继续完成到 PAT 鉴权和项目绑定。
|
|
58
58
|
|
|
@@ -63,15 +63,14 @@ taptap-maker init
|
|
|
63
63
|
taptap-maker doctor
|
|
64
64
|
taptap-maker apps --json
|
|
65
65
|
taptap-maker pat set
|
|
66
|
-
taptap-maker install --ide codex,cursor,claude
|
|
66
|
+
taptap-maker mcp install --ide codex,cursor,claude
|
|
67
67
|
taptap-maker mcp verify
|
|
68
68
|
taptap-maker dev-kit update
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
`taptap-maker pat set` 默认通过交互式 prompt 接收 PAT,避免把 PAT 写进
|
|
72
72
|
`ps` 进程列表或 shell history;自动化场景可用 `--pat-stdin` 从标准输入读取。
|
|
73
|
-
`taptap-maker
|
|
74
|
-
MCP 配置。`taptap-maker mcp verify` 默认验证 `mcp install` 写入 AI 客户端配置的 npx 启动命令;
|
|
73
|
+
`taptap-maker mcp verify` 默认验证 `mcp install` 写入 AI 客户端配置的 npx 启动命令;
|
|
75
74
|
本地开发只想验证当前 CLI 时可加 `--mode self`。如果验证输出 `status: null` 或
|
|
76
75
|
`failure_type`,说明本地 Node/npm/npx 启动命令还没正常跑通,Maker MCP server
|
|
77
76
|
尚未启动;这不是 PAT、app 选择或 Maker 业务接口报错。先按输出里的 command
|
|
@@ -103,7 +102,8 @@ Maker 远端但构建失败。只有用户明确说“不提交,只构建云
|
|
|
103
102
|
读取 `runtime_logs.state_file`。
|
|
104
103
|
|
|
105
104
|
`maker_pull_runtime_logs` 只做固定的一次性业务流:调用远端 `query_runtime_logs`,默认只拉
|
|
106
|
-
`user_script`(客户端 Lua 脚本)和 `server_user_script`(服务端 Lua
|
|
105
|
+
`engine`、`user_script`(客户端 Lua 脚本)和 `server_user_script`(服务端 Lua 脚本)。
|
|
106
|
+
本地只追加写入一份
|
|
107
107
|
`.maker/logs/runtime/runtime.log`,保持 server 日志行格式(`t/topic/level/msg/userId` 等),
|
|
108
108
|
但去掉无用的 `id` 字段,也不再补 `time/message` 重复字段;`.maker/logs/runtime/state.json`
|
|
109
109
|
保存下一次查询游标和 watcher 心跳状态,包括最近轮询时间、最近成功时间、最近写入条数、
|
|
@@ -130,11 +130,11 @@ Maker 现在同时内置三个工作流 skill:
|
|
|
130
130
|
|
|
131
131
|
- `taptap-maker-local`:把 Maker 初始化转交 CLI,并让本地 AI/Agent 按 push 失败分类处理 pull/rebase、切回 main、移除禁止路径、鉴权刷新、冲突和构建失败恢复。
|
|
132
132
|
- `taptap-maker-dev-kit-guide`:介绍 clone 时安装到项目目录的 AI dev kit,明确 `CLAUDE.md`、`examples/`、`templates/`、`urhox-libs/` 的用途。
|
|
133
|
-
- `update-taptap-mcp`:引导用户更新本地 npx 缓存里的 `@taptap/
|
|
133
|
+
- `update-taptap-mcp`:引导用户更新本地 npx 缓存里的 `@taptap/instant-games-open-mcp`,并提醒 Maker MCP 推荐安装到 user/global scope。
|
|
134
134
|
|
|
135
|
-
初始化流程里,PAT 验证通过、用户选择 app 后,`taptap-maker init`
|
|
135
|
+
初始化流程里,PAT 验证通过、用户选择 app 后,`taptap-maker init` 会自动准备本地 AI dev kit。
|
|
136
136
|
|
|
137
|
-
CLI 会根据 `TAPTAP_MCP_ENV` 自动选择下载源:`production`(默认)使用 `https://urhox-demo-platform.spark.xd.com/ai-dev-kit/pd/stable/ai-dev-kit.zip`,`rnd` 使用 `https://urhox-demo-platform.spark.xd.com/ai-dev-kit/rnd/latest/ai-dev-kit.zip
|
|
137
|
+
CLI 会根据 `TAPTAP_MCP_ENV` 自动选择下载源:`production`(默认)使用 `https://urhox-demo-platform.spark.xd.com/ai-dev-kit/pd/stable/ai-dev-kit.zip`,`rnd` 使用 `https://urhox-demo-platform.spark.xd.com/ai-dev-kit/rnd/latest/ai-dev-kit.zip`,解压开发环境文档、引擎 API、demo、Lua 工具和本地 AI skills 到当前目录;解压复制完成后会自动运行 `tools/install-skills.sh all`(Linux/macOS)或 `tools/install-skills.ps1 all`(Windows),把 dev kit skills 安装到各 Agent 的发现目录。CLI 会先输出 `AI skills install started: <script>`,完成后输出 `AI skills install result: claude=N, codex=N, cursor=N, gemini=N`;脚本缺失、跳过或失败时也会输出原因,失败会带上平台、脚本、命令、stdout 和 stderr,方便 AI 与用户直接判断安装情况。流程会跳过 ZIP 里的顶层 `scripts` 目录并删除下载 ZIP,避免和 Maker 项目代码冲突。dev kit 准备成功后会刷新项目根 `.gitignore`,防止这些本地开发环境文件、Agent skill 目录和 `.maker/` 本地运行状态被提交到 Maker Git;`.gitignore` 本身是 Maker 项目必要文件,首次 init 生成后应随游戏代码提交。
|
|
138
138
|
|
|
139
139
|
`maker://status` 和 `maker_status_lite` 会输出已随包内置的 skill 名称和文档路径:`taptap-maker-local`、`taptap-maker-dev-kit-guide` 与 `update-taptap-mcp`。Maker 操作目标是用户当前项目目录;若 MCP 进程 cwd 是临时对话目录,Agent 应把用户当前项目目录作为 `target_dir` 传入,不扫描其他项目。已绑定项目会检查 `CLAUDE.md`、`examples/`、`templates/`、`urhox-libs/`,并输出 `skill_install_status` 和 `skill_install_summary` 说明 `.claude/.codex/.cursor/.gemini` 下的 skill 安装状态;缺失时用 `taptap-maker dev-kit update` 恢复本地 AI dev kit 并刷新 `.gitignore` 管理块。
|
|
140
140
|
|
|
@@ -535,8 +535,36 @@ graph LR
|
|
|
535
535
|
- **[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)** - 架构文档
|
|
536
536
|
- **[docs/DEPLOYMENT.md](docs/DEPLOYMENT.md)** - 部署指南(本地、Docker、开发者测试)
|
|
537
537
|
- **[docs/PROXY.md](docs/PROXY.md)** - MCP Proxy 开发指南(面向 TapCode 等平台)
|
|
538
|
+
- **[docs/CI_CD.md](docs/CI_CD.md)** - CI/CD 和自动化发布流程
|
|
538
539
|
- **[docs/PATH_RESOLUTION.md](docs/PATH_RESOLUTION.md)** - 路径解析系统
|
|
539
540
|
|
|
541
|
+
## 🔄 CI/CD
|
|
542
|
+
|
|
543
|
+
基于 Conventional Commits 的完全自动化发布:
|
|
544
|
+
|
|
545
|
+
```bash
|
|
546
|
+
# 创建功能分支
|
|
547
|
+
git checkout -b feat/awesome-feature
|
|
548
|
+
|
|
549
|
+
# 提交代码
|
|
550
|
+
git commit -m "feat: add awesome feature"
|
|
551
|
+
|
|
552
|
+
# 创建 PR 并合并
|
|
553
|
+
gh pr create && gh pr merge
|
|
554
|
+
|
|
555
|
+
# 自动发布到 npm(版本:1.4.13 → 1.5.0)
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
**发布流程**:
|
|
559
|
+
|
|
560
|
+
1. PR 合并 → 触发 Actions
|
|
561
|
+
2. 分析 commits 确定版本号
|
|
562
|
+
3. 发布到 npm
|
|
563
|
+
4. 自动创建版本 PR 并合并
|
|
564
|
+
5. 创建 GitHub Release
|
|
565
|
+
|
|
566
|
+
详见: [docs/CI_CD.md](docs/CI_CD.md)
|
|
567
|
+
|
|
540
568
|
## 🤝 贡献
|
|
541
569
|
|
|
542
570
|
欢迎贡献!请遵循:
|
package/bin/taptap-maker
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TapTap Maker MCP
|
|
5
|
+
* Entry point for CLI subcommands and MCP server mode.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { join, dirname } from 'node:path';
|
|
9
|
+
import { existsSync } from 'node:fs';
|
|
10
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
11
|
+
|
|
12
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
+
const __dirname = dirname(__filename);
|
|
14
|
+
const packageRoot = join(__dirname, '..');
|
|
15
|
+
const distPath = join(packageRoot, 'dist', 'maker.js');
|
|
16
|
+
const distUrl = pathToFileURL(distPath).href;
|
|
17
|
+
|
|
18
|
+
if (existsSync(distPath)) {
|
|
19
|
+
import(distUrl).catch((error) => {
|
|
20
|
+
console.error('❌ Failed to start TapTap Maker MCP:', error);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
});
|
|
23
|
+
} else {
|
|
24
|
+
console.error('❌ Maker MCP bundle not found. Please build the project first:');
|
|
25
|
+
console.error(' npm run build');
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|