Skip to content

Commit c35e86d

Browse files
authored
Merge pull request #258 from TencentCloudBase/feature/wechat-devtools-support
feat(ide): 🎉 add WeChat Developer Tools support
2 parents 5d27d1a + 8a100ca commit c35e86d

6 files changed

Lines changed: 73 additions & 0 deletions

File tree

doc/components/IDEIconGrid.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ interface IDE {
1212
}
1313

1414
const IDES: IDE[] = [
15+
{
16+
id: 'wechat-devtools',
17+
name: '微信开发者工具',
18+
platform: '微信开发者工具',
19+
iconUrl: 'https://7463-tcb-advanced-a656fc-1257967285.tcb.qcloud.la/assets/wechat-devtools-logo.png?v=2',
20+
docUrl: '/ai/cloudbase-ai-toolkit/ide-setup/wechat-devtools',
21+
},
1522
{
1623
id: 'cursor',
1724
name: 'Cursor',

doc/components/IDESelector.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
background: none !important;
6363
box-shadow: none !important;
6464
cursor: default !important;
65+
mix-blend-mode: normal;
6566
}
6667

6768
.triggerText {
@@ -192,6 +193,7 @@
192193
background: none !important;
193194
box-shadow: none !important;
194195
cursor: default !important;
196+
mix-blend-mode: normal;
195197
}
196198

197199
.itemName {

doc/components/IDESelector.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ interface IDE {
2525
}
2626

2727
const IDES: IDE[] = [
28+
{
29+
id: 'wechat-devtools',
30+
name: '微信开发者工具',
31+
platform: '微信开发者工具',
32+
configPath: 'CodeBuddy MCP 市场',
33+
iconUrl: 'https://7463-tcb-advanced-a656fc-1257967285.tcb.qcloud.la/assets/wechat-devtools-logo.png?v=2',
34+
docUrl: 'https://www.codebuddy.ai/docs/zh/ide/Config%20MCP',
35+
supportsProjectMCP: false,
36+
useCommandInsteadOfConfig: true,
37+
installCommandDocs: '**步骤 1:安装 CodeBuddy 扩展**\n\n1. 在微信开发者工具中,点击顶部菜单栏的「扩展」\n2. 在扩展市场中搜索「CodeBuddy」\n3. 安装「腾讯云代码助手 CodeBuddy」扩展\n\n**步骤 2:安装 CloudBase AI ToolKit**\n\n1. 安装完成后,在工具栏找到 CodeBuddy 图标\n2. 点击右上角的 CodeBuddy 设置图标\n3. 在 MCP 市场中搜索并安装「CloudBase AI ToolKit」\n\n安装完成后即可在 CodeBuddy 中使用 CloudBase AI 功能。',
38+
verificationPrompt: '检查 CloudBase MCP 工具是否可用, 下载 CloudBase AI 开发规则到当前项目',
39+
configExample: '',
40+
},
2841
{
2942
id: 'cursor',
3043
name: 'Cursor',

doc/ide-setup/wechat-devtools.mdx

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import IDESelector from '../components/IDESelector';
2+
import RelatedResources from '../components/RelatedResources';
3+
4+
# 微信开发者工具配置指南
5+
6+
配置后,你可以在微信开发者工具中的 CodeBuddy 扩展里直接操作 CloudBase 服务。
7+
8+
**例如:**
9+
10+
- "创建用户表" - AI 自动创建数据库集合
11+
- "部署这个函数" - AI 自动上传并配置云函数
12+
- "部署前端到 CDN" - AI 自动上传文件并配置托管
13+
14+
无需切换到云控制台,所有操作都可以在 CodeBuddy 中用自然语言完成。
15+
16+
## 前置条件
17+
18+
在开始配置之前,请确保满足以下条件:
19+
20+
<details>
21+
<summary><strong>已准备好Node.js 环境和云开发环境</strong></summary>
22+
23+
**Node.js 环境:** 确保已安装 Node.js v18.15.0 或更高版本:
24+
25+
```bash
26+
node --version
27+
```
28+
29+
如果未安装,请从 [Node.js 官网](https://nodejs.org/en/download) 下载安装。
30+
31+
**云开发环境:** 请参考文档 [开通云开发环境](https://docs.cloudbase.net/quick-start/create-env)。新用户可以免费开通体验。
32+
33+
</details>
34+
35+
---
36+
37+
<IDESelector defaultIDE="wechat-devtools" showInstallButton={false} />
38+
39+
## 常见问题
40+
41+
**Q: MCP 连接失败?**
42+
A: 检查 CodeBuddy 扩展是否正确安装,重启微信开发者工具,确认网络连接正常。
43+
44+
**Q: 工具数量显示为 0?**
45+
A: 请参考[常见问题](../faq#mcp-显示工具数量为-0-怎么办)
46+
47+
更多问题请查看:[完整 FAQ](../faq)
48+
49+
<RelatedResources ideName="CodeBuddy" ideDocUrl="https://www.codebuddy.ai/docs/zh/ide/Config%20MCP" />
50+

doc/sidebar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"collapsible": true,
2929
"collapsed": true,
3030
"items": [
31+
"ai/cloudbase-ai-toolkit/ide-setup/wechat-devtools",
3132
"ai/cloudbase-ai-toolkit/ide-setup/cursor",
3233
"ai/cloudbase-ai-toolkit/ide-setup/codebuddy",
3334
"ai/cloudbase-ai-toolkit/ide-setup/codebuddy-code",
51 KB
Loading

0 commit comments

Comments
 (0)