@cloudbase/cloudbase-mcp 1.1.0 → 1.2.0

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 CHANGED
@@ -1,23 +1,36 @@
1
1
  <div align="center">
2
2
 
3
- ![](https://tcb-advanced-a656fc-1257967285.tcloudbaseapp.com/mcp/mcp-github-banner.png)
4
3
 
5
- # 🌟 CloudBase AI-Deploy MCP
4
+ ![](https://7463-tcb-advanced-a656fc-1257967285.tcb.qcloud.la/mcp/cloudbase-ai-toolkit.png)
5
+
6
+
7
+ # 🌟 CloudBase AI Toolkit-云开发 AI 工具包
8
+
9
+
10
+ **通过AI提示词和MCP协议+云开发,让开发更智能、更高效**
6
11
 
7
- **——用AI说话,10分钟搞定全栈应用!**
8
12
 
9
13
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
10
14
  [![npm version](https://badge.fury.io/js/%40cloudbase%2Fcloudbase-mcp.svg)](https://badge.fury.io/js/%40cloudbase%2Fcloudbase-mcp)
11
- [![GitHub stars](https://img.shields.io/github/stars/TencentCloudBase/cloudbase-ai-deploy-mcp?style=social&v=1)](https://github.com/TencentCloudBase/cloudbase-ai-deploy-mcp/stargazers)
12
- [![GitHub forks](https://img.shields.io/github/forks/TencentCloudBase/cloudbase-ai-deploy-mcp?style=social&v=1)](https://github.com/TencentCloudBase/cloudbase-ai-deploy-mcp/network/members)
15
+ ![NPM Downloads](https://img.shields.io/npm/dw/%40cloudbase%2Fcloudbase-mcp)
16
+ [![GitHub stars](https://img.shields.io/github/stars/TencentCloudBase/CloudBase-AI-ToolKit?style=social&v=1)](https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/stargazers)
17
+ [![GitHub forks](https://img.shields.io/github/forks/TencentCloudBase/CloudBase-AI-ToolKit?style=social&v=1)](https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/network/members)
13
18
 
14
- [![GitHub issues](https://img.shields.io/github/issues/TencentCloudBase/cloudbase-ai-deploy-mcp)](https://github.com/TencentCloudBase/cloudbase-ai-deploy-mcp/issues)
15
- [![GitHub pull requests](https://img.shields.io/github/issues-pr/TencentCloudBase/cloudbase-ai-deploy-mcp)](https://github.com/TencentCloudBase/cloudbase-ai-deploy-mcp/pulls)
16
- [![GitHub last commit](https://img.shields.io/github/last-commit/TencentCloudBase/cloudbase-ai-deploy-mcp)](https://github.com/TencentCloudBase/cloudbase-ai-deploy-mcp/commits)
17
- [![GitHub contributors](https://img.shields.io/github/contributors/TencentCloudBase/cloudbase-ai-deploy-mcp)](https://github.com/TencentCloudBase/cloudbase-ai-deploy-mcp/graphs/contributors)
19
+ [![GitHub issues](https://img.shields.io/github/issues/TencentCloudBase/CloudBase-AI-ToolKit)](https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/issues)
20
+ [![GitHub pull requests](https://img.shields.io/github/issues-pr/TencentCloudBase/CloudBase-AI-ToolKit)](https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/pulls)
21
+ [![GitHub last commit](https://img.shields.io/github/last-commit/TencentCloudBase/CloudBase-AI-ToolKit)](https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/commits)
22
+ [![GitHub contributors](https://img.shields.io/github/contributors/TencentCloudBase/CloudBase-AI-ToolKit)](https://github.com/TencentCloudBase/CloudBase-AI-ToolKit/graphs/contributors)
18
23
 
19
24
  当你在**Cursor/ VSCode GitHub Copilot/WinSurf/CodeBuddy**等AI编程工具里写代码时,它能自动帮你生成可直接部署的前后端应用+小程序,并一键发布到腾讯云开发 CloudBase。
20
25
 
26
+
27
+ ### 🚀 三大核心能力
28
+
29
+ **🤖 AI智能开发**: AI自动生成代码和架构设计 <br>**☁️ 云开发集成**: 一键接入数据库、云函数、静态托管 <br>**⚡ 快速部署**: 几分钟内完成全栈应用上线
30
+ ### 🛠️ 支持平台
31
+
32
+ **Web应用**: 现代化前端 + 静态托管<br>**微信小程序**: 云开发小程序解决方案<br>**后端服务**: 云数据库 + 无服务器函数+云托管
33
+
21
34
  </div>
22
35
 
23
36
  ## ✨ 核心特性
@@ -30,31 +43,17 @@
30
43
  | **🔧 智能修复** | AI 自动查看日志并修复问题 | 降低运维成本 |
31
44
  | **⚡ 极速体验** | 国内 CDN 加速 | 比海外平台访问速度更快 |
32
45
 
33
- ## 🏗️ 架构原理
34
-
35
- ```mermaid
36
- graph TD
37
- A[开发者] --> B[AI IDE]
38
- B -->|使用| C[CloudBase AI 规则]
39
- C --> D[生成代码]
40
- B -->|调用| E[CloudBase MCP]
41
- E --> F{检测部署}
42
- F -->|成功| G[云开发平台]
43
- F -->|失败| H[返回日志]
44
- H --> I[AI 修复]
45
- I --> E
46
- G --> J[线上应用]
47
- J --> K[Web/小程序/API]
48
- ```
49
46
 
50
47
  ## 🚀 快速开始
51
48
 
52
49
  ### 1. 使用模板创建项目
53
50
 
54
- 建议选择适合你的项目模板快速开始:
51
+ 以下模板已经内置了云开发面向 AI IDE 的规则配置
55
52
 
53
+ 建议选择适合你的项目模板快速开始:
56
54
 
57
- - [React Web应用](https://static.cloudbase.net/cloudbase-examples/web-cloudbase-react-template.zip)
55
+ - React Web应用+云开发模板:[下载代码包](https://static.cloudbase.net/cloudbase-examples/web-cloudbase-react-template.zip) | [开源代码地址](https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/web/cloudbase-react-template)
56
+ - 小程序+云开发模板:[下载代码包](https://static.cloudbase.net/cloudbase-examples/miniprogram-cloudbase-miniprogram-template.zip) | [开源代码地址](https://github.com/TencentCloudBase/awesome-cloudbase-examples/tree/master/miniprogram/cloudbase-miniprogram-template)
58
57
 
59
58
  ### 2. 配置你的 AI IDE
60
59
 
@@ -202,7 +201,7 @@ AI 会自动:
202
201
 
203
202
  **开发过程:**
204
203
  1. 输入需求:"做个双人在线对战五子棋网站,支持联机对战"
205
- 2. AI 生成:Web 应用 + 云数据库 + WebSocket 云函数
204
+ 2. AI 生成:Web 应用 + 云数据库 + 实时数据推送
206
205
  3. 自动部署并获得访问链接
207
206
 
208
207
  👉 **体验地址:** [五子棋游戏](https://cloud1-5g39elugeec5ba0f-1300855855.tcloudbaseapp.com/gobang/#/)
@@ -268,19 +267,23 @@ AI 会自动:
268
267
 
269
268
  ---
270
269
 
271
- ### 🎨 更多案例预览
272
-
273
- <details>
274
- <summary>点击查看更多项目案例</summary>
275
270
 
276
- | 项目类型 | 预览 | 特性 |
277
- |---------|------|------|
278
- | **电商小程序** | 🛒 商品展示、购物车、支付 | 云数据库 + 云函数 + 支付接口 |
279
- | **内容管理系统** | 📝 文章发布、用户管理 | 权限控制 + 富文本编辑 |
280
- | **实时聊天应用** | 💬 群聊、私聊、表情包 | WebSocket + 云存储 |
281
- | **数据可视化** | 📊 图表展示、实时更新 | 云函数 + 第三方图表库 |
271
+ ## 🏗️ 架构原理
282
272
 
283
- </details>
273
+ ```mermaid
274
+ graph TD
275
+ A[开发者] --> B[AI IDE]
276
+ B -->|使用| C[CloudBase AI 规则]
277
+ C --> D[生成代码]
278
+ B -->|调用| E[CloudBase MCP]
279
+ E --> F{检测部署}
280
+ F -->|成功| G[云开发平台]
281
+ F -->|失败| H[返回日志]
282
+ H --> I[AI 修复]
283
+ I --> E
284
+ G --> J[线上应用]
285
+ J --> K[Web/小程序/API]
286
+ ```
284
287
 
285
288
  ## 🌟 为什么选择 CloudBase?
286
289
 
package/dist/auth.js CHANGED
@@ -15,3 +15,7 @@ export async function getLoginState() {
15
15
  return loginState;
16
16
  }
17
17
  }
18
+ export async function logout() {
19
+ const result = await auth.logout();
20
+ return result;
21
+ }
package/dist/tools/env.js CHANGED
@@ -1,6 +1,19 @@
1
1
  import { z } from "zod";
2
2
  import { getCloudBaseManager } from '../cloudbase-manager.js';
3
+ import { logout } from '../auth.js';
3
4
  export function registerEnvTools(server) {
5
+ // logout
6
+ server.tool("logout", "登出当前云开发账户", {}, async () => {
7
+ const result = await logout();
8
+ return {
9
+ content: [
10
+ {
11
+ type: "text",
12
+ text: JSON.stringify(result, null, 2)
13
+ }
14
+ ]
15
+ };
16
+ });
4
17
  // listEnvs
5
18
  server.tool("listEnvs", "获取所有云开发环境信息", {}, async () => {
6
19
  const cloudbase = await getCloudBaseManager();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cloudbase-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "腾讯云开发 MCP Server,支持静态托管/环境查询/",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -21,6 +21,7 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "@cloudbase/manager-node": "^4.2.10",
24
+ "@cloudbase/mcp": "^1.0.0-beta.25",
24
25
  "@cloudbase/toolbox": "^0.7.5",
25
26
  "@modelcontextprotocol/sdk": "^1.9.0",
26
27
  "zod": "^3.24.3"