@mcp-use/cli 2.21.5-canary.2 → 3.0.0-canary.4
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/commands/auth.d.ts +4 -4
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/deploy.d.ts +0 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deployments.d.ts +0 -3
- package/dist/commands/deployments.d.ts.map +1 -1
- package/dist/commands/org.d.ts.map +1 -1
- package/dist/index.cjs +582 -1053
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +582 -1055
- package/dist/index.js.map +1 -1
- package/dist/utils/api.d.ts +67 -155
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/config.d.ts +17 -5
- package/dist/utils/config.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/utils/api.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
name: string;
|
|
3
|
-
}
|
|
4
|
-
export interface APIKeyCreateResponse {
|
|
5
|
-
api_key: string;
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ProfileInfo {
|
|
1
|
+
export interface OrgInfo {
|
|
9
2
|
id: string;
|
|
10
|
-
|
|
3
|
+
name: string;
|
|
11
4
|
slug: string | null;
|
|
12
5
|
role: string;
|
|
13
6
|
}
|
|
@@ -15,85 +8,73 @@ export interface AuthTestResponse {
|
|
|
15
8
|
message: string;
|
|
16
9
|
user_id: string;
|
|
17
10
|
email: string;
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
orgs: OrgInfo[];
|
|
12
|
+
default_org_id: string | null;
|
|
20
13
|
}
|
|
21
|
-
export interface
|
|
14
|
+
export interface CreateServerBody {
|
|
22
15
|
type: "github";
|
|
23
|
-
|
|
16
|
+
organizationId: string;
|
|
17
|
+
installationId: string;
|
|
18
|
+
name: string;
|
|
19
|
+
repoFullName: string;
|
|
24
20
|
branch?: string;
|
|
25
21
|
rootDir?: string;
|
|
26
|
-
startCommand?: string;
|
|
27
|
-
runtime?: "node" | "python";
|
|
28
22
|
port?: number;
|
|
29
|
-
env?: Record<string, string>;
|
|
30
23
|
buildCommand?: string;
|
|
31
|
-
baseImage?: string;
|
|
32
|
-
githubCheckRunId?: number;
|
|
33
|
-
}
|
|
34
|
-
export interface UploadSource {
|
|
35
|
-
type: "upload";
|
|
36
24
|
startCommand?: string;
|
|
37
|
-
runtime?: "node" | "python";
|
|
38
|
-
port?: number;
|
|
39
25
|
env?: Record<string, string>;
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
description?: string;
|
|
27
|
+
tags?: string[];
|
|
28
|
+
region?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CreateServerResponse {
|
|
31
|
+
server: {
|
|
32
|
+
id: string;
|
|
33
|
+
slug: string | null;
|
|
34
|
+
};
|
|
35
|
+
deploymentId: string | null;
|
|
42
36
|
}
|
|
43
|
-
export
|
|
44
|
-
|
|
45
|
-
name
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
export interface CreateDeploymentInput {
|
|
38
|
+
serverId: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
branch?: string;
|
|
41
|
+
commitSha?: string;
|
|
42
|
+
commitMessage?: string;
|
|
43
|
+
trigger?: "manual" | "webhook" | "redeploy" | "rollback";
|
|
44
|
+
prNumber?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface CreateDeploymentResponse {
|
|
47
|
+
id: string;
|
|
50
48
|
}
|
|
51
49
|
export interface Deployment {
|
|
52
50
|
id: string;
|
|
53
51
|
userId: string;
|
|
54
52
|
name: string;
|
|
55
|
-
source:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
source: unknown;
|
|
54
|
+
status: "pending" | "building" | "running" | "stopped" | "failed";
|
|
55
|
+
port: number | null;
|
|
56
|
+
healthCheckPath: string | null;
|
|
57
|
+
provider: string;
|
|
58
|
+
appName: string;
|
|
59
|
+
error: string | null;
|
|
60
|
+
gitCommitSha: string | null;
|
|
61
|
+
gitBranch: string | null;
|
|
62
|
+
gitCommitMessage: string | null;
|
|
63
|
+
isProductionDeployment: boolean | null;
|
|
64
|
+
deploymentTrigger: string | null;
|
|
65
|
+
serverId: string | null;
|
|
59
66
|
createdAt: string;
|
|
60
67
|
updatedAt: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
error?: string;
|
|
66
|
-
buildLogs?: string;
|
|
67
|
-
buildStartedAt?: string;
|
|
68
|
-
buildCompletedAt?: string;
|
|
69
|
-
gitCommitSha?: string;
|
|
70
|
-
gitBranch?: string;
|
|
71
|
-
gitCommitMessage?: string;
|
|
72
|
-
serverId?: string;
|
|
73
|
-
serverSlug?: string;
|
|
68
|
+
buildStartedAt: string | null;
|
|
69
|
+
buildCompletedAt: string | null;
|
|
70
|
+
archivedAt: string | null;
|
|
71
|
+
mcpUrl?: string;
|
|
74
72
|
}
|
|
75
|
-
export interface
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
status
|
|
80
|
-
}
|
|
81
|
-
export interface RedeploymentConfig {
|
|
82
|
-
buildCommand?: string;
|
|
83
|
-
startCommand?: string;
|
|
84
|
-
port?: number;
|
|
85
|
-
env?: Record<string, string>;
|
|
86
|
-
rootDir?: string;
|
|
87
|
-
}
|
|
88
|
-
export interface DeploymentListResponse {
|
|
89
|
-
deployments: Deployment[];
|
|
90
|
-
total: number;
|
|
91
|
-
}
|
|
92
|
-
export interface LogsResponse {
|
|
93
|
-
success: boolean;
|
|
94
|
-
data: {
|
|
95
|
-
logs: string;
|
|
96
|
-
};
|
|
73
|
+
export interface BuildLogsResponse {
|
|
74
|
+
logs: string;
|
|
75
|
+
offset: number;
|
|
76
|
+
totalLength: number;
|
|
77
|
+
status: string;
|
|
97
78
|
}
|
|
98
79
|
export interface GitHubInstallation {
|
|
99
80
|
id: string;
|
|
@@ -103,9 +84,6 @@ export interface GitHubConnectionStatus {
|
|
|
103
84
|
is_connected: boolean;
|
|
104
85
|
installations?: GitHubInstallation[];
|
|
105
86
|
}
|
|
106
|
-
export interface GitHubAppNameResponse {
|
|
107
|
-
app_name: string;
|
|
108
|
-
}
|
|
109
87
|
export interface GitHubRepo {
|
|
110
88
|
id: number;
|
|
111
89
|
name: string;
|
|
@@ -114,12 +92,6 @@ export interface GitHubRepo {
|
|
|
114
92
|
owner: {
|
|
115
93
|
login: string;
|
|
116
94
|
};
|
|
117
|
-
branches?: Array<{
|
|
118
|
-
name: string;
|
|
119
|
-
commit: {
|
|
120
|
-
sha: string;
|
|
121
|
-
};
|
|
122
|
-
}>;
|
|
123
95
|
}
|
|
124
96
|
export interface GitHubReposResponse {
|
|
125
97
|
user: {
|
|
@@ -129,93 +101,33 @@ export interface GitHubReposResponse {
|
|
|
129
101
|
};
|
|
130
102
|
repos: GitHubRepo[];
|
|
131
103
|
}
|
|
132
|
-
/**
|
|
133
|
-
* API client for Manufact cloud
|
|
134
|
-
*/
|
|
135
104
|
export declare class McpUseAPI {
|
|
136
105
|
private baseUrl;
|
|
137
106
|
private apiKey;
|
|
138
|
-
private
|
|
139
|
-
constructor(baseUrl?: string, apiKey?: string,
|
|
140
|
-
/**
|
|
141
|
-
* Initialize API client with config
|
|
142
|
-
*/
|
|
107
|
+
private orgId;
|
|
108
|
+
constructor(baseUrl?: string, apiKey?: string, orgId?: string);
|
|
143
109
|
static create(): Promise<McpUseAPI>;
|
|
144
|
-
|
|
145
|
-
* Override the profile ID for this API client instance (e.g. from --org flag)
|
|
146
|
-
*/
|
|
147
|
-
setProfileId(profileId: string): void;
|
|
148
|
-
/**
|
|
149
|
-
* Make authenticated request
|
|
150
|
-
*/
|
|
110
|
+
setOrgId(orgId: string): void;
|
|
151
111
|
private request;
|
|
152
112
|
/**
|
|
153
|
-
* Create API key using
|
|
154
|
-
*/
|
|
155
|
-
createApiKey(jwtToken: string, name?: string): Promise<APIKeyCreateResponse>;
|
|
156
|
-
/**
|
|
157
|
-
* Test authentication
|
|
113
|
+
* Create a persistent API key using a Better Auth access token.
|
|
158
114
|
*/
|
|
115
|
+
createApiKeyWithAccessToken(accessToken: string, name?: string): Promise<{
|
|
116
|
+
key: string;
|
|
117
|
+
}>;
|
|
159
118
|
testAuth(): Promise<AuthTestResponse>;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Create deployment
|
|
166
|
-
*/
|
|
167
|
-
createDeployment(request: CreateDeploymentRequest): Promise<Deployment>;
|
|
168
|
-
/**
|
|
169
|
-
* Get deployment by ID
|
|
170
|
-
*/
|
|
119
|
+
setDefaultOrg(orgId: string): Promise<void>;
|
|
120
|
+
private resolveOrganizationId;
|
|
121
|
+
createServer(body: CreateServerBody): Promise<CreateServerResponse>;
|
|
122
|
+
createDeployment(input: CreateDeploymentInput): Promise<CreateDeploymentResponse>;
|
|
171
123
|
getDeployment(deploymentId: string): Promise<Deployment>;
|
|
172
|
-
/**
|
|
173
|
-
* Stream deployment logs
|
|
174
|
-
*/
|
|
175
|
-
streamDeploymentLogs(deploymentId: string): AsyncGenerator<string, void, unknown>;
|
|
176
|
-
/**
|
|
177
|
-
* Create deployment with source code upload
|
|
178
|
-
*/
|
|
179
|
-
createDeploymentWithUpload(request: CreateDeploymentRequest, filePath: string): Promise<Deployment>;
|
|
180
|
-
/**
|
|
181
|
-
* List all deployments
|
|
182
|
-
*/
|
|
183
124
|
listDeployments(): Promise<Deployment[]>;
|
|
184
|
-
/**
|
|
185
|
-
* Delete deployment
|
|
186
|
-
*/
|
|
187
125
|
deleteDeployment(deploymentId: string): Promise<void>;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
updateDeployment(deploymentId: string, updates: UpdateDeploymentRequest): Promise<Deployment>;
|
|
192
|
-
/**
|
|
193
|
-
* Redeploy deployment
|
|
194
|
-
*
|
|
195
|
-
* @param deploymentId - The deployment ID to redeploy
|
|
196
|
-
* @param configOrFilePath - Either a RedeploymentConfig object with updated settings,
|
|
197
|
-
* or a file path string for source code upload
|
|
198
|
-
*/
|
|
199
|
-
redeployDeployment(deploymentId: string, configOrFilePath?: RedeploymentConfig | string): Promise<Deployment>;
|
|
200
|
-
/**
|
|
201
|
-
* Get deployment logs
|
|
202
|
-
*/
|
|
203
|
-
getDeploymentLogs(deploymentId: string): Promise<string>;
|
|
204
|
-
/**
|
|
205
|
-
* Get deployment build logs
|
|
206
|
-
*/
|
|
207
|
-
getDeploymentBuildLogs(deploymentId: string): Promise<string>;
|
|
208
|
-
/**
|
|
209
|
-
* Get GitHub connection status
|
|
210
|
-
*/
|
|
126
|
+
stopDeployment(deploymentId: string): Promise<void>;
|
|
127
|
+
getDeploymentLogs(deploymentId: string, lines?: number): Promise<string>;
|
|
128
|
+
getDeploymentBuildLogs(deploymentId: string, offset?: number): Promise<BuildLogsResponse>;
|
|
211
129
|
getGitHubConnectionStatus(): Promise<GitHubConnectionStatus>;
|
|
212
|
-
|
|
213
|
-
* Get GitHub app name
|
|
214
|
-
*/
|
|
130
|
+
getGitHubRepos(_refresh?: boolean): Promise<GitHubReposResponse>;
|
|
215
131
|
getGitHubAppName(): Promise<string>;
|
|
216
|
-
/**
|
|
217
|
-
* Get accessible GitHub repositories
|
|
218
|
-
*/
|
|
219
|
-
getGitHubRepos(refresh?: boolean): Promise<GitHubReposResponse>;
|
|
220
132
|
}
|
|
221
133
|
//# sourceMappingURL=api.d.ts.map
|
package/dist/utils/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,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K,EAAE,qBAAqB,GAC3B,OAAO,CAAC,wBAAwB,CAAC;IAO9B,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAIxD,eAAe,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAIxC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMrD,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMnD,iBAAiB,CACrB,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,MAAY,GAClB,OAAO,CAAC,MAAM,CAAC;IAQZ,sBAAsB,CAC1B,YAAY,EAAE,MAAM,EACpB,MAAM,GAAE,MAAU,GACjB,OAAO,CAAC,iBAAiB,CAAC;IASvB,yBAAyB,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAsB5D,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA6ChE,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;CAI1C"}
|
package/dist/utils/config.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
export interface McpConfig {
|
|
2
2
|
apiKey?: string;
|
|
3
3
|
apiUrl?: string;
|
|
4
|
+
orgId?: string;
|
|
5
|
+
orgName?: string;
|
|
6
|
+
orgSlug?: string;
|
|
7
|
+
/** @deprecated Use orgId. Read for backward compat with old config files. */
|
|
4
8
|
profileId?: string;
|
|
9
|
+
/** @deprecated Use orgName. */
|
|
5
10
|
profileName?: string;
|
|
11
|
+
/** @deprecated Use orgSlug. */
|
|
6
12
|
profileSlug?: string;
|
|
7
13
|
}
|
|
8
14
|
/**
|
|
9
|
-
* Read config from disk
|
|
15
|
+
* Read config from disk, migrating legacy `profile*` keys to `org*`.
|
|
10
16
|
*/
|
|
11
17
|
export declare function readConfig(): Promise<McpConfig>;
|
|
12
18
|
/**
|
|
13
|
-
* Write config to disk
|
|
19
|
+
* Write config to disk. Persists only the new `org*` keys and removes legacy `profile*` keys.
|
|
14
20
|
*/
|
|
15
21
|
export declare function writeConfig(config: McpConfig): Promise<void>;
|
|
16
22
|
/**
|
|
@@ -30,12 +36,18 @@ export declare function getApiKey(): Promise<string | null>;
|
|
|
30
36
|
*/
|
|
31
37
|
export declare function isLoggedIn(): Promise<boolean>;
|
|
32
38
|
/**
|
|
33
|
-
* Get the stored
|
|
39
|
+
* Get the stored organization ID from config
|
|
34
40
|
*/
|
|
35
|
-
export declare function
|
|
41
|
+
export declare function getOrgId(): Promise<string | null>;
|
|
36
42
|
/**
|
|
37
43
|
* Get web URL (for browser-based auth)
|
|
38
|
-
* This is the frontend URL where /
|
|
44
|
+
* This is the frontend URL where /device verification page lives
|
|
39
45
|
*/
|
|
40
46
|
export declare function getWebUrl(): Promise<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Derive the auth base URL from the API URL.
|
|
49
|
+
* Better Auth endpoints live at /api/auth/*, not under /api/v1/.
|
|
50
|
+
* e.g. "http://localhost:8000/api/v1" -> "http://localhost:8000"
|
|
51
|
+
*/
|
|
52
|
+
export declare function getAuthBaseUrl(): Promise<string>;
|
|
41
53
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA0BD;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA0BD;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,SAAS,CAAC,CAarD;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAIlE;AAED;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAMlD;AAED;;GAEG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAGjD;AAED;;GAEG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAGxD;AAED;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAGnD;AAED;;GAEG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAGvD;AAED;;;GAGG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAEjD;AAED;;;;GAIG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAGtD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0-canary.4",
|
|
5
5
|
"description": "The mcp-use CLI is a tool for building and deploying MCP servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"vite-plugin-singlefile": "^2.3.2",
|
|
57
57
|
"ws": "^8.19.0",
|
|
58
58
|
"zod": "4.3.5",
|
|
59
|
-
"@mcp-use/inspector": "2.0.0-canary.
|
|
60
|
-
"mcp-use": "1.24.0-canary.
|
|
59
|
+
"@mcp-use/inspector": "2.0.0-canary.4",
|
|
60
|
+
"mcp-use": "1.24.0-canary.4"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/ws": "^8.18.1",
|