@cloudbase/cloudbase-mcp 2.6.5 → 2.7.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/dist/cli.cjs +1 -1
- package/dist/index.cjs +65 -34
- package/dist/index.d.ts +1 -0
- package/dist/index.js +67 -35
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -137019,7 +137019,7 @@ class TelemetryReporter {
|
|
|
137019
137019
|
const nodeVersion = process.version; // Node.js版本
|
|
137020
137020
|
const arch = os_1.default.arch(); // 系统架构
|
|
137021
137021
|
// 从构建时注入的版本号获取MCP版本信息
|
|
137022
|
-
const mcpVersion = process.env.npm_package_version || "2.
|
|
137022
|
+
const mcpVersion = process.env.npm_package_version || "2.7.0" || 0;
|
|
137023
137023
|
return {
|
|
137024
137024
|
userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
|
|
137025
137025
|
deviceId: this.deviceId,
|
|
@@ -203583,7 +203583,7 @@ ${envIdSection}
|
|
|
203583
203583
|
## 环境信息
|
|
203584
203584
|
- 操作系统: ${os_1.default.type()} ${os_1.default.release()}
|
|
203585
203585
|
- Node.js版本: ${process.version}
|
|
203586
|
-
- MCP 版本:${process.env.npm_package_version || "2.
|
|
203586
|
+
- MCP 版本:${process.env.npm_package_version || "2.7.0" || 0}
|
|
203587
203587
|
- 系统架构: ${os_1.default.arch()}
|
|
203588
203588
|
- 时间: ${new Date().toISOString()}
|
|
203589
203589
|
- 请求ID: ${requestId}
|
|
@@ -217899,6 +217899,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
217899
217899
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
217900
217900
|
};
|
|
217901
217901
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
217902
|
+
exports.RAW_IDE_FILE_MAPPINGS = void 0;
|
|
217902
217903
|
exports.registerSetupTools = registerSetupTools;
|
|
217903
217904
|
const adm_zip_1 = __importDefault(__webpack_require__(30283));
|
|
217904
217905
|
const fs = __importStar(__webpack_require__(29021));
|
|
@@ -217953,45 +217954,72 @@ const IDE_TYPES = [
|
|
|
217953
217954
|
"antigravity", // Google Antigravity AI编辑器
|
|
217954
217955
|
"vscode", // Visual Studio Code
|
|
217955
217956
|
"kiro", // Kiro AI编辑器
|
|
217957
|
+
"aider", // Aider AI编辑器
|
|
217956
217958
|
];
|
|
217957
217959
|
// IDE到文件的映射关系
|
|
217958
217960
|
// 注意:以 "/" 结尾的路径表示目录,会包含该目录下的所有文件
|
|
217959
|
-
|
|
217960
|
-
cursor: [
|
|
217961
|
-
|
|
217962
|
-
|
|
217961
|
+
exports.RAW_IDE_FILE_MAPPINGS = {
|
|
217962
|
+
cursor: [
|
|
217963
|
+
{ path: ".cursor/rules/" },
|
|
217964
|
+
{ path: ".cursor/mcp.json", isMcpConfig: true },
|
|
217965
|
+
],
|
|
217966
|
+
windsurf: [{ path: ".windsurf/rules/" }],
|
|
217967
|
+
codebuddy: [
|
|
217968
|
+
{ path: ".rules/cloudbase-rules.md" },
|
|
217969
|
+
{ path: "CODEBUDDY.md" },
|
|
217970
|
+
{ path: ".mcp.json", isMcpConfig: true },
|
|
217971
|
+
],
|
|
217963
217972
|
"claude-code": [
|
|
217964
|
-
"CLAUDE.md",
|
|
217965
|
-
".mcp.json",
|
|
217966
|
-
".claude/
|
|
217967
|
-
|
|
217968
|
-
|
|
217969
|
-
|
|
217973
|
+
{ path: "CLAUDE.md" },
|
|
217974
|
+
{ path: ".mcp.json", isMcpConfig: true },
|
|
217975
|
+
{ path: ".claude/" },
|
|
217976
|
+
],
|
|
217977
|
+
cline: [{ path: ".clinerules/" }],
|
|
217978
|
+
"gemini-cli": [
|
|
217979
|
+
{ path: ".gemini/GEMINI.md" },
|
|
217980
|
+
{ path: ".gemini/settings.json", isMcpConfig: true },
|
|
217981
|
+
],
|
|
217982
|
+
opencode: [{ path: ".opencode.json", isMcpConfig: true }],
|
|
217983
|
+
"qwen-code": [
|
|
217984
|
+
{ path: ".qwen/QWEN.md" },
|
|
217985
|
+
{ path: ".qwen/settings.json", isMcpConfig: true },
|
|
217970
217986
|
],
|
|
217971
|
-
cline: [".clinerules/"],
|
|
217972
|
-
"gemini-cli": [".gemini/GEMINI.md", ".gemini/settings.json"],
|
|
217973
|
-
opencode: [".opencode.json"],
|
|
217974
|
-
"qwen-code": [".qwen/QWEN.md", ".qwen/settings.json"],
|
|
217975
217987
|
"baidu-comate": [
|
|
217976
|
-
".comate/rules/cloudbase-rules.mdr",
|
|
217977
|
-
".comate/rules/cloudbaase-rules.mdr",
|
|
217978
|
-
".comate/mcp.json",
|
|
217988
|
+
{ path: ".comate/rules/cloudbase-rules.mdr" },
|
|
217989
|
+
{ path: ".comate/rules/cloudbaase-rules.mdr" },
|
|
217990
|
+
{ path: ".comate/mcp.json", isMcpConfig: true },
|
|
217991
|
+
],
|
|
217992
|
+
"openai-codex-cli": [
|
|
217993
|
+
{ path: ".codex/config.toml", isMcpConfig: true },
|
|
217994
|
+
{ path: "AGENTS.md" },
|
|
217995
|
+
],
|
|
217996
|
+
"augment-code": [{ path: ".augment-guidelines" }],
|
|
217997
|
+
"github-copilot": [{ path: ".github/copilot-instructions.md" }],
|
|
217998
|
+
roocode: [
|
|
217999
|
+
{ path: ".roo/rules/cloudbaase-rules.md" },
|
|
218000
|
+
{ path: ".roo/mcp.json", isMcpConfig: true },
|
|
218001
|
+
],
|
|
218002
|
+
"tongyi-lingma": [{ path: ".lingma/rules/cloudbaase-rules.md" }],
|
|
218003
|
+
trae: [{ path: ".trae/rules/" }],
|
|
218004
|
+
qoder: [{ path: ".qoder/rules/" }],
|
|
218005
|
+
antigravity: [{ path: ".agent/rules/" }],
|
|
218006
|
+
vscode: [
|
|
218007
|
+
{ path: ".vscode/mcp.json", isMcpConfig: true },
|
|
218008
|
+
{ path: ".vscode/settings.json" },
|
|
218009
|
+
],
|
|
218010
|
+
kiro: [
|
|
218011
|
+
{ path: ".kiro/settings/mcp.json", isMcpConfig: true },
|
|
218012
|
+
{ path: ".kiro/steering/" },
|
|
217979
218013
|
],
|
|
217980
|
-
|
|
217981
|
-
"augment-code": [".augment-guidelines"],
|
|
217982
|
-
"github-copilot": [".github/copilot-instructions.md"],
|
|
217983
|
-
roocode: [".roo/rules/cloudbaase-rules.md", ".roo/mcp.json"],
|
|
217984
|
-
"tongyi-lingma": [".lingma/rules/cloudbaase-rules.md"],
|
|
217985
|
-
trae: [".trae/rules/"],
|
|
217986
|
-
qoder: [".qoder/rules/"],
|
|
217987
|
-
antigravity: [".agent/rules/"],
|
|
217988
|
-
vscode: [".vscode/mcp.json", ".vscode/settings.json"],
|
|
217989
|
-
kiro: [".kiro/settings/mcp.json", ".kiro/steering/"],
|
|
218014
|
+
aider: [{ path: "mcp.json", isMcpConfig: true }],
|
|
217990
218015
|
};
|
|
218016
|
+
const IDE_FILE_MAPPINGS = structuredClone(exports.RAW_IDE_FILE_MAPPINGS);
|
|
217991
218017
|
// 所有IDE配置文件的完整列表 - 通过IDE_FILE_MAPPINGS计算得出
|
|
217992
|
-
const ALL_IDE_FILES = Array.from(new Set(Object.values(IDE_FILE_MAPPINGS)
|
|
218018
|
+
const ALL_IDE_FILES = Array.from(new Set(Object.values(IDE_FILE_MAPPINGS)
|
|
218019
|
+
.flat()
|
|
218020
|
+
.map((descriptor) => descriptor.path)));
|
|
217993
218021
|
// 为"all"选项添加映射
|
|
217994
|
-
IDE_FILE_MAPPINGS["all"] = ALL_IDE_FILES;
|
|
218022
|
+
IDE_FILE_MAPPINGS["all"] = ALL_IDE_FILES.map((path) => ({ path }));
|
|
217995
218023
|
// IDE描述映射
|
|
217996
218024
|
const IDE_DESCRIPTIONS = {
|
|
217997
218025
|
all: "所有IDE配置",
|
|
@@ -218014,6 +218042,7 @@ const IDE_DESCRIPTIONS = {
|
|
|
218014
218042
|
antigravity: "Google Antigravity AI编辑器",
|
|
218015
218043
|
vscode: "Visual Studio Code",
|
|
218016
218044
|
kiro: "Kiro AI编辑器",
|
|
218045
|
+
aider: "Aider AI编辑器",
|
|
218017
218046
|
};
|
|
218018
218047
|
// INTEGRATION_IDE 环境变量值到 IDE 类型的映射
|
|
218019
218048
|
const INTEGRATION_IDE_MAPPING = {
|
|
@@ -218232,7 +218261,7 @@ function filterFilesByIDE(files, ide) {
|
|
|
218232
218261
|
}
|
|
218233
218262
|
// 阶段2: 在检查清单范围内,检查是否属于当前 IDE
|
|
218234
218263
|
for (const ideFile of ideFiles) {
|
|
218235
|
-
if (matchesPath(file, ideFile)) {
|
|
218264
|
+
if (matchesPath(file, ideFile.path)) {
|
|
218236
218265
|
// 属于当前 IDE,保留
|
|
218237
218266
|
return true;
|
|
218238
218267
|
}
|
|
@@ -218266,7 +218295,7 @@ function registerSetupTools(server) {
|
|
|
218266
218295
|
title: "下载项目模板",
|
|
218267
218296
|
description: `自动下载并部署CloudBase项目模板。⚠️ **MANDATORY FOR NEW PROJECTS** ⚠️
|
|
218268
218297
|
|
|
218269
|
-
**CRITICAL**: This tool MUST be called FIRST when starting a new project.\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- 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\n特别说明:\n- rules 模板会自动包含当前 mcp 版本号信息(版本号:${ true ? "2.
|
|
218298
|
+
**CRITICAL**: This tool MUST be called FIRST when starting a new project.\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- 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.7.0" : 0}),便于后续维护和版本追踪\n- 下载 rules 模板时,如果项目中已存在 README.md 文件,系统会自动保护该文件不被覆盖(除非设置 overwrite=true)`,
|
|
218270
218299
|
inputSchema: {
|
|
218271
218300
|
template: zod_1.z
|
|
218272
218301
|
.enum(["react", "vue", "miniprogram", "uniapp", "rules"])
|
|
@@ -220686,7 +220715,7 @@ function tryStat(path) {
|
|
|
220686
220715
|
"use strict";
|
|
220687
220716
|
|
|
220688
220717
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
220689
|
-
exports.envManager = exports.createCloudBaseManagerWithOptions = exports.resetCloudBaseManagerCache = exports.getEnvId = exports.getCloudBaseManager = exports.shouldRegisterTool = exports.getCloudModeStatus = exports.enableCloudMode = exports.isCloudMode = exports.logout = exports.getLoginState = exports.warn = exports.error = exports.info = exports.reportToolCall = exports.reportToolkitLifecycle = exports.telemetryReporter = exports.StdioServerTransport = exports.getDefaultServer = exports.createCloudBaseMcpServer = void 0;
|
|
220718
|
+
exports.RAW_IDE_FILE_MAPPINGS = exports.envManager = exports.createCloudBaseManagerWithOptions = exports.resetCloudBaseManagerCache = exports.getEnvId = exports.getCloudBaseManager = exports.shouldRegisterTool = exports.getCloudModeStatus = exports.enableCloudMode = exports.isCloudMode = exports.logout = exports.getLoginState = exports.warn = exports.error = exports.info = exports.reportToolCall = exports.reportToolkitLifecycle = exports.telemetryReporter = exports.StdioServerTransport = exports.getDefaultServer = exports.createCloudBaseMcpServer = void 0;
|
|
220690
220719
|
exports.getInteractiveServerAsync = getInteractiveServerAsync;
|
|
220691
220720
|
// CloudBase MCP Server Library
|
|
220692
220721
|
var server_js_1 = __webpack_require__(31422);
|
|
@@ -220713,6 +220742,8 @@ Object.defineProperty(exports, "getEnvId", ({ enumerable: true, get: function ()
|
|
|
220713
220742
|
Object.defineProperty(exports, "resetCloudBaseManagerCache", ({ enumerable: true, get: function () { return cloudbase_manager_js_1.resetCloudBaseManagerCache; } }));
|
|
220714
220743
|
Object.defineProperty(exports, "createCloudBaseManagerWithOptions", ({ enumerable: true, get: function () { return cloudbase_manager_js_1.createCloudBaseManagerWithOptions; } }));
|
|
220715
220744
|
Object.defineProperty(exports, "envManager", ({ enumerable: true, get: function () { return cloudbase_manager_js_1.envManager; } }));
|
|
220745
|
+
var setup_js_1 = __webpack_require__(76556);
|
|
220746
|
+
Object.defineProperty(exports, "RAW_IDE_FILE_MAPPINGS", ({ enumerable: true, get: function () { return setup_js_1.RAW_IDE_FILE_MAPPINGS; } }));
|
|
220716
220747
|
/**
|
|
220717
220748
|
* Get interactive server instance (CommonJS compatible)
|
|
220718
220749
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type { UploadFileParams, ListFilesParams, DeleteFileParams, GetFileInfoPa
|
|
|
3
3
|
export { getLoginState, logout } from "./auth.js";
|
|
4
4
|
export { isCloudMode, enableCloudMode, getCloudModeStatus, shouldRegisterTool } from "./utils/cloud-mode.js";
|
|
5
5
|
export { getCloudBaseManager, getEnvId, resetCloudBaseManagerCache, createCloudBaseManagerWithOptions, envManager } from "./cloudbase-manager.js";
|
|
6
|
+
export { RAW_IDE_FILE_MAPPINGS } from "./tools/setup.js";
|
|
6
7
|
export type { InteractiveResult } from "./interactive-server.js";
|
|
7
8
|
/**
|
|
8
9
|
* Get interactive server instance (CommonJS compatible)
|
package/dist/index.js
CHANGED
|
@@ -517,7 +517,7 @@ ${envIdSection}
|
|
|
517
517
|
## 环境信息
|
|
518
518
|
- 操作系统: ${os_1.default.type()} ${os_1.default.release()}
|
|
519
519
|
- Node.js版本: ${process.version}
|
|
520
|
-
- MCP 版本:${process.env.npm_package_version || "2.
|
|
520
|
+
- MCP 版本:${process.env.npm_package_version || "2.7.0" || 0}
|
|
521
521
|
- 系统架构: ${os_1.default.arch()}
|
|
522
522
|
- 时间: ${new Date().toISOString()}
|
|
523
523
|
- 请求ID: ${requestId}
|
|
@@ -8647,7 +8647,7 @@ class TelemetryReporter {
|
|
|
8647
8647
|
const nodeVersion = process.version; // Node.js版本
|
|
8648
8648
|
const arch = os_1.default.arch(); // 系统架构
|
|
8649
8649
|
// 从构建时注入的版本号获取MCP版本信息
|
|
8650
|
-
const mcpVersion = process.env.npm_package_version || "2.
|
|
8650
|
+
const mcpVersion = process.env.npm_package_version || "2.7.0" || 0;
|
|
8651
8651
|
return {
|
|
8652
8652
|
userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
|
|
8653
8653
|
deviceId: this.deviceId,
|
|
@@ -9647,6 +9647,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9647
9647
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9648
9648
|
};
|
|
9649
9649
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9650
|
+
exports.RAW_IDE_FILE_MAPPINGS = void 0;
|
|
9650
9651
|
exports.registerSetupTools = registerSetupTools;
|
|
9651
9652
|
const adm_zip_1 = __importDefault(__webpack_require__(2872));
|
|
9652
9653
|
const fs = __importStar(__webpack_require__(4421));
|
|
@@ -9701,45 +9702,72 @@ const IDE_TYPES = [
|
|
|
9701
9702
|
"antigravity", // Google Antigravity AI编辑器
|
|
9702
9703
|
"vscode", // Visual Studio Code
|
|
9703
9704
|
"kiro", // Kiro AI编辑器
|
|
9705
|
+
"aider", // Aider AI编辑器
|
|
9704
9706
|
];
|
|
9705
9707
|
// IDE到文件的映射关系
|
|
9706
9708
|
// 注意:以 "/" 结尾的路径表示目录,会包含该目录下的所有文件
|
|
9707
|
-
|
|
9708
|
-
cursor: [
|
|
9709
|
-
|
|
9710
|
-
|
|
9709
|
+
exports.RAW_IDE_FILE_MAPPINGS = {
|
|
9710
|
+
cursor: [
|
|
9711
|
+
{ path: ".cursor/rules/" },
|
|
9712
|
+
{ path: ".cursor/mcp.json", isMcpConfig: true },
|
|
9713
|
+
],
|
|
9714
|
+
windsurf: [{ path: ".windsurf/rules/" }],
|
|
9715
|
+
codebuddy: [
|
|
9716
|
+
{ path: ".rules/cloudbase-rules.md" },
|
|
9717
|
+
{ path: "CODEBUDDY.md" },
|
|
9718
|
+
{ path: ".mcp.json", isMcpConfig: true },
|
|
9719
|
+
],
|
|
9711
9720
|
"claude-code": [
|
|
9712
|
-
"CLAUDE.md",
|
|
9713
|
-
".mcp.json",
|
|
9714
|
-
".claude/
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9721
|
+
{ path: "CLAUDE.md" },
|
|
9722
|
+
{ path: ".mcp.json", isMcpConfig: true },
|
|
9723
|
+
{ path: ".claude/" },
|
|
9724
|
+
],
|
|
9725
|
+
cline: [{ path: ".clinerules/" }],
|
|
9726
|
+
"gemini-cli": [
|
|
9727
|
+
{ path: ".gemini/GEMINI.md" },
|
|
9728
|
+
{ path: ".gemini/settings.json", isMcpConfig: true },
|
|
9729
|
+
],
|
|
9730
|
+
opencode: [{ path: ".opencode.json", isMcpConfig: true }],
|
|
9731
|
+
"qwen-code": [
|
|
9732
|
+
{ path: ".qwen/QWEN.md" },
|
|
9733
|
+
{ path: ".qwen/settings.json", isMcpConfig: true },
|
|
9718
9734
|
],
|
|
9719
|
-
cline: [".clinerules/"],
|
|
9720
|
-
"gemini-cli": [".gemini/GEMINI.md", ".gemini/settings.json"],
|
|
9721
|
-
opencode: [".opencode.json"],
|
|
9722
|
-
"qwen-code": [".qwen/QWEN.md", ".qwen/settings.json"],
|
|
9723
9735
|
"baidu-comate": [
|
|
9724
|
-
".comate/rules/cloudbase-rules.mdr",
|
|
9725
|
-
".comate/rules/cloudbaase-rules.mdr",
|
|
9726
|
-
".comate/mcp.json",
|
|
9736
|
+
{ path: ".comate/rules/cloudbase-rules.mdr" },
|
|
9737
|
+
{ path: ".comate/rules/cloudbaase-rules.mdr" },
|
|
9738
|
+
{ path: ".comate/mcp.json", isMcpConfig: true },
|
|
9739
|
+
],
|
|
9740
|
+
"openai-codex-cli": [
|
|
9741
|
+
{ path: ".codex/config.toml", isMcpConfig: true },
|
|
9742
|
+
{ path: "AGENTS.md" },
|
|
9743
|
+
],
|
|
9744
|
+
"augment-code": [{ path: ".augment-guidelines" }],
|
|
9745
|
+
"github-copilot": [{ path: ".github/copilot-instructions.md" }],
|
|
9746
|
+
roocode: [
|
|
9747
|
+
{ path: ".roo/rules/cloudbaase-rules.md" },
|
|
9748
|
+
{ path: ".roo/mcp.json", isMcpConfig: true },
|
|
9749
|
+
],
|
|
9750
|
+
"tongyi-lingma": [{ path: ".lingma/rules/cloudbaase-rules.md" }],
|
|
9751
|
+
trae: [{ path: ".trae/rules/" }],
|
|
9752
|
+
qoder: [{ path: ".qoder/rules/" }],
|
|
9753
|
+
antigravity: [{ path: ".agent/rules/" }],
|
|
9754
|
+
vscode: [
|
|
9755
|
+
{ path: ".vscode/mcp.json", isMcpConfig: true },
|
|
9756
|
+
{ path: ".vscode/settings.json" },
|
|
9757
|
+
],
|
|
9758
|
+
kiro: [
|
|
9759
|
+
{ path: ".kiro/settings/mcp.json", isMcpConfig: true },
|
|
9760
|
+
{ path: ".kiro/steering/" },
|
|
9727
9761
|
],
|
|
9728
|
-
|
|
9729
|
-
"augment-code": [".augment-guidelines"],
|
|
9730
|
-
"github-copilot": [".github/copilot-instructions.md"],
|
|
9731
|
-
roocode: [".roo/rules/cloudbaase-rules.md", ".roo/mcp.json"],
|
|
9732
|
-
"tongyi-lingma": [".lingma/rules/cloudbaase-rules.md"],
|
|
9733
|
-
trae: [".trae/rules/"],
|
|
9734
|
-
qoder: [".qoder/rules/"],
|
|
9735
|
-
antigravity: [".agent/rules/"],
|
|
9736
|
-
vscode: [".vscode/mcp.json", ".vscode/settings.json"],
|
|
9737
|
-
kiro: [".kiro/settings/mcp.json", ".kiro/steering/"],
|
|
9762
|
+
aider: [{ path: "mcp.json", isMcpConfig: true }],
|
|
9738
9763
|
};
|
|
9764
|
+
const IDE_FILE_MAPPINGS = structuredClone(exports.RAW_IDE_FILE_MAPPINGS);
|
|
9739
9765
|
// 所有IDE配置文件的完整列表 - 通过IDE_FILE_MAPPINGS计算得出
|
|
9740
|
-
const ALL_IDE_FILES = Array.from(new Set(Object.values(IDE_FILE_MAPPINGS)
|
|
9766
|
+
const ALL_IDE_FILES = Array.from(new Set(Object.values(IDE_FILE_MAPPINGS)
|
|
9767
|
+
.flat()
|
|
9768
|
+
.map((descriptor) => descriptor.path)));
|
|
9741
9769
|
// 为"all"选项添加映射
|
|
9742
|
-
IDE_FILE_MAPPINGS["all"] = ALL_IDE_FILES;
|
|
9770
|
+
IDE_FILE_MAPPINGS["all"] = ALL_IDE_FILES.map((path) => ({ path }));
|
|
9743
9771
|
// IDE描述映射
|
|
9744
9772
|
const IDE_DESCRIPTIONS = {
|
|
9745
9773
|
all: "所有IDE配置",
|
|
@@ -9762,6 +9790,7 @@ const IDE_DESCRIPTIONS = {
|
|
|
9762
9790
|
antigravity: "Google Antigravity AI编辑器",
|
|
9763
9791
|
vscode: "Visual Studio Code",
|
|
9764
9792
|
kiro: "Kiro AI编辑器",
|
|
9793
|
+
aider: "Aider AI编辑器",
|
|
9765
9794
|
};
|
|
9766
9795
|
// INTEGRATION_IDE 环境变量值到 IDE 类型的映射
|
|
9767
9796
|
const INTEGRATION_IDE_MAPPING = {
|
|
@@ -9980,7 +10009,7 @@ function filterFilesByIDE(files, ide) {
|
|
|
9980
10009
|
}
|
|
9981
10010
|
// 阶段2: 在检查清单范围内,检查是否属于当前 IDE
|
|
9982
10011
|
for (const ideFile of ideFiles) {
|
|
9983
|
-
if (matchesPath(file, ideFile)) {
|
|
10012
|
+
if (matchesPath(file, ideFile.path)) {
|
|
9984
10013
|
// 属于当前 IDE,保留
|
|
9985
10014
|
return true;
|
|
9986
10015
|
}
|
|
@@ -10014,7 +10043,7 @@ function registerSetupTools(server) {
|
|
|
10014
10043
|
title: "下载项目模板",
|
|
10015
10044
|
description: `自动下载并部署CloudBase项目模板。⚠️ **MANDATORY FOR NEW PROJECTS** ⚠️
|
|
10016
10045
|
|
|
10017
|
-
**CRITICAL**: This tool MUST be called FIRST when starting a new project.\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- 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\n特别说明:\n- rules 模板会自动包含当前 mcp 版本号信息(版本号:${ true ? "2.
|
|
10046
|
+
**CRITICAL**: This tool MUST be called FIRST when starting a new project.\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- 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.7.0" : 0}),便于后续维护和版本追踪\n- 下载 rules 模板时,如果项目中已存在 README.md 文件,系统会自动保护该文件不被覆盖(除非设置 overwrite=true)`,
|
|
10018
10047
|
inputSchema: {
|
|
10019
10048
|
template: zod_1.z
|
|
10020
10049
|
.enum(["react", "vue", "miniprogram", "uniapp", "rules"])
|
|
@@ -13673,7 +13702,7 @@ var __webpack_exports__ = {};
|
|
|
13673
13702
|
var exports = __webpack_exports__;
|
|
13674
13703
|
|
|
13675
13704
|
Object.defineProperty(exports, "BJ", ({ value: true }));
|
|
13676
|
-
exports.vY = exports.q8 = exports.bM = exports.fW = exports._k = exports.T$ = exports.$n = exports.S = exports.bT = exports.ri = exports.BS = exports.R8 = exports.z3 = exports.pq = exports.R4 = exports.ps = exports.v7 = exports.S7 = exports.dD = exports.Gh = void 0;
|
|
13705
|
+
exports.pk = exports.vY = exports.q8 = exports.bM = exports.fW = exports._k = exports.T$ = exports.$n = exports.S = exports.bT = exports.ri = exports.BS = exports.R8 = exports.z3 = exports.pq = exports.R4 = exports.ps = exports.v7 = exports.S7 = exports.dD = exports.Gh = void 0;
|
|
13677
13706
|
exports.SJ = getInteractiveServerAsync;
|
|
13678
13707
|
// CloudBase MCP Server Library
|
|
13679
13708
|
var server_js_1 = __webpack_require__(1422);
|
|
@@ -13700,6 +13729,8 @@ Object.defineProperty(exports, "fW", ({ enumerable: true, get: function () { ret
|
|
|
13700
13729
|
Object.defineProperty(exports, "bM", ({ enumerable: true, get: function () { return cloudbase_manager_js_1.resetCloudBaseManagerCache; } }));
|
|
13701
13730
|
Object.defineProperty(exports, "q8", ({ enumerable: true, get: function () { return cloudbase_manager_js_1.createCloudBaseManagerWithOptions; } }));
|
|
13702
13731
|
Object.defineProperty(exports, "vY", ({ enumerable: true, get: function () { return cloudbase_manager_js_1.envManager; } }));
|
|
13732
|
+
var setup_js_1 = __webpack_require__(6556);
|
|
13733
|
+
Object.defineProperty(exports, "pk", ({ enumerable: true, get: function () { return setup_js_1.RAW_IDE_FILE_MAPPINGS; } }));
|
|
13703
13734
|
/**
|
|
13704
13735
|
* Get interactive server instance (CommonJS compatible)
|
|
13705
13736
|
*/
|
|
@@ -13712,6 +13743,7 @@ async function getInteractiveServerAsync() {
|
|
|
13712
13743
|
|
|
13713
13744
|
})();
|
|
13714
13745
|
|
|
13746
|
+
const __webpack_exports__RAW_IDE_FILE_MAPPINGS = __webpack_exports__.pk;
|
|
13715
13747
|
const __webpack_exports__StdioServerTransport = __webpack_exports__.S7;
|
|
13716
13748
|
const __webpack_exports___esModule = __webpack_exports__.BJ;
|
|
13717
13749
|
const __webpack_exports__createCloudBaseManagerWithOptions = __webpack_exports__.q8;
|
|
@@ -13734,4 +13766,4 @@ const __webpack_exports__resetCloudBaseManagerCache = __webpack_exports__.bM;
|
|
|
13734
13766
|
const __webpack_exports__shouldRegisterTool = __webpack_exports__.T$;
|
|
13735
13767
|
const __webpack_exports__telemetryReporter = __webpack_exports__.v7;
|
|
13736
13768
|
const __webpack_exports__warn = __webpack_exports__.R8;
|
|
13737
|
-
export { __webpack_exports__StdioServerTransport as StdioServerTransport, __webpack_exports___esModule as __esModule, __webpack_exports__createCloudBaseManagerWithOptions as createCloudBaseManagerWithOptions, __webpack_exports__createCloudBaseMcpServer as createCloudBaseMcpServer, __webpack_exports__enableCloudMode as enableCloudMode, __webpack_exports__envManager as envManager, __webpack_exports__error as error, __webpack_exports__getCloudBaseManager as getCloudBaseManager, __webpack_exports__getCloudModeStatus as getCloudModeStatus, __webpack_exports__getDefaultServer as getDefaultServer, __webpack_exports__getEnvId as getEnvId, __webpack_exports__getInteractiveServerAsync as getInteractiveServerAsync, __webpack_exports__getLoginState as getLoginState, __webpack_exports__info as info, __webpack_exports__isCloudMode as isCloudMode, __webpack_exports__logout as logout, __webpack_exports__reportToolCall as reportToolCall, __webpack_exports__reportToolkitLifecycle as reportToolkitLifecycle, __webpack_exports__resetCloudBaseManagerCache as resetCloudBaseManagerCache, __webpack_exports__shouldRegisterTool as shouldRegisterTool, __webpack_exports__telemetryReporter as telemetryReporter, __webpack_exports__warn as warn };
|
|
13769
|
+
export { __webpack_exports__RAW_IDE_FILE_MAPPINGS as RAW_IDE_FILE_MAPPINGS, __webpack_exports__StdioServerTransport as StdioServerTransport, __webpack_exports___esModule as __esModule, __webpack_exports__createCloudBaseManagerWithOptions as createCloudBaseManagerWithOptions, __webpack_exports__createCloudBaseMcpServer as createCloudBaseMcpServer, __webpack_exports__enableCloudMode as enableCloudMode, __webpack_exports__envManager as envManager, __webpack_exports__error as error, __webpack_exports__getCloudBaseManager as getCloudBaseManager, __webpack_exports__getCloudModeStatus as getCloudModeStatus, __webpack_exports__getDefaultServer as getDefaultServer, __webpack_exports__getEnvId as getEnvId, __webpack_exports__getInteractiveServerAsync as getInteractiveServerAsync, __webpack_exports__getLoginState as getLoginState, __webpack_exports__info as info, __webpack_exports__isCloudMode as isCloudMode, __webpack_exports__logout as logout, __webpack_exports__reportToolCall as reportToolCall, __webpack_exports__reportToolkitLifecycle as reportToolkitLifecycle, __webpack_exports__resetCloudBaseManagerCache as resetCloudBaseManagerCache, __webpack_exports__shouldRegisterTool as shouldRegisterTool, __webpack_exports__telemetryReporter as telemetryReporter, __webpack_exports__warn as warn };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cloudbase-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "腾讯云开发 MCP Server,通过AI提示词和MCP协议+云开发,让开发更智能、更高效,当你在Cursor/ VSCode GitHub Copilot/WinSurf/CodeBuddy/Augment Code/Claude Code等AI编程工具里写代码时,它能自动帮你生成可直接部署的前后端应用+小程序,并一键发布到腾讯云开发 CloudBase。",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|