@cloudbase/cloudbase-mcp 2.26.0 → 2.28.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 +8 -1
- package/README.zh-CN.md +2 -1
- package/dist/341.index.js +6 -1
- package/dist/602.index.cjs +6 -1
- package/dist/cli.cjs +5 -5
- package/dist/index.cjs +2247 -610
- package/dist/index.d.ts +8 -1
- package/dist/index.js +2318 -665
- package/package.json +4 -2
- package/server.json +60 -0
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ declare type CloudBaseConfigBase = NonNullable<ConstructorParameters<typeof Clou
|
|
|
33
33
|
|
|
34
34
|
export declare type CloudBaseOptions = CloudBaseConfigBase & {
|
|
35
35
|
requestFn?: CloudApiRequestFn;
|
|
36
|
+
/** 站点:domestic(国内站)/ intl(国际站)。可选;缺省按 TCB_SITE / region 映射表 / 项目配置解析 */
|
|
37
|
+
site?: string;
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
/**
|
|
@@ -151,6 +153,7 @@ export declare interface EnsureLoginOptions extends AuthOptions {
|
|
|
151
153
|
fromCloudBaseLoginPage?: boolean;
|
|
152
154
|
ignoreEnvVars?: boolean;
|
|
153
155
|
region?: string;
|
|
156
|
+
site?: string;
|
|
154
157
|
serverAuthOptions?: AuthOptions;
|
|
155
158
|
onDeviceCode?: (info: DeviceFlowAuthInfo) => void;
|
|
156
159
|
}
|
|
@@ -304,6 +307,8 @@ declare class InteractiveServer {
|
|
|
304
307
|
stop(): Promise<void>;
|
|
305
308
|
collectEnvId(availableEnvs: any[], accountInfo?: {
|
|
306
309
|
uin?: string;
|
|
310
|
+
region?: string;
|
|
311
|
+
site?: string;
|
|
307
312
|
}, errorContext?: any, // EnvSetupContext
|
|
308
313
|
manager?: any, // CloudBase manager instance for refreshing env list
|
|
309
314
|
mcpServer?: any): Promise<InteractiveResult>;
|
|
@@ -353,7 +358,9 @@ declare interface LoginState {
|
|
|
353
358
|
envId?: string;
|
|
354
359
|
}
|
|
355
360
|
|
|
356
|
-
export declare function logout(
|
|
361
|
+
export declare function logout(options?: {
|
|
362
|
+
site?: string;
|
|
363
|
+
}): Promise<void>;
|
|
357
364
|
|
|
358
365
|
/** MCP initialize clientInfo fields available after handshake via Server.getClientVersion(). */
|
|
359
366
|
declare type McpClientInfo = {
|