@cloudbase/cloudbase-mcp 2.22.0-beta.0 → 2.23.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 +42 -6
- package/dist/cli.cjs +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -135596,7 +135596,7 @@ class TelemetryReporter {
|
|
|
135596
135596
|
const nodeVersion = process.version; // Node.js版本
|
|
135597
135597
|
const arch = os_1.default.arch(); // 系统架构
|
|
135598
135598
|
// 从构建时注入的版本号获取MCP版本信息
|
|
135599
|
-
const mcpVersion = process.env.npm_package_version || "2.
|
|
135599
|
+
const mcpVersion = process.env.npm_package_version || "2.23.0" || 0;
|
|
135600
135600
|
return {
|
|
135601
135601
|
userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
|
|
135602
135602
|
deviceId: this.deviceId,
|
|
@@ -195367,7 +195367,7 @@ ${envIdSection}
|
|
|
195367
195367
|
## 环境信息
|
|
195368
195368
|
- 操作系统: ${os_1.default.type()} ${os_1.default.release()}
|
|
195369
195369
|
- Node.js版本: ${process.version}
|
|
195370
|
-
- MCP 版本:${process.env.npm_package_version || "2.
|
|
195370
|
+
- MCP 版本:${process.env.npm_package_version || "2.23.0" || 0}
|
|
195371
195371
|
- 系统架构: ${os_1.default.arch()}
|
|
195372
195372
|
- 时间: ${new Date().toISOString()}
|
|
195373
195373
|
- 请求ID: ${requestId}
|
|
@@ -195448,7 +195448,7 @@ function createWrappedHandler(name, handler, server) {
|
|
|
195448
195448
|
requestId: (typeof error === 'object' && error && 'requestId' in error) ? error.requestId : '',
|
|
195449
195449
|
ide: server.ide || process.env.INTEGRATION_IDE || ''
|
|
195450
195450
|
});
|
|
195451
|
-
const mcpVersion = true ? "2.
|
|
195451
|
+
const mcpVersion = true ? "2.23.0" : 0;
|
|
195452
195452
|
const requestIdSuffix = requestId ? `\n🆔 RequestId: ${requestId}` : '';
|
|
195453
195453
|
const enhancedErrorMessage = `${errorMessage}${requestIdSuffix}\n\n📦 CloudBase MCP v${mcpVersion}\n🔗 遇到问题?请复制以下链接到浏览器打开\n即可自动携带错误详情快速创建 GitHub Issue:\n${issueLink}`;
|
|
195454
195454
|
// 创建新的错误对象,保持原有的错误类型但更新消息
|
|
@@ -211460,7 +211460,7 @@ function registerSetupTools(server) {
|
|
|
211460
211460
|
server.registerTool("downloadTemplate", {
|
|
211461
211461
|
title: "下载项目模板",
|
|
211462
211462
|
description: `自动下载并部署CloudBase项目模板。
|
|
211463
|
-
**Note**: Call this tool when the user requests to create a new project using a CloudBase template.\n\n支持的模板:\n- react: React + CloudBase 全栈应用模板\n- vue: Vue + CloudBase 全栈应用模板\n- miniprogram: 微信小程序 + 云开发模板 \n- uniapp: UniApp + CloudBase 跨端应用模板\n- rules: 只包含AI编辑器配置文件(包含Cursor、WindSurf、CodeBuddy等所有主流编辑器配置),适合在已有项目中补充AI编辑器配置\n\n支持的IDE类型:\n- all: 下载所有IDE配置\n- cursor: Cursor AI编辑器\n- 其他IDE类型见下方列表\n\n注意:如果未传入 ide 参数且无法从环境变量检测到 IDE,将提示错误并要求传入 ide 参数\n- windsurf: WindSurf AI编辑器\n- codebuddy: CodeBuddy AI编辑器\n- claude-code: Claude Code AI编辑器\n- cline: Cline AI编辑器\n- gemini-cli: Gemini CLI\n- opencode: OpenCode AI编辑器\n- qwen-code: 通义灵码\n- baidu-comate: 百度Comate\n- openai-codex-cli: OpenAI Codex CLI\n- augment-code: Augment Code\n- github-copilot: GitHub Copilot\n- roocode: RooCode AI编辑器\n- tongyi-lingma: 通义灵码\n- trae: Trae AI编辑器\n- qoder: Qoder AI编辑器\n- antigravity: Google Antigravity AI编辑器\n- vscode: Visual Studio Code\n- kiro: Kiro AI编辑器\n- aider: Aider AI编辑器\n\n特别说明:\n- rules 模板会自动包含当前 mcp 版本号信息(版本号:${ true ? "2.
|
|
211463
|
+
**Note**: Call this tool when the user requests to create a new project using a CloudBase template.\n\n支持的模板:\n- react: React + CloudBase 全栈应用模板\n- vue: Vue + CloudBase 全栈应用模板\n- miniprogram: 微信小程序 + 云开发模板 \n- uniapp: UniApp + CloudBase 跨端应用模板\n- rules: 只包含AI编辑器配置文件(包含Cursor、WindSurf、CodeBuddy等所有主流编辑器配置),适合在已有项目中补充AI编辑器配置\n\n支持的IDE类型:\n- all: 下载所有IDE配置\n- cursor: Cursor AI编辑器\n- 其他IDE类型见下方列表\n\n注意:如果未传入 ide 参数且无法从环境变量检测到 IDE,将提示错误并要求传入 ide 参数\n- windsurf: WindSurf AI编辑器\n- codebuddy: CodeBuddy AI编辑器\n- claude-code: Claude Code AI编辑器\n- cline: Cline AI编辑器\n- gemini-cli: Gemini CLI\n- opencode: OpenCode AI编辑器\n- qwen-code: 通义灵码\n- baidu-comate: 百度Comate\n- openai-codex-cli: OpenAI Codex CLI\n- augment-code: Augment Code\n- github-copilot: GitHub Copilot\n- roocode: RooCode AI编辑器\n- tongyi-lingma: 通义灵码\n- trae: Trae AI编辑器\n- qoder: Qoder AI编辑器\n- antigravity: Google Antigravity AI编辑器\n- vscode: Visual Studio Code\n- kiro: Kiro AI编辑器\n- aider: Aider AI编辑器\n\n特别说明:\n- rules 模板会自动包含当前 mcp 版本号信息(版本号:${ true ? "2.23.0" : 0}),便于后续维护和版本追踪\n- 下载 rules 模板时,如果项目中已存在 README.md 文件,系统会自动保护该文件不被覆盖(除非设置 overwrite=true)`,
|
|
211464
211464
|
inputSchema: {
|
|
211465
211465
|
template: zod_1.z
|
|
211466
211466
|
.enum(["react", "vue", "miniprogram", "uniapp", "rules"])
|
package/dist/index.js
CHANGED
|
@@ -1827,7 +1827,7 @@ ${envIdSection}
|
|
|
1827
1827
|
## 环境信息
|
|
1828
1828
|
- 操作系统: ${os_1.default.type()} ${os_1.default.release()}
|
|
1829
1829
|
- Node.js版本: ${process.version}
|
|
1830
|
-
- MCP 版本:${process.env.npm_package_version || "2.
|
|
1830
|
+
- MCP 版本:${process.env.npm_package_version || "2.23.0" || 0}
|
|
1831
1831
|
- 系统架构: ${os_1.default.arch()}
|
|
1832
1832
|
- 时间: ${new Date().toISOString()}
|
|
1833
1833
|
- 请求ID: ${requestId}
|
|
@@ -1908,7 +1908,7 @@ function createWrappedHandler(name, handler, server) {
|
|
|
1908
1908
|
requestId: (typeof error === 'object' && error && 'requestId' in error) ? error.requestId : '',
|
|
1909
1909
|
ide: server.ide || process.env.INTEGRATION_IDE || ''
|
|
1910
1910
|
});
|
|
1911
|
-
const mcpVersion = true ? "2.
|
|
1911
|
+
const mcpVersion = true ? "2.23.0" : 0;
|
|
1912
1912
|
const requestIdSuffix = requestId ? `\n🆔 RequestId: ${requestId}` : '';
|
|
1913
1913
|
const enhancedErrorMessage = `${errorMessage}${requestIdSuffix}\n\n📦 CloudBase MCP v${mcpVersion}\n🔗 遇到问题?请复制以下链接到浏览器打开\n即可自动携带错误详情快速创建 GitHub Issue:\n${issueLink}`;
|
|
1914
1914
|
// 创建新的错误对象,保持原有的错误类型但更新消息
|
|
@@ -9484,7 +9484,7 @@ class TelemetryReporter {
|
|
|
9484
9484
|
const nodeVersion = process.version; // Node.js版本
|
|
9485
9485
|
const arch = os_1.default.arch(); // 系统架构
|
|
9486
9486
|
// 从构建时注入的版本号获取MCP版本信息
|
|
9487
|
-
const mcpVersion = process.env.npm_package_version || "2.
|
|
9487
|
+
const mcpVersion = process.env.npm_package_version || "2.23.0" || 0;
|
|
9488
9488
|
return {
|
|
9489
9489
|
userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
|
|
9490
9490
|
deviceId: this.deviceId,
|
|
@@ -13346,7 +13346,7 @@ function registerSetupTools(server) {
|
|
|
13346
13346
|
server.registerTool("downloadTemplate", {
|
|
13347
13347
|
title: "下载项目模板",
|
|
13348
13348
|
description: `自动下载并部署CloudBase项目模板。
|
|
13349
|
-
**Note**: Call this tool when the user requests to create a new project using a CloudBase template.\n\n支持的模板:\n- react: React + CloudBase 全栈应用模板\n- vue: Vue + CloudBase 全栈应用模板\n- miniprogram: 微信小程序 + 云开发模板 \n- uniapp: UniApp + CloudBase 跨端应用模板\n- rules: 只包含AI编辑器配置文件(包含Cursor、WindSurf、CodeBuddy等所有主流编辑器配置),适合在已有项目中补充AI编辑器配置\n\n支持的IDE类型:\n- all: 下载所有IDE配置\n- cursor: Cursor AI编辑器\n- 其他IDE类型见下方列表\n\n注意:如果未传入 ide 参数且无法从环境变量检测到 IDE,将提示错误并要求传入 ide 参数\n- windsurf: WindSurf AI编辑器\n- codebuddy: CodeBuddy AI编辑器\n- claude-code: Claude Code AI编辑器\n- cline: Cline AI编辑器\n- gemini-cli: Gemini CLI\n- opencode: OpenCode AI编辑器\n- qwen-code: 通义灵码\n- baidu-comate: 百度Comate\n- openai-codex-cli: OpenAI Codex CLI\n- augment-code: Augment Code\n- github-copilot: GitHub Copilot\n- roocode: RooCode AI编辑器\n- tongyi-lingma: 通义灵码\n- trae: Trae AI编辑器\n- qoder: Qoder AI编辑器\n- antigravity: Google Antigravity AI编辑器\n- vscode: Visual Studio Code\n- kiro: Kiro AI编辑器\n- aider: Aider AI编辑器\n\n特别说明:\n- rules 模板会自动包含当前 mcp 版本号信息(版本号:${ true ? "2.
|
|
13349
|
+
**Note**: Call this tool when the user requests to create a new project using a CloudBase template.\n\n支持的模板:\n- react: React + CloudBase 全栈应用模板\n- vue: Vue + CloudBase 全栈应用模板\n- miniprogram: 微信小程序 + 云开发模板 \n- uniapp: UniApp + CloudBase 跨端应用模板\n- rules: 只包含AI编辑器配置文件(包含Cursor、WindSurf、CodeBuddy等所有主流编辑器配置),适合在已有项目中补充AI编辑器配置\n\n支持的IDE类型:\n- all: 下载所有IDE配置\n- cursor: Cursor AI编辑器\n- 其他IDE类型见下方列表\n\n注意:如果未传入 ide 参数且无法从环境变量检测到 IDE,将提示错误并要求传入 ide 参数\n- windsurf: WindSurf AI编辑器\n- codebuddy: CodeBuddy AI编辑器\n- claude-code: Claude Code AI编辑器\n- cline: Cline AI编辑器\n- gemini-cli: Gemini CLI\n- opencode: OpenCode AI编辑器\n- qwen-code: 通义灵码\n- baidu-comate: 百度Comate\n- openai-codex-cli: OpenAI Codex CLI\n- augment-code: Augment Code\n- github-copilot: GitHub Copilot\n- roocode: RooCode AI编辑器\n- tongyi-lingma: 通义灵码\n- trae: Trae AI编辑器\n- qoder: Qoder AI编辑器\n- antigravity: Google Antigravity AI编辑器\n- vscode: Visual Studio Code\n- kiro: Kiro AI编辑器\n- aider: Aider AI编辑器\n\n特别说明:\n- rules 模板会自动包含当前 mcp 版本号信息(版本号:${ true ? "2.23.0" : 0}),便于后续维护和版本追踪\n- 下载 rules 模板时,如果项目中已存在 README.md 文件,系统会自动保护该文件不被覆盖(除非设置 overwrite=true)`,
|
|
13350
13350
|
inputSchema: {
|
|
13351
13351
|
template: zod_1.z
|
|
13352
13352
|
.enum(["react", "vue", "miniprogram", "uniapp", "rules"])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cloudbase-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"packageManager": "pnpm@10.8.0",
|
|
5
5
|
"description": "腾讯云开发 MCP Server,通过AI提示词和MCP协议+云开发,让开发更智能、更高效,当你在Cursor/ VSCode GitHub Copilot/WinSurf/CodeBuddy/Augment Code/Claude Code等AI编程工具里写代码时,它能自动帮你生成可直接部署的前后端应用+小程序,并一键发布到腾讯云开发 CloudBase。",
|
|
6
6
|
"main": "./dist/index.cjs",
|