2222[ ![ GitHub last commit] ( https://img.shields.io/github/last-commit/TencentCloudBase/CloudBase-AI-ToolKit )] ( https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/commits )
2323[ ![ GitHub contributors] ( https://img.shields.io/github/contributors/TencentCloudBase/CloudBase-AI-ToolKit )] ( https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/graphs/contributors )
2424
25+
26+ [ ![ CNB 镜像] ( https://img.shields.io/badge/CNB-CloudBase--AI--ToolKit-blue?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjM0I4MkY2Ii8+PHBhdGggZD0iTTUgM0g3VjVINSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiLz48cGF0aCBkPSJNNSA3SDdWOUg1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNSIvPjwvc3ZnPg== )] ( https://cnb.cool/tencent/cloud/cloudbase/CloudBase-AI-ToolKit )
27+
2528当你在** Cursor/ VSCode GitHub Copilot/WinSurf/CodeBuddy** 等AI编程工具里写代码时,它能自动帮你生成可直接部署的前后端应用+小程序,并一键发布到腾讯云开发 CloudBase。
2629
2730<a href =" https://www.producthunt.com/posts/cloudbase-ai-tookit?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-cloudbase- ; ai- ; tookit " target =" _blank " ><img src =" https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=971451&theme=light&t=1748519563832 " alt =" CloudBase  ; AI  ; Tookit - Prompt  ; to  ; Production: ;  ; Full- ; stack, ;  ; DB  ;& ;  ; functions—zero  ; setup. ; | Product Hunt " style =" width : 250px ; height : 54px ;" width =" 250 " height =" 54 " /></a >
2831
32+ [ ![ Install MCP Server] ( https://cursor.com/deeplink/mcp-install-dark.svg )] ( https://cursor.com/install-mcp?name=CloudBase&config=eyJjb21tYW5kIjoibnB4IEBjbG91ZGJhc2UvY2xvdWRiYXNlLW1jcEBsYXRlc3QiLCJlbnYiOnsiQ0xPVURCQVNFX0VOVl9JRCI6IllPVVJfRU5WX0lEIn0sImRpc2FibGVkIjpmYWxzZX0%3D )
33+
2934
3035
3136### 🚀 三大核心能力
@@ -51,12 +56,13 @@ https://github.com/user-attachments/assets/2b402fa6-c5c4-495a-b85b-f5d4a25daa4a
5156| ** 📱 全栈应用支持** | Web + 小程序 + 数据库 + 后端一体化 | 支持小程序/web 等多种应用形式,提供后端托管和数据库 |
5257| ** 🔧 智能修复** | AI 自动查看日志并修复问题 | 降低运维成本 |
5358| ** ⚡ 极速体验** | 国内 CDN 加速 | 比海外平台访问速度更快 |
59+ | ** 📚 智能知识库检索** | 内置支持云开发、微信小程序等专业知识库的智能向量检索 |
5460
5561
5662## 🚀 快速开始
5763
5864
59- ### 0.前置条件
65+ ### 0. 前置条件
6066
6167#### 安装 AI 开发工具
6268例如 [ Cursor] ( https://www.cursor.com/ ) | [ WindSurf] ( https://windsurf.com/editor ) | [ CodeBuddy] ( https://copilot.tencent.com/ ) 等
@@ -66,29 +72,48 @@ https://github.com/user-attachments/assets/2b402fa6-c5c4-495a-b85b-f5d4a25daa4a
66722 . 在控制台「概览」页面右侧获取 ** 环境ID**
6773 (后续部署需要此 ID)
6874
69- ### 1. 使用模板创建项目
75+ ### 1. 快速初始化或增强你的项目
76+
77+ 我们为你准备了内置云开发最佳实践和 AI IDE 规则的项目模板,推荐如下两种方式:
78+
79+ #### 🚀 新项目推荐
80+
81+ 选择适合你的模板,一键初始化:
82+
83+ - ** React Web 应用 + 云开发模板**
84+ [ 下载代码包] ( https://static.cloudbase.net/cloudbase-examples/web-cloudbase-react-template.zip?v=2025053001 ) | [ 开源代码地址] ( https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/web/cloudbase-react-template )
85+
86+ - ** 微信小程序 + 云开发模板**
87+ [ 下载代码包] ( https://static.cloudbase.net/cloudbase-examples/miniprogram-cloudbase-miniprogram-template.zip?v=2025053001 ) | [ 开源代码地址] ( https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/miniprogram/cloudbase-miniprogram-template )
88+
89+ - ** 通用云开发模板**
90+ [ 下载代码包] ( https://static.cloudbase.net/cloudbase-examples/web-cloudbase-project.zip ) | [ 开源代码地址] ( https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/web/cloudbase-project )
7091
71- 以下模板已经内置了云开发面向 AI IDE 的规则配置
92+ #### 🛠️ 已有项目增强
7293
73- 建议选择适合你的项目模板快速开始:
94+ 如果你已经有自己的项目,只需在配置好 MCP 后,让 AI 调用 ` downloadTemplate ` 工具,选择 ` rules ` 模板,即可一键下载并补全 AI 编辑器规则配置到当前项目目录,无需手动操作。
7495
75- - React Web应用+云开发模板:[ 下载代码包] ( https://static.cloudbase.net/cloudbase-examples/web-cloudbase-react-template.zip?v=2025053001 ) | [ 开源代码地址] ( https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/web/cloudbase-react-template )
76- - 小程序+云开发模板:[ 下载代码包] ( https://static.cloudbase.net/cloudbase-examples/miniprogram-cloudbase-miniprogram-template.zip?v=2025053001 ) | [ 开源代码地址] ( https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/miniprogram/cloudbase-miniprogram-template )
7796
7897### 2. 配置你的 AI IDE
7998
99+ > 💡 ** 使用提示** :如果你在 Cursor 等工具中开启了自动执行(auto-run)模式,建议在"Command denylist"中添加敏感命令,避免自动运行如删除数据等敏感的操作
100+ >
101+ > 默认模式下需要手动确认执行,较为安全。
102+
80103以下工具均支持 CloudBase AI ToolKit,可根据你的开发环境选择合适的工具:
81104
82105| 工具 | 支持平台 |
83106| ------| ----------|
84107| [ Cursor] ( https://cursor.com/ ) | 独立 IDE|
85108| [ WindSurf] ( https://windsurf.com/editor ) | 独立 IDE,VSCode、JetBrains 插件 |
86- | [ CodeBuddy] ( https://copilot.tencent.com/ ) | VS Code, JetBrains、微信开发者工具插件 |
87- | [ CLINE] ( https://cline.bot / ) | VS Code 插件 |
109+ | [ CodeBuddy] ( https://copilot.tencent.com/ ) | VS Code、 JetBrains、微信开发者工具插件 |
110+ | [ CLINE] ( https://cline.so / ) | VS Code 插件 |
88111| [ GitHub Copilot] ( https://github.com/features/copilot ) | VS Code 插件 |
89112| [ Trae] ( https://www.trae.ai/ ) | 独立 IDE |
90- | [ 通义灵码] ( https://tongyi.aliyun.com/lingma ) | 独立 IDE,VS Code, JetBrains插件 |
113+ | [ 通义灵码] ( https://tongyi.aliyun.com/lingma ) | 独立 IDE,VS Code、 JetBrains插件 |
91114| [ RooCode] ( https://roocode.com/ ) | VS Code插件 |
115+ | [ 文心快码] ( https://comate.baidu.com/ ) | VS Code、JetBrains插件|
116+
92117
93118选择工具后,请按照下方对应的配置说明进行设置。每个工具都需要配置云开发环境 ID 才能使用 MCP 功能。如果你还没有云开发环境,请先[ 开通云开发环境] ( #0前置条件 ) 。
94119
@@ -102,6 +127,10 @@ https://github.com/user-attachments/assets/2b402fa6-c5c4-495a-b85b-f5d4a25daa4a
102127
103128#### 步骤2:配置 MCP
104129
130+ 模板中已经包含 mcp 配置,如果不是从模板开始,可以点击下方按钮安装到 Cursor 中
131+
132+ [ ![ Install MCP Server] ( https://cursor.com/deeplink/mcp-install-dark.svg )] ( https://cursor.com/install-mcp?name=CloudBase&config=eyJjb21tYW5kIjoibnB4IEBjbG91ZGJhc2UvY2xvdWRiYXNlLW1jcEBsYXRlc3QiLCJlbnYiOnsiQ0xPVURCQVNFX0VOVl9JRCI6IllPVVJfRU5WX0lEIn0sImRpc2FibGVkIjpmYWxzZX0%3D )
133+
1051341 . 请修改项目中的 ` .cursor/mcp.json ` ,填写你的云开发环境 ID
106135
107136``` json
@@ -399,6 +428,46 @@ https://github.com/user-attachments/assets/2b402fa6-c5c4-495a-b85b-f5d4a25daa4a
399428
400429</details >
401430
431+ <details >
432+ <summary ><strong >🤖 文心快码(Baidu Comate) 配置</strong ></summary >
433+
434+ #### 步骤1:自动应用 AI 规则
435+
436+ 模板中已包含 ` .comate/rules ` 目录,文心快码会自动识别云开发最佳实践
437+
438+ #### 步骤2:配置 MCP
439+
440+ 模板中已包含 ` .comate/mcp.json ` 目录,文心快码会自动识别项目中的 MCP
441+
442+ ** 配置云开发 MCP Server**
443+
444+ 在文心快码的 Zulu 模式中,选择 MCP 配置-设置,在打开的文件中修改 MCP 配置
445+
446+ 其中 CLOUDBASE_ENV_ID 填写你的云开发环境 ID
447+
448+ ``` json
449+ {
450+ "mcpServers" : {
451+ "cloudbase" : {
452+ "command" : " npx" ,
453+ "args" : [
454+ " @cloudbase/cloudbase-mcp@latest"
455+ ],
456+ "env" : {
457+ "CLOUDBASE_ENV_ID" : " 你的云开发环境ID"
458+ },
459+ "disabled" : false
460+ }
461+ }
462+ }
463+ ```
464+
465+ #### 步骤3:使用 AI 对话
466+
467+ 在对话窗口中切换到 Zulu 模式,然后使用 AI 进行代码生成和自动化操作
468+
469+ </details >
470+
402471### 3. 开始开发
403472
404473确认 AI 已经连接到云开发
@@ -505,11 +574,57 @@ AI 会自动:
505574
506575---
507576
577+ ## 🌟 为什么选择 CloudBase?
578+
579+ - ** ⚡ 极速部署** :国内节点,访问速度比海外更快
580+ - ** 🛡️ 稳定可靠** :330 万开发者选择的 Serverless 平台
581+ - ** 🔧 开发友好** :专为AI时代设计的全栈平台
582+ - ** 💰 成本优化** :Serverless 架构更具弹性,新用户开发期间可以免费体验
583+
584+
585+ ## 📋 常见问题 FAQ
586+
587+ 如有迁移、集成等常见疑问,请查阅 [ FAQ 常见问题] ( ./FAQ.md ) 。
588+
589+ ## 💬 技术交流群
590+
591+ 遇到问题或想要交流经验?加入我们的技术社区!
592+
593+ ### 🔥 微信交流群
594+
595+ <div align =" center " >
596+ <img src =" https://7463-tcb-advanced-a656fc-1257967285.tcb.qcloud.la/mcp/toolkit-qrcode.png " width =" 200 " alt =" 微信群二维码 " >
597+ <br >
598+ <i >扫码加入微信技术交流群</i >
599+ </div >
600+
601+ ** 群内你可以:**
602+ - 💡 分享你的 AI + 云开发项目
603+ - 🤝 技术交流和开发问题沟通
604+ - 📢 获取最新功能更新和最佳实践
605+ - 🎯 参与产品功能讨论和建议
606+
607+ ### 📱 其他交流方式
608+
609+ | 平台 | 链接 | 说明 |
610+ | ------| ------| ------|
611+ | ** 官方文档** | [ 📖 查看文档] ( https://docs.cloudbase.net/ ) | 完整的云开发文档 |
612+ | ** Issue 反馈** | [ 🐛 提交问题] ( https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/issues ) | Bug 反馈和功能请求 |
613+
614+ ### 🎉 社区活动
615+
616+ - ** 每周技术分享** :群内定期分享 AI + 云开发最佳实践
617+ - ** 项目展示** :展示你用 AI 开发的精彩项目
618+ - ** 问题答疑** :腾讯云开发团队成员在线答疑
619+ - ** 新功能预览** :第一时间体验最新功能
620+
621+
508622## 🛠️ 云开发 MCP 工具一览
509623
510624| 工具名称 | 功能简介 |
511625| ----------| ----------|
512626| logout | 登出当前云开发账户 |
627+ | downloadTemplate | 下载CloudBase项目模板(React、小程序、AI编辑器配置等) |
513628| listEnvs | 获取所有云开发环境信息 |
514629| getEnvAuthDomains | 获取云开发环境的合法域名列表 |
515630| createEnvDomain | 为云开发环境添加安全域名 |
@@ -566,45 +681,6 @@ graph TD
566681 J --> K[Web/小程序/API]
567682```
568683
569- ## 🌟 为什么选择 CloudBase?
570-
571- - ** ⚡ 极速部署** :国内节点,访问速度比海外更快
572- - ** 🛡️ 稳定可靠** :330 万开发者选择的 Serverless 平台
573- - ** 🔧 开发友好** :专为AI时代设计的全栈平台
574- - ** 💰 成本优化** :Serverless 架构更具弹性,新用户开发期间可以免费体验
575-
576- ## 💬 技术交流群
577-
578- 遇到问题或想要交流经验?加入我们的技术社区!
579-
580- ### 🔥 微信交流群
581-
582- <div align =" center " >
583- <img src =" https://7463-tcb-advanced-a656fc-1257967285.tcb.qcloud.la/mcp/toolkit-qrcode.png " width =" 200 " alt =" 微信群二维码 " >
584- <br >
585- <i >扫码加入微信技术交流群</i >
586- </div >
587-
588- ** 群内你可以:**
589- - 💡 分享你的 AI + 云开发项目
590- - 🤝 技术交流和开发问题沟通
591- - 📢 获取最新功能更新和最佳实践
592- - 🎯 参与产品功能讨论和建议
593-
594- ### 📱 其他交流方式
595-
596- | 平台 | 链接 | 说明 |
597- | ------| ------| ------|
598- | ** 官方文档** | [ 📖 查看文档] ( https://docs.cloudbase.net/ ) | 完整的云开发文档 |
599- | ** Issue 反馈** | [ 🐛 提交问题] ( https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/issues ) | Bug 反馈和功能请求 |
600-
601- ### 🎉 社区活动
602-
603- - ** 每周技术分享** :群内定期分享 AI + 云开发最佳实践
604- - ** 项目展示** :展示你用 AI 开发的精彩项目
605- - ** 问题答疑** :腾讯云开发团队成员在线答疑
606- - ** 新功能预览** :第一时间体验最新功能
607-
608684## 🤝 贡献指南
609685
610686欢迎提交 Issue 和 Pull Request!请查看我们的[ 贡献指南] ( CONTRIBUTING.md ) 了解如何参与项目开发。
@@ -617,6 +693,3 @@ graph TD
617693
618694⭐ 如果这个项目对你有帮助,请给我们一个 Star!
619695
620- ## 📋 [ 常见问题 FAQ] ( ./FAQ.md )
621-
622- 如有迁移、集成等常见疑问,请查阅 [ FAQ 常见问题] ( ./FAQ.md ) 。
0 commit comments