@cloudbase/cloudbase-mcp 2.25.6 → 2.25.8

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/index.d.ts CHANGED
@@ -302,6 +302,10 @@ declare class InteractiveServer {
302
302
  * 1. Command line argument --cloud-mode
303
303
  * 2. Environment variable CLOUDBASE_MCP_CLOUD_MODE=true
304
304
  * 3. Environment variable MCP_CLOUD_MODE=true
305
+ *
306
+ * Intentionally does not import logger: logger.ts calls isCloudMode() during
307
+ * module init, so importing logger here creates a circular dependency that
308
+ * crashes `node dist/cli.cjs --cloud-mode` with `debug is not a function`.
305
309
  */
306
310
  export declare function isCloudMode(): boolean;
307
311
 
package/dist/index.js CHANGED
@@ -2772,7 +2772,7 @@ ${envIdSection}
2772
2772
  ## 环境信息
2773
2773
  - 操作系统: ${os_1.default.type()} ${os_1.default.release()}
2774
2774
  - Node.js版本: ${process.version}
2775
- - MCP 版本:${process.env.npm_package_version || "2.25.6" || 0}
2775
+ - MCP 版本:${process.env.npm_package_version || "2.25.8" || 0}
2776
2776
  - 系统架构: ${os_1.default.arch()}
2777
2777
  - 时间: ${new Date().toISOString()}
2778
2778
  - 请求ID: ${requestId}
@@ -2853,7 +2853,7 @@ function createWrappedHandler(name, handler, server) {
2853
2853
  requestId: (typeof error === 'object' && error && 'requestId' in error) ? error.requestId : '',
2854
2854
  ide: server.ide || process.env.INTEGRATION_IDE || ''
2855
2855
  });
2856
- const mcpVersion = true ? "2.25.6" : 0;
2856
+ const mcpVersion = true ? "2.25.8" : 0;
2857
2857
  const requestIdSuffix = requestId ? `\n🆔 RequestId: ${requestId}` : '';
2858
2858
  const enhancedErrorMessage = `${errorMessage}${requestIdSuffix}\n\n📦 CloudBase MCP v${mcpVersion}\n🔗 遇到问题?请复制以下链接到浏览器打开\n即可自动携带错误详情快速创建 GitHub Issue:\n${issueLink}`;
2859
2859
  // 创建新的错误对象,保持原有的错误类型但更新消息
@@ -11208,7 +11208,7 @@ class TelemetryReporter {
11208
11208
  const nodeVersion = process.version; // Node.js版本
11209
11209
  const arch = os_1.default.arch(); // 系统架构
11210
11210
  // 从构建时注入的版本号获取MCP版本信息
11211
- const mcpVersion = process.env.npm_package_version || "2.25.6" || 0;
11211
+ const mcpVersion = process.env.npm_package_version || "2.25.8" || 0;
11212
11212
  return {
11213
11213
  userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
11214
11214
  deviceId: this.deviceId,
@@ -16743,7 +16743,7 @@ function registerSetupTools(server) {
16743
16743
  server.registerTool("downloadTemplate", {
16744
16744
  title: "下载项目模板",
16745
16745
  description: `自动下载并部署CloudBase项目模板。
16746
- **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.25.6" : 0}),便于后续维护和版本追踪\n- 下载 rules 模板时,如果项目中已存在 README.md 文件,系统会自动保护该文件不被覆盖(除非设置 overwrite=true)`,
16746
+ **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.25.8" : 0}),便于后续维护和版本追踪\n- 下载 rules 模板时,如果项目中已存在 README.md 文件,系统会自动保护该文件不被覆盖(除非设置 overwrite=true)`,
16747
16747
  inputSchema: {
16748
16748
  template: zod_1.z
16749
16749
  .enum(["react", "vue", "miniprogram", "uniapp", "rules"])
@@ -20473,7 +20473,7 @@ function registerAgentTools(server) {
20473
20473
  /***/ }),
20474
20474
 
20475
20475
  /***/ 9684:
20476
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
20476
+ /***/ ((__unused_webpack_module, exports) => {
20477
20477
 
20478
20478
 
20479
20479
  Object.defineProperty(exports, "__esModule", ({ value: true }));
@@ -20481,13 +20481,16 @@ exports.isCloudMode = isCloudMode;
20481
20481
  exports.enableCloudMode = enableCloudMode;
20482
20482
  exports.getCloudModeStatus = getCloudModeStatus;
20483
20483
  exports.shouldRegisterTool = shouldRegisterTool;
20484
- const logger_js_1 = __webpack_require__(3039);
20485
20484
  /**
20486
20485
  * Check if MCP is running in cloud mode
20487
20486
  * Cloud mode is enabled by:
20488
20487
  * 1. Command line argument --cloud-mode
20489
20488
  * 2. Environment variable CLOUDBASE_MCP_CLOUD_MODE=true
20490
20489
  * 3. Environment variable MCP_CLOUD_MODE=true
20490
+ *
20491
+ * Intentionally does not import logger: logger.ts calls isCloudMode() during
20492
+ * module init, so importing logger here creates a circular dependency that
20493
+ * crashes `node dist/cli.cjs --cloud-mode` with `debug is not a function`.
20491
20494
  */
20492
20495
  function isCloudMode() {
20493
20496
  // Check for CLI argument first
@@ -20495,21 +20498,13 @@ function isCloudMode() {
20495
20498
  // Check environment variables
20496
20499
  const cloudModeEnabled = process.env.CLOUDBASE_MCP_CLOUD_MODE === 'true' ||
20497
20500
  process.env.MCP_CLOUD_MODE === 'true';
20498
- const isEnabled = hasCloudModeArg || cloudModeEnabled;
20499
- if (isEnabled) {
20500
- (0, logger_js_1.debug)('Cloud mode is enabled', {
20501
- source: hasCloudModeArg ? 'CLI_ARG' : 'ENV_VAR',
20502
- envVar: process.env.CLOUDBASE_MCP_CLOUD_MODE || process.env.MCP_CLOUD_MODE
20503
- });
20504
- }
20505
- return isEnabled;
20501
+ return hasCloudModeArg || cloudModeEnabled;
20506
20502
  }
20507
20503
  /**
20508
20504
  * Enable cloud mode by setting environment variable
20509
20505
  */
20510
20506
  function enableCloudMode() {
20511
20507
  process.env.CLOUDBASE_MCP_CLOUD_MODE = 'true';
20512
- (0, logger_js_1.debug)('Cloud mode enabled via API call');
20513
20508
  }
20514
20509
  /**
20515
20510
  * Get cloud mode status for logging/debugging
@@ -20557,11 +20552,7 @@ function shouldRegisterTool(toolName) {
20557
20552
  // Download tools - local file downloads
20558
20553
  'manageStorage',
20559
20554
  ];
20560
- const shouldRegister = !cloudIncompatibleTools.includes(toolName);
20561
- if (!shouldRegister) {
20562
- (0, logger_js_1.debug)(`Cloud mode: skipping registration of incompatible tool: ${toolName}`);
20563
- }
20564
- return shouldRegister;
20555
+ return !cloudIncompatibleTools.includes(toolName);
20565
20556
  }
20566
20557
 
20567
20558
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cloudbase-mcp",
3
- "version": "2.25.6",
3
+ "version": "2.25.8",
4
4
  "packageManager": "pnpm@10.8.0",
5
5
  "description": "CloudBase MCP Server — operate Tencent CloudBase (database, auth, functions, storage, hosting) from AI coding tools via the Model Context Protocol. Part of CloudBase AI Toolkit.",
6
6
  "main": "./dist/index.cjs",
@@ -46,9 +46,10 @@
46
46
  "build:permissions": "chmod 755 dist/cli.cjs",
47
47
  "test": "npm run build && vitest run",
48
48
  "test:watch": "npm run build && vitest",
49
- "test:ui": "npm run build && vitest --ui",
50
49
  "test:coverage": "npm run build && vitest run --coverage",
51
50
  "test:pg:cloud": "npm run build && node ./scripts/verify-pg-cloud-smoke.mjs",
51
+ "test:cli:cloud-mode": "node ./scripts/verify-cli-cloud-mode-smoke.mjs",
52
+ "test:npm:tarball-smoke": "node ./scripts/verify-npm-tarball-smoke.mjs",
52
53
  "test:inspector": "npm run build && npx @modelcontextprotocol/inspector node ./dist/cli.js",
53
54
  "prepublishOnly": "npm run build && node scripts/prepare-publish.cjs",
54
55
  "postpublish": "node scripts/restore-deps.cjs"
@@ -93,7 +94,7 @@
93
94
  "ts-loader": "^9.5.2",
94
95
  "tslib": "^2.8.1",
95
96
  "typescript": "^5.9.3",
96
- "vitest": "^2.1.8",
97
+ "vitest": "3.2.7",
97
98
  "webpack": "^5.100.0",
98
99
  "webpack-cli": "^6.0.1",
99
100
  "webpack-merge": "^6.0.1",
@@ -101,12 +102,30 @@
101
102
  "webpack-obfuscator": "^3.6.0"
102
103
  },
103
104
  "overrides": {
104
- "tough-cookie": "^4.1.3",
105
+ "tough-cookie": "4.1.4",
105
106
  "js-yaml": "4.3.0",
106
- "brace-expansion@1": "1.1.16",
107
- "brace-expansion@2": "2.1.2",
108
- "brace-expansion@3": "5.0.7",
109
- "brace-expansion@4": "5.0.7",
110
- "brace-expansion@5": "5.0.7"
107
+ "brace-expansion@1": "1.1.18",
108
+ "brace-expansion@2": "2.1.4",
109
+ "brace-expansion@3": "5.0.9",
110
+ "brace-expansion@4": "5.0.9",
111
+ "brace-expansion@5": "5.0.9",
112
+ "fast-uri": "3.1.5",
113
+ "postcss": "8.5.25",
114
+ "undici": "6.28.0",
115
+ "body-parser": "2.3.0",
116
+ "form-data": "2.5.6",
117
+ "fast-xml-parser@4": "4.5.5",
118
+ "ws@7": "7.5.11",
119
+ "ws@8": "8.21.0",
120
+ "path-to-regexp@8": "8.4.0",
121
+ "serialize-javascript": "7.0.5",
122
+ "picomatch@2": "2.3.2",
123
+ "picomatch@4": "4.0.4",
124
+ "minimatch@3": "3.1.5",
125
+ "minimatch@5": "5.1.9",
126
+ "minimatch@10": "10.2.5",
127
+ "vite@5": "5.4.21",
128
+ "adm-zip": "0.6.0",
129
+ "decompress": "npm:@xhmikosr/decompress@11.1.3"
111
130
  }
112
131
  }