Tooluck logoTooluck
SKILL.md

codebuddy-ide-mcp-upgrade

Agent skill fromTencentCloudBase/CloudBase-AI-Toolkit

升级 CodeBuddy IDE(genie 扩展)内置的 CloudBase MCP,以及 MCP 发版时同步 IDE 侧白名单。当用户提到「更新 IDE 里的 MCP」「内置 MCP 版本太老」「IDE 集成的 CloudBase 功能不足」「改工具白名单 toolWhiteList」「把新 bundle 打进 CodeBuddy」「白名单漂移」「MCP 发版要同步什么」时使用。覆盖:解包定位内置 bundle 与内嵌配置、重新构建 mcp bundle、生成新的工具白名单与系统提示词、安全注入 IDE 并备份、用 MCP 协议验证工具清单、人工端到端验收、一键回滚。

How to install codebuddy-ide-mcp-upgrade

install codebuddy-ide-mcp-upgrade
# install the CloudBase-AI-Toolkit pack with the skills CLI
npx skills add TencentCloudBase/CloudBase-AI-Toolkit

# or add only this skill to Claude Code: copy the folder

skills/codebuddy-ide-mcp-upgrade/

# into

~/.claude/skills/codebuddy-ide-mcp-upgrade/ (all projects)

.claude/skills/codebuddy-ide-mcp-upgrade/ (one project)

skills/codebuddy-ide-mcp-upgrade/SKILL.md

MITFull file
1# codebuddy-ide-mcp-upgrade
2
3## When to use
4
5- 需要把 CloudBase MCP 新版本推进 CodeBuddy IDE 的内置集成
6- 线上反馈「IDE 里集成的 CloudBase 功能不足」(大概率是白名单过期,不是 MCP 能力不够)
7- 需要修改 IDE 内置的 `toolWhiteList` / `systemPrompt` / `attatchPrompt`
8- 需要定位「IDE 里的 MCP 到底装的哪个版本、能用哪些工具」
9
10## 集成结构(先读,别猜)
11
12CodeBuddy IDE 的内置 CloudBase MCP 由 **genie 扩展**承载,改一处不生效,**必须同时改两个文件**:
13
14| 文件 | 内容 | 等价来源 |
15| --- | --- | --- |
16| `Contents/Resources/app/extensions/genie/integration-mcp/tcb/index.cjs` | MCP Server bundle | 仓库 `mcp/dist/cli.cjs` 改名 |
17| `Contents/Resources/app/extensions/genie/out/extension/index.js` | 内嵌的 tcb 集成配置(webpack module,`ir.exports=JSON.parse('{...}')`) | 无仓库对版,需就地解包 |
18
19默认 IDE 路径:`/Applications/CodeBuddy CN.app`。同目录还有 `anydev`、`eop`、`lighthouse` 三个集成,别改错。
20
21加载与启动契约:
22
23```js
24// TcbIntegration
25mcpServer: {
26 path: path.join("integration-mcp", "tcb", "index.cjs"),
27 envMapper: (r) => ({ TENCENTCLOUD_SECRETID: r.tmp_secret_id,
28 TENCENTCLOUD_SECRETKEY: r.tmp_secret_key,
29 TENCENTCLOUD_SESSIONTOKEN: r.token }),
30 toolWhiteList: config.toolWhiteList,
31}
32// StdioClientTransport
33{ command: process.execPath, args: [mcpPath],
34 env: { ...envMapper(), INTEGRATION_IDE: "CodeBuddy",
35 ELECTRON_RUN_AS_NODE: "1", WORKSPACE_FOLDER_PATHS } }
36```
37
38**不传任何命令行参数**(`--cloud-mode` / `--integration-ide` 都没用),凭据全靠环境变量,MCP 侧 `mcp/src/auth.ts` 直接读 `TENCENTCLOUD_SECRETID/SECRETKEY`。
39
40## Steps
41
42### 1. 解包拿到线上基线(第一步必做)
43…

Excerpt shown under the repository's MIT license.

More skills in CloudBase-AI-Toolkit

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates