@cloudbase/cloudbase-mcp 2.14.0 → 2.14.2
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 +3 -3
- package/dist/index.cjs +105 -26
- package/dist/index.d.ts +30 -0
- package/dist/index.js +113 -27
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -90045,23 +90045,71 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
90045
90045
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
90046
90046
|
};
|
|
90047
90047
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
90048
|
-
exports.WRITE_FUNCTION_LAYER_ACTIONS = exports.READ_FUNCTION_LAYER_ACTIONS = exports.TRIGGER_CONFIG_EXAMPLES = exports.SUPPORTED_TRIGGER_TYPES = exports.DEFAULT_NODEJS_RUNTIME = exports.SUPPORTED_NODEJS_RUNTIMES = void 0;
|
|
90048
|
+
exports.WRITE_FUNCTION_LAYER_ACTIONS = exports.READ_FUNCTION_LAYER_ACTIONS = exports.TRIGGER_CONFIG_EXAMPLES = exports.SUPPORTED_TRIGGER_TYPES = exports.DEFAULT_NODEJS_RUNTIME = exports.SUPPORTED_NODEJS_RUNTIMES = exports.RECOMMENDED_RUNTIMES = exports.DEFAULT_RUNTIME = exports.ALL_SUPPORTED_RUNTIMES = exports.SUPPORTED_RUNTIMES = void 0;
|
|
90049
|
+
exports.formatRuntimeList = formatRuntimeList;
|
|
90049
90050
|
exports.registerFunctionTools = registerFunctionTools;
|
|
90050
90051
|
const zod_1 = __webpack_require__(21614);
|
|
90051
90052
|
const cloudbase_manager_js_1 = __webpack_require__(3431);
|
|
90052
90053
|
const logger_js_1 = __webpack_require__(13039);
|
|
90053
90054
|
const path_1 = __importDefault(__webpack_require__(39902));
|
|
90054
|
-
//
|
|
90055
|
-
exports.
|
|
90056
|
-
|
|
90057
|
-
|
|
90058
|
-
|
|
90059
|
-
|
|
90060
|
-
|
|
90061
|
-
|
|
90062
|
-
|
|
90063
|
-
|
|
90064
|
-
|
|
90055
|
+
// 所有支持的运行时环境(按语言分类)
|
|
90056
|
+
exports.SUPPORTED_RUNTIMES = {
|
|
90057
|
+
nodejs: [
|
|
90058
|
+
"Nodejs20.19",
|
|
90059
|
+
"Nodejs18.15",
|
|
90060
|
+
"Nodejs16.13",
|
|
90061
|
+
"Nodejs14.18",
|
|
90062
|
+
"Nodejs12.16",
|
|
90063
|
+
"Nodejs10.15",
|
|
90064
|
+
"Nodejs8.9",
|
|
90065
|
+
],
|
|
90066
|
+
python: [
|
|
90067
|
+
"Python3.10",
|
|
90068
|
+
"Python3.9",
|
|
90069
|
+
"Python3.7",
|
|
90070
|
+
"Python3.6",
|
|
90071
|
+
"Python2.7",
|
|
90072
|
+
],
|
|
90073
|
+
php: [
|
|
90074
|
+
"Php8.0",
|
|
90075
|
+
"Php7.4",
|
|
90076
|
+
"Php7.2",
|
|
90077
|
+
],
|
|
90078
|
+
java: [
|
|
90079
|
+
"Java8",
|
|
90080
|
+
"Java11",
|
|
90081
|
+
],
|
|
90082
|
+
golang: [
|
|
90083
|
+
"Golang1",
|
|
90084
|
+
],
|
|
90085
|
+
};
|
|
90086
|
+
// 所有支持的运行时(扁平化数组,用于验证)
|
|
90087
|
+
exports.ALL_SUPPORTED_RUNTIMES = Object.values(exports.SUPPORTED_RUNTIMES).flat();
|
|
90088
|
+
// 默认运行时
|
|
90089
|
+
exports.DEFAULT_RUNTIME = "Nodejs18.15";
|
|
90090
|
+
// 推荐运行时(用于文档和提示)
|
|
90091
|
+
exports.RECOMMENDED_RUNTIMES = {
|
|
90092
|
+
nodejs: "Nodejs18.15",
|
|
90093
|
+
python: "Python3.9",
|
|
90094
|
+
php: "Php7.4",
|
|
90095
|
+
java: "Java11",
|
|
90096
|
+
golang: "Golang1",
|
|
90097
|
+
};
|
|
90098
|
+
// 保留向后兼容
|
|
90099
|
+
exports.SUPPORTED_NODEJS_RUNTIMES = exports.SUPPORTED_RUNTIMES.nodejs;
|
|
90100
|
+
exports.DEFAULT_NODEJS_RUNTIME = exports.DEFAULT_RUNTIME;
|
|
90101
|
+
/**
|
|
90102
|
+
* 格式化运行时列表(按语言分类)
|
|
90103
|
+
* 用于错误提示和用户引导
|
|
90104
|
+
*/
|
|
90105
|
+
function formatRuntimeList() {
|
|
90106
|
+
return Object.entries(exports.SUPPORTED_RUNTIMES)
|
|
90107
|
+
.map(([lang, runtimes]) => {
|
|
90108
|
+
const capitalizedLang = lang.charAt(0).toUpperCase() + lang.slice(1);
|
|
90109
|
+
return ` ${capitalizedLang}: ${runtimes.join(', ')}`;
|
|
90110
|
+
})
|
|
90111
|
+
.join('\n');
|
|
90112
|
+
}
|
|
90065
90113
|
// Supported trigger types
|
|
90066
90114
|
exports.SUPPORTED_TRIGGER_TYPES = [
|
|
90067
90115
|
"timer", // Timer trigger
|
|
@@ -90199,7 +90247,11 @@ function registerFunctionTools(server) {
|
|
|
90199
90247
|
// createFunction - 创建云函数 (cloud-incompatible)
|
|
90200
90248
|
server.registerTool("createFunction", {
|
|
90201
90249
|
title: "创建云函数",
|
|
90202
|
-
description: "
|
|
90250
|
+
description: "创建云函数。云函数分为事件型云函数(Event)和 HTTP 云函数。\n\n" +
|
|
90251
|
+
"支持的运行时:\n" +
|
|
90252
|
+
"- Event 函数: Node.js, Python, PHP, Java, Go\n" +
|
|
90253
|
+
"- HTTP 函数: 所有语言(通过 scf_bootstrap 启动脚本)\n\n" +
|
|
90254
|
+
"注意: 运行时创建后不可修改,请谨慎选择。",
|
|
90203
90255
|
inputSchema: {
|
|
90204
90256
|
func: zod_1.z
|
|
90205
90257
|
.object({
|
|
@@ -90242,8 +90294,18 @@ function registerFunctionTools(server) {
|
|
|
90242
90294
|
runtime: zod_1.z
|
|
90243
90295
|
.string()
|
|
90244
90296
|
.optional()
|
|
90245
|
-
.describe("
|
|
90246
|
-
|
|
90297
|
+
.describe("运行时环境。Event 函数支持多种运行时:\n" +
|
|
90298
|
+
formatRuntimeList() + "\n\n" +
|
|
90299
|
+
"推荐运行时:\n" +
|
|
90300
|
+
` Node.js: ${exports.RECOMMENDED_RUNTIMES.nodejs}\n` +
|
|
90301
|
+
` Python: ${exports.RECOMMENDED_RUNTIMES.python}\n` +
|
|
90302
|
+
` PHP: ${exports.RECOMMENDED_RUNTIMES.php}\n` +
|
|
90303
|
+
` Java: ${exports.RECOMMENDED_RUNTIMES.java}\n` +
|
|
90304
|
+
` Go: ${exports.RECOMMENDED_RUNTIMES.golang}\n\n` +
|
|
90305
|
+
"注意:\n" +
|
|
90306
|
+
"- HTTP 函数已支持所有语言(通过 scf_bootstrap 启动脚本)\n" +
|
|
90307
|
+
"- Node.js 函数会自动安装依赖\n" +
|
|
90308
|
+
"- Python/PHP/Java/Go 函数需要预先打包依赖到函数目录"),
|
|
90247
90309
|
triggers: zod_1.z
|
|
90248
90310
|
.array(zod_1.z.object({
|
|
90249
90311
|
name: zod_1.z.string().describe("Trigger name"),
|
|
@@ -90291,12 +90353,14 @@ function registerFunctionTools(server) {
|
|
|
90291
90353
|
if (!isHttpFunction) {
|
|
90292
90354
|
// 自动填充默认 runtime
|
|
90293
90355
|
if (!func.runtime) {
|
|
90294
|
-
func.runtime = exports.
|
|
90356
|
+
func.runtime = exports.DEFAULT_RUNTIME;
|
|
90357
|
+
console.log(`未指定 runtime,使用默认值: ${exports.DEFAULT_RUNTIME}\n` +
|
|
90358
|
+
`可选运行时:\n${formatRuntimeList()}`);
|
|
90295
90359
|
}
|
|
90296
90360
|
else {
|
|
90297
90361
|
// 验证 runtime 格式,防止常见的空格问题
|
|
90298
90362
|
const normalizedRuntime = func.runtime.replace(/\s+/g, "");
|
|
90299
|
-
if (exports.
|
|
90363
|
+
if (exports.ALL_SUPPORTED_RUNTIMES.includes(normalizedRuntime)) {
|
|
90300
90364
|
func.runtime = normalizedRuntime;
|
|
90301
90365
|
}
|
|
90302
90366
|
else if (func.runtime.includes(" ")) {
|
|
@@ -90305,8 +90369,13 @@ function registerFunctionTools(server) {
|
|
|
90305
90369
|
}
|
|
90306
90370
|
}
|
|
90307
90371
|
// 验证 runtime 是否有效
|
|
90308
|
-
if (!exports.
|
|
90309
|
-
throw new Error(`不支持的运行时环境: "${func.runtime}"
|
|
90372
|
+
if (!exports.ALL_SUPPORTED_RUNTIMES.includes(func.runtime)) {
|
|
90373
|
+
throw new Error(`不支持的运行时环境: "${func.runtime}"\n\n` +
|
|
90374
|
+
`支持的运行时:\n${formatRuntimeList()}\n\n` +
|
|
90375
|
+
`提示:\n` +
|
|
90376
|
+
`- Node.js 函数会自动安装依赖\n` +
|
|
90377
|
+
`- Python/PHP/Java/Go 函数需要预先打包依赖到函数目录\n` +
|
|
90378
|
+
`- 详细信息请参考文档: https://docs.cloudbase.net/api-reference/manager/node/function#createfunction`);
|
|
90310
90379
|
}
|
|
90311
90380
|
}
|
|
90312
90381
|
// 强制设置 installDependency 为 true(不暴露给AI)
|
|
@@ -118480,10 +118549,10 @@ function registerHostingTools(server) {
|
|
|
118480
118549
|
// uploadFiles - 上传文件到静态网站托管 (cloud-incompatible)
|
|
118481
118550
|
server.registerTool("uploadFiles", {
|
|
118482
118551
|
title: "上传静态文件",
|
|
118483
|
-
description: "
|
|
118552
|
+
description: "上传文件到静态网站托管。部署前请先完成构建;如果站点会部署到子路径,请检查构建配置中的 publicPath、base、assetPrefix 等是否使用相对路径,避免静态资源加载失败。",
|
|
118484
118553
|
inputSchema: {
|
|
118485
|
-
localPath: zod_1.z.string().optional().describe("本地文件或文件夹路径,需要是绝对路径,例如 /tmp/files/data.txt"),
|
|
118486
|
-
cloudPath: zod_1.z.string().optional().describe("云端文件或文件夹路径,例如files/data.txt"),
|
|
118554
|
+
localPath: zod_1.z.string().optional().describe("本地文件或文件夹路径,需要是绝对路径,例如 /tmp/files/data.txt。"),
|
|
118555
|
+
cloudPath: zod_1.z.string().optional().describe("云端文件或文件夹路径,例如 files/data.txt。若部署到子路径,请同时检查构建配置中的 publicPath、base、assetPrefix 等是否为相对路径。"),
|
|
118487
118556
|
files: zod_1.z.array(zod_1.z.object({
|
|
118488
118557
|
localPath: zod_1.z.string(),
|
|
118489
118558
|
cloudPath: zod_1.z.string()
|
|
@@ -138597,7 +138666,7 @@ class TelemetryReporter {
|
|
|
138597
138666
|
const nodeVersion = process.version; // Node.js版本
|
|
138598
138667
|
const arch = os_1.default.arch(); // 系统架构
|
|
138599
138668
|
// 从构建时注入的版本号获取MCP版本信息
|
|
138600
|
-
const mcpVersion = process.env.npm_package_version || "2.14.
|
|
138669
|
+
const mcpVersion = process.env.npm_package_version || "2.14.2" || 0;
|
|
138601
138670
|
return {
|
|
138602
138671
|
userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
|
|
138603
138672
|
deviceId: this.deviceId,
|
|
@@ -205306,7 +205375,7 @@ ${envIdSection}
|
|
|
205306
205375
|
## 环境信息
|
|
205307
205376
|
- 操作系统: ${os_1.default.type()} ${os_1.default.release()}
|
|
205308
205377
|
- Node.js版本: ${process.version}
|
|
205309
|
-
- MCP 版本:${process.env.npm_package_version || "2.14.
|
|
205378
|
+
- MCP 版本:${process.env.npm_package_version || "2.14.2" || 0}
|
|
205310
205379
|
- 系统架构: ${os_1.default.arch()}
|
|
205311
205380
|
- 时间: ${new Date().toISOString()}
|
|
205312
205381
|
- 请求ID: ${requestId}
|
|
@@ -219814,6 +219883,7 @@ const INTEGRATION_IDE_MAPPING = {
|
|
|
219814
219883
|
CodeBuddy: "codebuddy",
|
|
219815
219884
|
CodeBuddyManual: "codebuddy",
|
|
219816
219885
|
CodeBuddyCode: "codebuddy",
|
|
219886
|
+
CodeBuddyPlugin: "codebuddy",
|
|
219817
219887
|
"Claude Code": "claude-code",
|
|
219818
219888
|
CLINE: "cline",
|
|
219819
219889
|
"Gemini CLI": "gemini-cli",
|
|
@@ -220072,7 +220142,7 @@ function registerSetupTools(server) {
|
|
|
220072
220142
|
title: "下载项目模板",
|
|
220073
220143
|
description: `自动下载并部署CloudBase项目模板。⚠️ **MANDATORY FOR NEW PROJECTS** ⚠️
|
|
220074
220144
|
|
|
220075
|
-
**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- 其他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.14.
|
|
220145
|
+
**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- 其他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.14.2" : 0}),便于后续维护和版本追踪\n- 下载 rules 模板时,如果项目中已存在 README.md 文件,系统会自动保护该文件不被覆盖(除非设置 overwrite=true)`,
|
|
220076
220146
|
inputSchema: {
|
|
220077
220147
|
template: zod_1.z
|
|
220078
220148
|
.enum(["react", "vue", "miniprogram", "uniapp", "rules"])
|
|
@@ -222642,7 +222712,7 @@ function tryStat(path) {
|
|
|
222642
222712
|
"use strict";
|
|
222643
222713
|
|
|
222644
222714
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
222645
|
-
exports.RAW_IDE_FILE_MAPPINGS = exports.simplifyEnvList = 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;
|
|
222715
|
+
exports.DEFAULT_NODEJS_RUNTIME = exports.SUPPORTED_NODEJS_RUNTIMES = exports.formatRuntimeList = exports.RECOMMENDED_RUNTIMES = exports.DEFAULT_RUNTIME = exports.ALL_SUPPORTED_RUNTIMES = exports.SUPPORTED_RUNTIMES = exports.RAW_IDE_FILE_MAPPINGS = exports.simplifyEnvList = 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;
|
|
222646
222716
|
exports.getInteractiveServerAsync = getInteractiveServerAsync;
|
|
222647
222717
|
// CloudBase MCP Server Library
|
|
222648
222718
|
var server_js_1 = __webpack_require__(31422);
|
|
@@ -222673,6 +222743,15 @@ var env_js_1 = __webpack_require__(622);
|
|
|
222673
222743
|
Object.defineProperty(exports, "simplifyEnvList", ({ enumerable: true, get: function () { return env_js_1.simplifyEnvList; } }));
|
|
222674
222744
|
var setup_js_1 = __webpack_require__(76556);
|
|
222675
222745
|
Object.defineProperty(exports, "RAW_IDE_FILE_MAPPINGS", ({ enumerable: true, get: function () { return setup_js_1.RAW_IDE_FILE_MAPPINGS; } }));
|
|
222746
|
+
// Export runtime constants for multi-language support
|
|
222747
|
+
var functions_js_1 = __webpack_require__(25936);
|
|
222748
|
+
Object.defineProperty(exports, "SUPPORTED_RUNTIMES", ({ enumerable: true, get: function () { return functions_js_1.SUPPORTED_RUNTIMES; } }));
|
|
222749
|
+
Object.defineProperty(exports, "ALL_SUPPORTED_RUNTIMES", ({ enumerable: true, get: function () { return functions_js_1.ALL_SUPPORTED_RUNTIMES; } }));
|
|
222750
|
+
Object.defineProperty(exports, "DEFAULT_RUNTIME", ({ enumerable: true, get: function () { return functions_js_1.DEFAULT_RUNTIME; } }));
|
|
222751
|
+
Object.defineProperty(exports, "RECOMMENDED_RUNTIMES", ({ enumerable: true, get: function () { return functions_js_1.RECOMMENDED_RUNTIMES; } }));
|
|
222752
|
+
Object.defineProperty(exports, "formatRuntimeList", ({ enumerable: true, get: function () { return functions_js_1.formatRuntimeList; } }));
|
|
222753
|
+
Object.defineProperty(exports, "SUPPORTED_NODEJS_RUNTIMES", ({ enumerable: true, get: function () { return functions_js_1.SUPPORTED_NODEJS_RUNTIMES; } }));
|
|
222754
|
+
Object.defineProperty(exports, "DEFAULT_NODEJS_RUNTIME", ({ enumerable: true, get: function () { return functions_js_1.DEFAULT_NODEJS_RUNTIME; } }));
|
|
222676
222755
|
/**
|
|
222677
222756
|
* Get interactive server instance (CommonJS compatible)
|
|
222678
222757
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { Credential as Credential_2 } from '@cloudbase/toolbox';
|
|
|
3
3
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
4
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
5
5
|
|
|
6
|
+
export declare const ALL_SUPPORTED_RUNTIMES: ("Nodejs20.19" | "Nodejs18.15" | "Nodejs16.13" | "Nodejs14.18" | "Nodejs12.16" | "Nodejs10.15" | "Nodejs8.9" | "Python3.10" | "Python3.9" | "Python3.7" | "Python3.6" | "Python2.7" | "Php8.0" | "Php7.4" | "Php7.2" | "Java8" | "Java11" | "Golang1")[];
|
|
7
|
+
|
|
6
8
|
declare type AuthFlowMode = "web" | "device";
|
|
7
9
|
|
|
8
10
|
export declare type CloudBaseOptions = NonNullable<ConstructorParameters<typeof CloudBase>[0]>;
|
|
@@ -83,6 +85,10 @@ export declare interface DataModelSchema {
|
|
|
83
85
|
required?: string[];
|
|
84
86
|
}
|
|
85
87
|
|
|
88
|
+
export declare const DEFAULT_NODEJS_RUNTIME = "Nodejs18.15";
|
|
89
|
+
|
|
90
|
+
export declare const DEFAULT_RUNTIME = "Nodejs18.15";
|
|
91
|
+
|
|
86
92
|
export declare interface DeleteFileParams {
|
|
87
93
|
cloudPath: string;
|
|
88
94
|
}
|
|
@@ -135,6 +141,12 @@ export declare interface ExtendedMcpServer extends McpServer {
|
|
|
135
141
|
setLogger(logger: Logger): void;
|
|
136
142
|
}
|
|
137
143
|
|
|
144
|
+
/**
|
|
145
|
+
* 格式化运行时列表(按语言分类)
|
|
146
|
+
* 用于错误提示和用户引导
|
|
147
|
+
*/
|
|
148
|
+
export declare function formatRuntimeList(): string;
|
|
149
|
+
|
|
138
150
|
/**
|
|
139
151
|
* 每次都实时获取最新的 token/secretId/secretKey
|
|
140
152
|
*/
|
|
@@ -265,6 +277,14 @@ export { McpServer }
|
|
|
265
277
|
|
|
266
278
|
export declare const RAW_IDE_FILE_MAPPINGS: Record<string, IdeFileDescriptor[]>;
|
|
267
279
|
|
|
280
|
+
export declare const RECOMMENDED_RUNTIMES: {
|
|
281
|
+
readonly nodejs: "Nodejs18.15";
|
|
282
|
+
readonly python: "Python3.9";
|
|
283
|
+
readonly php: "Php7.4";
|
|
284
|
+
readonly java: "Java11";
|
|
285
|
+
readonly golang: "Golang1";
|
|
286
|
+
};
|
|
287
|
+
|
|
268
288
|
export declare const reportToolCall: (params: {
|
|
269
289
|
toolName: string;
|
|
270
290
|
success: boolean;
|
|
@@ -304,6 +324,16 @@ export declare function simplifyEnvList(envList: any[]): any[];
|
|
|
304
324
|
|
|
305
325
|
export { StdioServerTransport }
|
|
306
326
|
|
|
327
|
+
export declare const SUPPORTED_NODEJS_RUNTIMES: readonly ["Nodejs20.19", "Nodejs18.15", "Nodejs16.13", "Nodejs14.18", "Nodejs12.16", "Nodejs10.15", "Nodejs8.9"];
|
|
328
|
+
|
|
329
|
+
export declare const SUPPORTED_RUNTIMES: {
|
|
330
|
+
readonly nodejs: readonly ["Nodejs20.19", "Nodejs18.15", "Nodejs16.13", "Nodejs14.18", "Nodejs12.16", "Nodejs10.15", "Nodejs8.9"];
|
|
331
|
+
readonly python: readonly ["Python3.10", "Python3.9", "Python3.7", "Python3.6", "Python2.7"];
|
|
332
|
+
readonly php: readonly ["Php8.0", "Php7.4", "Php7.2"];
|
|
333
|
+
readonly java: readonly ["Java8", "Java11"];
|
|
334
|
+
readonly golang: readonly ["Golang1"];
|
|
335
|
+
};
|
|
336
|
+
|
|
307
337
|
/**
|
|
308
338
|
* 数据上报类
|
|
309
339
|
* 用于收集 MCP 工具使用情况和错误信息,帮助改进产品
|
package/dist/index.js
CHANGED
|
@@ -893,7 +893,7 @@ ${envIdSection}
|
|
|
893
893
|
## 环境信息
|
|
894
894
|
- 操作系统: ${os_1.default.type()} ${os_1.default.release()}
|
|
895
895
|
- Node.js版本: ${process.version}
|
|
896
|
-
- MCP 版本:${process.env.npm_package_version || "2.14.
|
|
896
|
+
- MCP 版本:${process.env.npm_package_version || "2.14.2" || 0}
|
|
897
897
|
- 系统架构: ${os_1.default.arch()}
|
|
898
898
|
- 时间: ${new Date().toISOString()}
|
|
899
899
|
- 请求ID: ${requestId}
|
|
@@ -9151,7 +9151,7 @@ class TelemetryReporter {
|
|
|
9151
9151
|
const nodeVersion = process.version; // Node.js版本
|
|
9152
9152
|
const arch = os_1.default.arch(); // 系统架构
|
|
9153
9153
|
// 从构建时注入的版本号获取MCP版本信息
|
|
9154
|
-
const mcpVersion = process.env.npm_package_version || "2.14.
|
|
9154
|
+
const mcpVersion = process.env.npm_package_version || "2.14.2" || 0;
|
|
9155
9155
|
return {
|
|
9156
9156
|
userAgent: `${osType} ${osRelease} ${arch} ${nodeVersion} CloudBase-MCP/${mcpVersion}`,
|
|
9157
9157
|
deviceId: this.deviceId,
|
|
@@ -9463,23 +9463,71 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9463
9463
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9464
9464
|
};
|
|
9465
9465
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9466
|
-
exports.WRITE_FUNCTION_LAYER_ACTIONS = exports.READ_FUNCTION_LAYER_ACTIONS = exports.TRIGGER_CONFIG_EXAMPLES = exports.SUPPORTED_TRIGGER_TYPES = exports.DEFAULT_NODEJS_RUNTIME = exports.SUPPORTED_NODEJS_RUNTIMES = void 0;
|
|
9466
|
+
exports.WRITE_FUNCTION_LAYER_ACTIONS = exports.READ_FUNCTION_LAYER_ACTIONS = exports.TRIGGER_CONFIG_EXAMPLES = exports.SUPPORTED_TRIGGER_TYPES = exports.DEFAULT_NODEJS_RUNTIME = exports.SUPPORTED_NODEJS_RUNTIMES = exports.RECOMMENDED_RUNTIMES = exports.DEFAULT_RUNTIME = exports.ALL_SUPPORTED_RUNTIMES = exports.SUPPORTED_RUNTIMES = void 0;
|
|
9467
|
+
exports.formatRuntimeList = formatRuntimeList;
|
|
9467
9468
|
exports.registerFunctionTools = registerFunctionTools;
|
|
9468
9469
|
const zod_1 = __webpack_require__(2971);
|
|
9469
9470
|
const cloudbase_manager_js_1 = __webpack_require__(3431);
|
|
9470
9471
|
const logger_js_1 = __webpack_require__(3039);
|
|
9471
9472
|
const path_1 = __importDefault(__webpack_require__(2521));
|
|
9472
|
-
//
|
|
9473
|
-
exports.
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9473
|
+
// 所有支持的运行时环境(按语言分类)
|
|
9474
|
+
exports.SUPPORTED_RUNTIMES = {
|
|
9475
|
+
nodejs: [
|
|
9476
|
+
"Nodejs20.19",
|
|
9477
|
+
"Nodejs18.15",
|
|
9478
|
+
"Nodejs16.13",
|
|
9479
|
+
"Nodejs14.18",
|
|
9480
|
+
"Nodejs12.16",
|
|
9481
|
+
"Nodejs10.15",
|
|
9482
|
+
"Nodejs8.9",
|
|
9483
|
+
],
|
|
9484
|
+
python: [
|
|
9485
|
+
"Python3.10",
|
|
9486
|
+
"Python3.9",
|
|
9487
|
+
"Python3.7",
|
|
9488
|
+
"Python3.6",
|
|
9489
|
+
"Python2.7",
|
|
9490
|
+
],
|
|
9491
|
+
php: [
|
|
9492
|
+
"Php8.0",
|
|
9493
|
+
"Php7.4",
|
|
9494
|
+
"Php7.2",
|
|
9495
|
+
],
|
|
9496
|
+
java: [
|
|
9497
|
+
"Java8",
|
|
9498
|
+
"Java11",
|
|
9499
|
+
],
|
|
9500
|
+
golang: [
|
|
9501
|
+
"Golang1",
|
|
9502
|
+
],
|
|
9503
|
+
};
|
|
9504
|
+
// 所有支持的运行时(扁平化数组,用于验证)
|
|
9505
|
+
exports.ALL_SUPPORTED_RUNTIMES = Object.values(exports.SUPPORTED_RUNTIMES).flat();
|
|
9506
|
+
// 默认运行时
|
|
9507
|
+
exports.DEFAULT_RUNTIME = "Nodejs18.15";
|
|
9508
|
+
// 推荐运行时(用于文档和提示)
|
|
9509
|
+
exports.RECOMMENDED_RUNTIMES = {
|
|
9510
|
+
nodejs: "Nodejs18.15",
|
|
9511
|
+
python: "Python3.9",
|
|
9512
|
+
php: "Php7.4",
|
|
9513
|
+
java: "Java11",
|
|
9514
|
+
golang: "Golang1",
|
|
9515
|
+
};
|
|
9516
|
+
// 保留向后兼容
|
|
9517
|
+
exports.SUPPORTED_NODEJS_RUNTIMES = exports.SUPPORTED_RUNTIMES.nodejs;
|
|
9518
|
+
exports.DEFAULT_NODEJS_RUNTIME = exports.DEFAULT_RUNTIME;
|
|
9519
|
+
/**
|
|
9520
|
+
* 格式化运行时列表(按语言分类)
|
|
9521
|
+
* 用于错误提示和用户引导
|
|
9522
|
+
*/
|
|
9523
|
+
function formatRuntimeList() {
|
|
9524
|
+
return Object.entries(exports.SUPPORTED_RUNTIMES)
|
|
9525
|
+
.map(([lang, runtimes]) => {
|
|
9526
|
+
const capitalizedLang = lang.charAt(0).toUpperCase() + lang.slice(1);
|
|
9527
|
+
return ` ${capitalizedLang}: ${runtimes.join(', ')}`;
|
|
9528
|
+
})
|
|
9529
|
+
.join('\n');
|
|
9530
|
+
}
|
|
9483
9531
|
// Supported trigger types
|
|
9484
9532
|
exports.SUPPORTED_TRIGGER_TYPES = [
|
|
9485
9533
|
"timer", // Timer trigger
|
|
@@ -9617,7 +9665,11 @@ function registerFunctionTools(server) {
|
|
|
9617
9665
|
// createFunction - 创建云函数 (cloud-incompatible)
|
|
9618
9666
|
server.registerTool("createFunction", {
|
|
9619
9667
|
title: "创建云函数",
|
|
9620
|
-
description: "
|
|
9668
|
+
description: "创建云函数。云函数分为事件型云函数(Event)和 HTTP 云函数。\n\n" +
|
|
9669
|
+
"支持的运行时:\n" +
|
|
9670
|
+
"- Event 函数: Node.js, Python, PHP, Java, Go\n" +
|
|
9671
|
+
"- HTTP 函数: 所有语言(通过 scf_bootstrap 启动脚本)\n\n" +
|
|
9672
|
+
"注意: 运行时创建后不可修改,请谨慎选择。",
|
|
9621
9673
|
inputSchema: {
|
|
9622
9674
|
func: zod_1.z
|
|
9623
9675
|
.object({
|
|
@@ -9660,8 +9712,18 @@ function registerFunctionTools(server) {
|
|
|
9660
9712
|
runtime: zod_1.z
|
|
9661
9713
|
.string()
|
|
9662
9714
|
.optional()
|
|
9663
|
-
.describe("
|
|
9664
|
-
|
|
9715
|
+
.describe("运行时环境。Event 函数支持多种运行时:\n" +
|
|
9716
|
+
formatRuntimeList() + "\n\n" +
|
|
9717
|
+
"推荐运行时:\n" +
|
|
9718
|
+
` Node.js: ${exports.RECOMMENDED_RUNTIMES.nodejs}\n` +
|
|
9719
|
+
` Python: ${exports.RECOMMENDED_RUNTIMES.python}\n` +
|
|
9720
|
+
` PHP: ${exports.RECOMMENDED_RUNTIMES.php}\n` +
|
|
9721
|
+
` Java: ${exports.RECOMMENDED_RUNTIMES.java}\n` +
|
|
9722
|
+
` Go: ${exports.RECOMMENDED_RUNTIMES.golang}\n\n` +
|
|
9723
|
+
"注意:\n" +
|
|
9724
|
+
"- HTTP 函数已支持所有语言(通过 scf_bootstrap 启动脚本)\n" +
|
|
9725
|
+
"- Node.js 函数会自动安装依赖\n" +
|
|
9726
|
+
"- Python/PHP/Java/Go 函数需要预先打包依赖到函数目录"),
|
|
9665
9727
|
triggers: zod_1.z
|
|
9666
9728
|
.array(zod_1.z.object({
|
|
9667
9729
|
name: zod_1.z.string().describe("Trigger name"),
|
|
@@ -9709,12 +9771,14 @@ function registerFunctionTools(server) {
|
|
|
9709
9771
|
if (!isHttpFunction) {
|
|
9710
9772
|
// 自动填充默认 runtime
|
|
9711
9773
|
if (!func.runtime) {
|
|
9712
|
-
func.runtime = exports.
|
|
9774
|
+
func.runtime = exports.DEFAULT_RUNTIME;
|
|
9775
|
+
console.log(`未指定 runtime,使用默认值: ${exports.DEFAULT_RUNTIME}\n` +
|
|
9776
|
+
`可选运行时:\n${formatRuntimeList()}`);
|
|
9713
9777
|
}
|
|
9714
9778
|
else {
|
|
9715
9779
|
// 验证 runtime 格式,防止常见的空格问题
|
|
9716
9780
|
const normalizedRuntime = func.runtime.replace(/\s+/g, "");
|
|
9717
|
-
if (exports.
|
|
9781
|
+
if (exports.ALL_SUPPORTED_RUNTIMES.includes(normalizedRuntime)) {
|
|
9718
9782
|
func.runtime = normalizedRuntime;
|
|
9719
9783
|
}
|
|
9720
9784
|
else if (func.runtime.includes(" ")) {
|
|
@@ -9723,8 +9787,13 @@ function registerFunctionTools(server) {
|
|
|
9723
9787
|
}
|
|
9724
9788
|
}
|
|
9725
9789
|
// 验证 runtime 是否有效
|
|
9726
|
-
if (!exports.
|
|
9727
|
-
throw new Error(`不支持的运行时环境: "${func.runtime}"
|
|
9790
|
+
if (!exports.ALL_SUPPORTED_RUNTIMES.includes(func.runtime)) {
|
|
9791
|
+
throw new Error(`不支持的运行时环境: "${func.runtime}"\n\n` +
|
|
9792
|
+
`支持的运行时:\n${formatRuntimeList()}\n\n` +
|
|
9793
|
+
`提示:\n` +
|
|
9794
|
+
`- Node.js 函数会自动安装依赖\n` +
|
|
9795
|
+
`- Python/PHP/Java/Go 函数需要预先打包依赖到函数目录\n` +
|
|
9796
|
+
`- 详细信息请参考文档: https://docs.cloudbase.net/api-reference/manager/node/function#createfunction`);
|
|
9728
9797
|
}
|
|
9729
9798
|
}
|
|
9730
9799
|
// 强制设置 installDependency 为 true(不暴露给AI)
|
|
@@ -10848,6 +10917,7 @@ const INTEGRATION_IDE_MAPPING = {
|
|
|
10848
10917
|
CodeBuddy: "codebuddy",
|
|
10849
10918
|
CodeBuddyManual: "codebuddy",
|
|
10850
10919
|
CodeBuddyCode: "codebuddy",
|
|
10920
|
+
CodeBuddyPlugin: "codebuddy",
|
|
10851
10921
|
"Claude Code": "claude-code",
|
|
10852
10922
|
CLINE: "cline",
|
|
10853
10923
|
"Gemini CLI": "gemini-cli",
|
|
@@ -11106,7 +11176,7 @@ function registerSetupTools(server) {
|
|
|
11106
11176
|
title: "下载项目模板",
|
|
11107
11177
|
description: `自动下载并部署CloudBase项目模板。⚠️ **MANDATORY FOR NEW PROJECTS** ⚠️
|
|
11108
11178
|
|
|
11109
|
-
**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- 其他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.14.
|
|
11179
|
+
**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- 其他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.14.2" : 0}),便于后续维护和版本追踪\n- 下载 rules 模板时,如果项目中已存在 README.md 文件,系统会自动保护该文件不被覆盖(除非设置 overwrite=true)`,
|
|
11110
11180
|
inputSchema: {
|
|
11111
11181
|
template: zod_1.z
|
|
11112
11182
|
.enum(["react", "vue", "miniprogram", "uniapp", "rules"])
|
|
@@ -12749,10 +12819,10 @@ function registerHostingTools(server) {
|
|
|
12749
12819
|
// uploadFiles - 上传文件到静态网站托管 (cloud-incompatible)
|
|
12750
12820
|
server.registerTool("uploadFiles", {
|
|
12751
12821
|
title: "上传静态文件",
|
|
12752
|
-
description: "
|
|
12822
|
+
description: "上传文件到静态网站托管。部署前请先完成构建;如果站点会部署到子路径,请检查构建配置中的 publicPath、base、assetPrefix 等是否使用相对路径,避免静态资源加载失败。",
|
|
12753
12823
|
inputSchema: {
|
|
12754
|
-
localPath: zod_1.z.string().optional().describe("本地文件或文件夹路径,需要是绝对路径,例如 /tmp/files/data.txt"),
|
|
12755
|
-
cloudPath: zod_1.z.string().optional().describe("云端文件或文件夹路径,例如files/data.txt"),
|
|
12824
|
+
localPath: zod_1.z.string().optional().describe("本地文件或文件夹路径,需要是绝对路径,例如 /tmp/files/data.txt。"),
|
|
12825
|
+
cloudPath: zod_1.z.string().optional().describe("云端文件或文件夹路径,例如 files/data.txt。若部署到子路径,请同时检查构建配置中的 publicPath、base、assetPrefix 等是否为相对路径。"),
|
|
12756
12826
|
files: zod_1.z.array(zod_1.z.object({
|
|
12757
12827
|
localPath: zod_1.z.string(),
|
|
12758
12828
|
cloudPath: zod_1.z.string()
|
|
@@ -14891,7 +14961,7 @@ var __webpack_exports__ = {};
|
|
|
14891
14961
|
var exports = __webpack_exports__;
|
|
14892
14962
|
|
|
14893
14963
|
Object.defineProperty(exports, "BJ", ({ value: true }));
|
|
14894
|
-
exports.pk = exports.ZS = 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;
|
|
14964
|
+
exports.j8 = exports.fO = exports.gk = exports.Yh = exports.JA = exports.xz = exports.RX = exports.pk = exports.ZS = 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;
|
|
14895
14965
|
exports.SJ = getInteractiveServerAsync;
|
|
14896
14966
|
// CloudBase MCP Server Library
|
|
14897
14967
|
var server_js_1 = __webpack_require__(1422);
|
|
@@ -14922,6 +14992,15 @@ var env_js_1 = __webpack_require__(622);
|
|
|
14922
14992
|
Object.defineProperty(exports, "ZS", ({ enumerable: true, get: function () { return env_js_1.simplifyEnvList; } }));
|
|
14923
14993
|
var setup_js_1 = __webpack_require__(6556);
|
|
14924
14994
|
Object.defineProperty(exports, "pk", ({ enumerable: true, get: function () { return setup_js_1.RAW_IDE_FILE_MAPPINGS; } }));
|
|
14995
|
+
// Export runtime constants for multi-language support
|
|
14996
|
+
var functions_js_1 = __webpack_require__(5936);
|
|
14997
|
+
Object.defineProperty(exports, "RX", ({ enumerable: true, get: function () { return functions_js_1.SUPPORTED_RUNTIMES; } }));
|
|
14998
|
+
Object.defineProperty(exports, "xz", ({ enumerable: true, get: function () { return functions_js_1.ALL_SUPPORTED_RUNTIMES; } }));
|
|
14999
|
+
Object.defineProperty(exports, "JA", ({ enumerable: true, get: function () { return functions_js_1.DEFAULT_RUNTIME; } }));
|
|
15000
|
+
Object.defineProperty(exports, "Yh", ({ enumerable: true, get: function () { return functions_js_1.RECOMMENDED_RUNTIMES; } }));
|
|
15001
|
+
Object.defineProperty(exports, "gk", ({ enumerable: true, get: function () { return functions_js_1.formatRuntimeList; } }));
|
|
15002
|
+
Object.defineProperty(exports, "fO", ({ enumerable: true, get: function () { return functions_js_1.SUPPORTED_NODEJS_RUNTIMES; } }));
|
|
15003
|
+
Object.defineProperty(exports, "j8", ({ enumerable: true, get: function () { return functions_js_1.DEFAULT_NODEJS_RUNTIME; } }));
|
|
14925
15004
|
/**
|
|
14926
15005
|
* Get interactive server instance (CommonJS compatible)
|
|
14927
15006
|
*/
|
|
@@ -14934,7 +15013,13 @@ async function getInteractiveServerAsync() {
|
|
|
14934
15013
|
|
|
14935
15014
|
})();
|
|
14936
15015
|
|
|
15016
|
+
const __webpack_exports__ALL_SUPPORTED_RUNTIMES = __webpack_exports__.xz;
|
|
15017
|
+
const __webpack_exports__DEFAULT_NODEJS_RUNTIME = __webpack_exports__.j8;
|
|
15018
|
+
const __webpack_exports__DEFAULT_RUNTIME = __webpack_exports__.JA;
|
|
14937
15019
|
const __webpack_exports__RAW_IDE_FILE_MAPPINGS = __webpack_exports__.pk;
|
|
15020
|
+
const __webpack_exports__RECOMMENDED_RUNTIMES = __webpack_exports__.Yh;
|
|
15021
|
+
const __webpack_exports__SUPPORTED_NODEJS_RUNTIMES = __webpack_exports__.fO;
|
|
15022
|
+
const __webpack_exports__SUPPORTED_RUNTIMES = __webpack_exports__.RX;
|
|
14938
15023
|
const __webpack_exports__StdioServerTransport = __webpack_exports__.S7;
|
|
14939
15024
|
const __webpack_exports___esModule = __webpack_exports__.BJ;
|
|
14940
15025
|
const __webpack_exports__createCloudBaseManagerWithOptions = __webpack_exports__.q8;
|
|
@@ -14942,6 +15027,7 @@ const __webpack_exports__createCloudBaseMcpServer = __webpack_exports__.Gh;
|
|
|
14942
15027
|
const __webpack_exports__enableCloudMode = __webpack_exports__.S;
|
|
14943
15028
|
const __webpack_exports__envManager = __webpack_exports__.vY;
|
|
14944
15029
|
const __webpack_exports__error = __webpack_exports__.z3;
|
|
15030
|
+
const __webpack_exports__formatRuntimeList = __webpack_exports__.gk;
|
|
14945
15031
|
const __webpack_exports__getCloudBaseManager = __webpack_exports__._k;
|
|
14946
15032
|
const __webpack_exports__getCloudModeStatus = __webpack_exports__.$n;
|
|
14947
15033
|
const __webpack_exports__getDefaultServer = __webpack_exports__.dD;
|
|
@@ -14958,4 +15044,4 @@ const __webpack_exports__shouldRegisterTool = __webpack_exports__.T$;
|
|
|
14958
15044
|
const __webpack_exports__simplifyEnvList = __webpack_exports__.ZS;
|
|
14959
15045
|
const __webpack_exports__telemetryReporter = __webpack_exports__.v7;
|
|
14960
15046
|
const __webpack_exports__warn = __webpack_exports__.R8;
|
|
14961
|
-
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__simplifyEnvList as simplifyEnvList, __webpack_exports__telemetryReporter as telemetryReporter, __webpack_exports__warn as warn };
|
|
15047
|
+
export { __webpack_exports__ALL_SUPPORTED_RUNTIMES as ALL_SUPPORTED_RUNTIMES, __webpack_exports__DEFAULT_NODEJS_RUNTIME as DEFAULT_NODEJS_RUNTIME, __webpack_exports__DEFAULT_RUNTIME as DEFAULT_RUNTIME, __webpack_exports__RAW_IDE_FILE_MAPPINGS as RAW_IDE_FILE_MAPPINGS, __webpack_exports__RECOMMENDED_RUNTIMES as RECOMMENDED_RUNTIMES, __webpack_exports__SUPPORTED_NODEJS_RUNTIMES as SUPPORTED_NODEJS_RUNTIMES, __webpack_exports__SUPPORTED_RUNTIMES as SUPPORTED_RUNTIMES, __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__formatRuntimeList as formatRuntimeList, __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__simplifyEnvList as simplifyEnvList, __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.14.
|
|
3
|
+
"version": "2.14.2",
|
|
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",
|