@cloudbase/cloudbase-mcp 2.15.2-beta.3 → 2.15.3
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 +1 -1
- package/dist/341.index.js +4273 -0
- package/dist/508.index.cjs +25773 -0
- package/dist/602.index.cjs +4295 -0
- package/dist/cli.cjs +3 -3
- package/dist/index.cjs +633 -30911
- package/dist/index.d.ts +15 -12
- package/dist/index.js +1082 -5635
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,14 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
|
|
|
5
5
|
|
|
6
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
7
|
|
|
8
|
-
declare type AuthFlowMode = "web" | "device";
|
|
8
|
+
export declare type AuthFlowMode = "web" | "device";
|
|
9
|
+
|
|
10
|
+
export declare interface AuthOptions {
|
|
11
|
+
authMode?: AuthFlowMode;
|
|
12
|
+
clientId?: string;
|
|
13
|
+
oauthEndpoint?: string;
|
|
14
|
+
oauthCustom?: boolean;
|
|
15
|
+
}
|
|
9
16
|
|
|
10
17
|
export declare type CloudBaseOptions = NonNullable<ConstructorParameters<typeof CloudBase>[0]>;
|
|
11
18
|
|
|
@@ -41,6 +48,7 @@ export declare function createCloudBaseMcpServer(options?: {
|
|
|
41
48
|
version?: string;
|
|
42
49
|
enableTelemetry?: boolean;
|
|
43
50
|
cloudBaseOptions?: CloudBaseOptions;
|
|
51
|
+
authOptions?: AuthOptions;
|
|
44
52
|
cloudMode?: boolean;
|
|
45
53
|
ide?: string;
|
|
46
54
|
logger?: Logger;
|
|
@@ -93,7 +101,7 @@ export declare interface DeleteFileParams {
|
|
|
93
101
|
cloudPath: string;
|
|
94
102
|
}
|
|
95
103
|
|
|
96
|
-
declare interface DeviceFlowAuthInfo {
|
|
104
|
+
export declare interface DeviceFlowAuthInfo {
|
|
97
105
|
user_code: string;
|
|
98
106
|
verification_uri?: string;
|
|
99
107
|
device_code: string;
|
|
@@ -105,19 +113,13 @@ declare interface DeviceFlowAuthInfo {
|
|
|
105
113
|
*/
|
|
106
114
|
export declare function enableCloudMode(): void;
|
|
107
115
|
|
|
108
|
-
declare
|
|
116
|
+
export declare interface EnsureLoginOptions extends AuthOptions {
|
|
109
117
|
fromCloudBaseLoginPage?: boolean;
|
|
110
118
|
ignoreEnvVars?: boolean;
|
|
111
119
|
region?: string;
|
|
112
|
-
|
|
113
|
-
clientId?: string;
|
|
120
|
+
serverAuthOptions?: AuthOptions;
|
|
114
121
|
onDeviceCode?: (info: DeviceFlowAuthInfo) => void;
|
|
115
|
-
}
|
|
116
|
-
secretId: string;
|
|
117
|
-
secretKey: string;
|
|
118
|
-
token: string | undefined;
|
|
119
|
-
envId: string | undefined;
|
|
120
|
-
} | Credential_2>;
|
|
122
|
+
}
|
|
121
123
|
|
|
122
124
|
declare class EnvironmentManager {
|
|
123
125
|
private cachedEnvId;
|
|
@@ -136,6 +138,7 @@ export declare const error: (message: string, data?: object | Error) => void;
|
|
|
136
138
|
|
|
137
139
|
export declare interface ExtendedMcpServer extends McpServer {
|
|
138
140
|
cloudBaseOptions?: CloudBaseOptions;
|
|
141
|
+
authOptions?: AuthOptions;
|
|
139
142
|
ide?: string;
|
|
140
143
|
logger?: Logger;
|
|
141
144
|
setLogger(logger: Logger): void;
|
|
@@ -172,7 +175,7 @@ export declare interface GetFileInfoParams {
|
|
|
172
175
|
*/
|
|
173
176
|
export declare function getInteractiveServerAsync(): Promise<InteractiveServer>;
|
|
174
177
|
|
|
175
|
-
export declare function getLoginState(options?:
|
|
178
|
+
export declare function getLoginState(options?: EnsureLoginOptions): Promise<{
|
|
176
179
|
secretId: string;
|
|
177
180
|
secretKey: string;
|
|
178
181
|
token: string | undefined;
|