@@ -51,15 +51,19 @@ graph TD
5151
5252### 1. 使用模板创建项目
5353
54- 选择适合你的项目模板快速开始:
54+ 建议选择适合你的项目模板快速开始:
55+
56+
57+ - [ React Web应用] ( https://static.cloudbase.net/cloudbase-examples/web-cloudbase-react-template.zip )
5558
5659### 2. 配置你的 AI IDE
5760
5861<details >
5962<summary ><strong >🔧 Cursor 配置</strong ></summary >
6063
6164#### 步骤1:配置 MCP
62- 在 Cursor 设置中添加 MCP 配置:
65+
66+ 1 . 请修改项目中的 ` .cursor/mcp.json ` ,填写你的云开发环境 ID
6367
6468``` json
6569{
@@ -68,16 +72,19 @@ graph TD
6872 "command" : " npx" ,
6973 "args" : [" @cloudbase/cloudbase-mcp" ],
7074 "env" : {
71- "TENCENTCLOUD_SECRETID" : " 你的腾讯云SecretId" ,
72- "TENCENTCLOUD_SECRETKEY" : " 你的腾讯云SecretKey" ,
7375 "CLOUDBASE_ENV_ID" : " 你的云开发环境ID"
7476 }
7577 }
7678 }
7779}
7880```
7981
82+ 2 . 启用云开发 MCP Server
83+
84+ 点击 Cursor 客户端右上角的 ⚙️ 图标,点击进入之后,选择“MCP”,在 MCP Server 页面,找到 cloudbase 右边的开关按钮,点击启用
85+
8086#### 步骤2:添加 AI 规则
87+
8188模板中已包含 ` .cursor/rules/ ` 目录,AI 会自动识别云开发最佳实践。
8289
8390</details >
@@ -86,7 +93,8 @@ graph TD
8693<summary ><strong >🌊 WindSurf 配置</strong ></summary >
8794
8895#### 步骤1:配置 MCP
89- 在 WindSurf 设置中添加:
96+
97+ 点击 windsurf 的 Plugins icon,点击“View raw config”,在其中加入 clodubase-mcp,同时设置环境 id
9098
9199``` json
92100{
@@ -95,8 +103,6 @@ graph TD
95103 "command" : " npx" ,
96104 "args" : [" @cloudbase/cloudbase-mcp" ],
97105 "env" : {
98- "TENCENTCLOUD_SECRETID" : " 你的腾讯云SecretId" ,
99- "TENCENTCLOUD_SECRETKEY" : " 你的腾讯云SecretKey" ,
100106 "CLOUDBASE_ENV_ID" : " 你的云开发环境ID"
101107 }
102108 }
@@ -105,6 +111,7 @@ graph TD
105111```
106112
107113#### 步骤2:AI 规则配置
114+
108115模板中的 ` .windsurf/ ` 目录包含专为 WindSurf 优化的配置。
109116
110117</details >
@@ -149,9 +156,8 @@ CodeBuddy 需要手动添加规则文件:
149156<summary ><strong >🐙 GitHub Copilot 配置</strong ></summary >
150157
151158#### GitHub Copilot Chat 配置
152- 模板中的 ` .github/ ` 目录包含 Copilot 优化配置。
153159
154- > 注意:GitHub Copilot 目前不支持 MCP,部分自动部署功能需要手动执行 。
160+ 模板中的 ` .github/ ` 目录包含 Copilot 优化配置 。
155161
156162</details >
157163
@@ -166,8 +172,6 @@ CodeBuddy 需要手动添加规则文件:
166172 "command" : " npx" ,
167173 "args" : [" @cloudbase/cloudbase-mcp" ],
168174 "env" : {
169- "TENCENTCLOUD_SECRETID" : " 你的腾讯云SecretId" ,
170- "TENCENTCLOUD_SECRETKEY" : " 你的腾讯云SecretKey" ,
171175 "CLOUDBASE_ENV_ID" : " 你的云开发环境ID"
172176 }
173177 }
0 commit comments