@cloudbase/cloudbase-mcp 2.14.0 → 2.15.2-beta.1
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 +2 -1
- package/dist/cli.cjs +3 -3
- package/dist/index.cjs +3144 -1226
- package/dist/index.d.ts +26 -0
- package/dist/index.js +3261 -1337
- package/package.json +2 -2
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,8 @@ export declare interface ExtendedMcpServer extends McpServer {
|
|
|
135
141
|
setLogger(logger: Logger): void;
|
|
136
142
|
}
|
|
137
143
|
|
|
144
|
+
export declare function formatRuntimeList(): string;
|
|
145
|
+
|
|
138
146
|
/**
|
|
139
147
|
* 每次都实时获取最新的 token/secretId/secretKey
|
|
140
148
|
*/
|
|
@@ -265,6 +273,14 @@ export { McpServer }
|
|
|
265
273
|
|
|
266
274
|
export declare const RAW_IDE_FILE_MAPPINGS: Record<string, IdeFileDescriptor[]>;
|
|
267
275
|
|
|
276
|
+
export declare const RECOMMENDED_RUNTIMES: {
|
|
277
|
+
readonly nodejs: "Nodejs18.15";
|
|
278
|
+
readonly python: "Python3.9";
|
|
279
|
+
readonly php: "Php7.4";
|
|
280
|
+
readonly java: "Java11";
|
|
281
|
+
readonly golang: "Golang1";
|
|
282
|
+
};
|
|
283
|
+
|
|
268
284
|
export declare const reportToolCall: (params: {
|
|
269
285
|
toolName: string;
|
|
270
286
|
success: boolean;
|
|
@@ -304,6 +320,16 @@ export declare function simplifyEnvList(envList: any[]): any[];
|
|
|
304
320
|
|
|
305
321
|
export { StdioServerTransport }
|
|
306
322
|
|
|
323
|
+
export declare const SUPPORTED_NODEJS_RUNTIMES: readonly ["Nodejs20.19", "Nodejs18.15", "Nodejs16.13", "Nodejs14.18", "Nodejs12.16", "Nodejs10.15", "Nodejs8.9"];
|
|
324
|
+
|
|
325
|
+
export declare const SUPPORTED_RUNTIMES: {
|
|
326
|
+
readonly nodejs: readonly ["Nodejs20.19", "Nodejs18.15", "Nodejs16.13", "Nodejs14.18", "Nodejs12.16", "Nodejs10.15", "Nodejs8.9"];
|
|
327
|
+
readonly python: readonly ["Python3.10", "Python3.9", "Python3.7", "Python3.6", "Python2.7"];
|
|
328
|
+
readonly php: readonly ["Php8.0", "Php7.4", "Php7.2"];
|
|
329
|
+
readonly java: readonly ["Java8", "Java11"];
|
|
330
|
+
readonly golang: readonly ["Golang1"];
|
|
331
|
+
};
|
|
332
|
+
|
|
307
333
|
/**
|
|
308
334
|
* 数据上报类
|
|
309
335
|
* 用于收集 MCP 工具使用情况和错误信息,帮助改进产品
|