@taptap/instant-games-open-mcp 1.24.4 → 1.24.6
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 +1 -30
- package/dist/proxy.js +1 -1
- package/dist/server.js +1 -1
- package/package.json +7 -9
- package/bin/taptap-maker +0 -27
- package/dist/maker.js +0 -36539
- package/skills/taptap-maker-dev-kit-guide/SKILL.md +0 -55
- package/skills/taptap-maker-local/SKILL.md +0 -489
- package/skills/update-taptap-mcp/SKILL.md +0 -203
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: update-taptap-mcp
|
|
3
|
-
description: 更新本地 npx 缓存的 @taptap/instant-games-open-mcp 到最新版本。当用户说"更新 taptap mcp"、"tap mcp 有新版本"、"刷新 mcp 缓存"时触发。先判断平台,再只读对应章节:Windows 用户读上半部分,macOS/Linux 用户读下半部分。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## 安装位置提醒(所有平台、所有客户端通用)
|
|
7
|
-
|
|
8
|
-
检查或更新 TapTap MCP 时,顺带提醒用户:
|
|
9
|
-
|
|
10
|
-
- 推荐把 Maker MCP 安装到 user scope / 全局 scope。
|
|
11
|
-
- 不建议安装到当前目录、项目目录或仓库级 scope,避免配置随项目变化或被误提交。
|
|
12
|
-
- 如果用户当前使用项目级配置,不要强制迁移,也不要阻塞更新;只说明推荐做法,并给出迁移方向。
|
|
13
|
-
- 具体迁移操作交给用户当前 AI 客户端处理,例如让客户端把 MCP 从 project/local scope 移到 user/global scope。
|
|
14
|
-
|
|
15
|
-
提醒示例:
|
|
16
|
-
|
|
17
|
-
```text
|
|
18
|
-
顺带提醒:Maker MCP 建议安装到 user scope 或全局 scope,不建议放在当前项目目录。
|
|
19
|
-
如果你现在是项目级配置,也可以继续更新;后续可让 Claude Code / Codex / Cursor
|
|
20
|
-
帮你迁移到 user/global scope。
|
|
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。
|
|
74
|
-
|
|
75
|
-
## Step 1:对比远端和本地版本
|
|
76
|
-
|
|
77
|
-
```powershell
|
|
78
|
-
npm view '@taptap/instant-games-open-mcp' 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
|
-
```
|
|
85
|
-
|
|
86
|
-
若版本相同,可以结束更新缓存流程。
|
|
87
|
-
|
|
88
|
-
## Step 2:清理缓存
|
|
89
|
-
|
|
90
|
-
```powershell
|
|
91
|
-
$NpxDir = Join-Path (npm config get cache) '_npx'
|
|
92
|
-
Get-ChildItem $NpxDir -Directory -ErrorAction SilentlyContinue | ForEach-Object {
|
|
93
|
-
if (Test-Path (Join-Path $_.FullName 'node_modules\@taptap\instant-games-open-mcp')) {
|
|
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/instant-games-open-mcp' taptap-maker help > $log 2> "$log.err"
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## Step 4:验证
|
|
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'
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
## Step 5:提示用户重启客户端
|
|
120
|
-
|
|
121
|
-
更新完成后提醒用户重启 MCP 客户端,或新开 Claude Code / Codex / Cursor 窗口。当前会话通常不会热加载新 MCP;重启后以能读取 `maker://status` 作为首选生效标准;如果客户端不支持 MCP Resources,则以 `maker_status_lite` 是否可调用作为兜底标准。
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
# macOS / Linux (bash / zsh)
|
|
126
|
-
|
|
127
|
-
## Step 0:友好提醒安装位置
|
|
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
|
-
```
|
|
156
|
-
|
|
157
|
-
如果发现项目级配置,只做友好提醒,不要中断更新流程。可以告诉用户:更新缓存可以继续;后续可让当前 AI 客户端把 MCP 从 project/local scope 迁移到 user/global scope。
|
|
158
|
-
|
|
159
|
-
## Step 1:对比远端和本地版本
|
|
160
|
-
|
|
161
|
-
```bash
|
|
162
|
-
npm view @taptap/instant-games-open-mcp version
|
|
163
|
-
NPX_DIR="$(npm config get cache)/_npx"
|
|
164
|
-
for d in "$NPX_DIR"/*/; do
|
|
165
|
-
p="$d/node_modules/@taptap/instant-games-open-mcp/package.json"
|
|
166
|
-
[ -f "$p" ] && echo "$(basename $d) -> $(jq -r .version $p)"
|
|
167
|
-
done
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
若版本相同,可以结束更新缓存流程。
|
|
171
|
-
|
|
172
|
-
## Step 2:清理缓存
|
|
173
|
-
|
|
174
|
-
```bash
|
|
175
|
-
NPX_DIR="$(npm config get cache)/_npx"
|
|
176
|
-
for d in "$NPX_DIR"/*/; do
|
|
177
|
-
[ -d "$d/node_modules/@taptap/instant-games-open-mcp" ] && rm -rf "$d"
|
|
178
|
-
done
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## Step 3:预热下载
|
|
182
|
-
|
|
183
|
-
预热正式 npm 包,并验证 `taptap-maker` binary 可以启动。
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
npx -y -p @taptap/instant-games-open-mcp taptap-maker help \
|
|
187
|
-
> /tmp/taptap-mcp-warmup.log 2>&1
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
## Step 4:验证
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
NPX_DIR="$(npm config get cache)/_npx"
|
|
194
|
-
for d in "$NPX_DIR"/*/; do
|
|
195
|
-
p="$d/node_modules/@taptap/instant-games-open-mcp/package.json"
|
|
196
|
-
[ -f "$p" ] && echo "$(basename $d) -> $(jq -r .version $p)"
|
|
197
|
-
done
|
|
198
|
-
claude mcp list 2>&1 | grep -E "taptap|Warning"
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
## Step 5:提示用户重启客户端
|
|
202
|
-
|
|
203
|
-
更新完成后提醒用户重启 MCP 客户端,或新开 Claude Code / Codex / Cursor 窗口。当前会话通常不会热加载新 MCP;重启后以能读取 `maker://status` 作为首选生效标准;如果客户端不支持 MCP Resources,则以 `maker_status_lite` 是否可调用作为兜底标准。
|