@mcp-use/cli 2.2.1 → 2.2.2-canary.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 CHANGED
@@ -117,6 +117,43 @@ mcp-use start [options]
117
117
  - `-p, --path <path>` - Project directory (default: current directory)
118
118
  - `--port <port>` - Server port (default: 3000)
119
119
 
120
+ ### Cloud Deployment
121
+
122
+ Deploy your MCP server to mcp-use cloud:
123
+
124
+ ```bash
125
+ # Login to mcp-use cloud
126
+ mcp-use login
127
+
128
+ # Check authentication status
129
+ mcp-use whoami
130
+
131
+ # Deploy your MCP server
132
+ mcp-use deploy [options]
133
+
134
+ # Logout
135
+ mcp-use logout
136
+ ```
137
+
138
+ **Deploy Options:**
139
+
140
+ - `--name <name>` - Custom deployment name
141
+ - `--port <port>` - Server port (default: 3000)
142
+ - `--runtime <runtime>` - Runtime environment: "node" or "python"
143
+ - `--open` - Open deployment in browser after success
144
+
145
+ **Example:**
146
+
147
+ ```bash
148
+ # Basic deployment
149
+ mcp-use deploy
150
+
151
+ # Deploy with custom options
152
+ mcp-use deploy --name my-server --port 8000 --open
153
+ ```
154
+
155
+ See [ENVIRONMENT.md](./ENVIRONMENT.md) for configuration options.
156
+
120
157
  ---
121
158
 
122
159
  ## 💡 Examples
@@ -321,14 +358,39 @@ Add these scripts for convenience:
321
358
 
322
359
  ### Environment Variables
323
360
 
361
+ #### Development & Build
362
+
324
363
  ```bash
325
364
  # Custom port via environment variable
326
365
  PORT=8080 mcp-use dev
327
366
 
328
367
  # Production build with custom output
329
368
  BUILD_DIR=./build mcp-use build
369
+
370
+ # Custom MCP URL for widget asset paths
371
+ MCP_URL=https://myserver.com mcp-use build
330
372
  ```
331
373
 
374
+ #### Deployment & Cloud
375
+
376
+ For deploying to mcp-use cloud, see [ENVIRONMENT.md](./ENVIRONMENT.md) for detailed configuration:
377
+
378
+ ```bash
379
+ # Frontend URL (where /auth/cli page is)
380
+ MCP_WEB_URL=https://mcp-use.com
381
+
382
+ # Backend API URL (where /api/v1 endpoints are)
383
+ MCP_API_URL=https://cloud.mcp-use.com
384
+
385
+ # Example: Local development
386
+ export MCP_WEB_URL=http://localhost:3000
387
+ export MCP_API_URL=http://localhost:8000
388
+ mcp-use login
389
+ mcp-use deploy
390
+ ```
391
+
392
+ See [ENVIRONMENT.md](./ENVIRONMENT.md) for more examples and configuration options.
393
+
332
394
  ### Docker Deployment
333
395
 
334
396
  ```dockerfile
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Login command - opens browser for OAuth flow
3
+ */
4
+ export declare function loginCommand(): Promise<void>;
5
+ /**
6
+ * Logout command - revokes API key and deletes config
7
+ */
8
+ export declare function logoutCommand(): Promise<void>;
9
+ /**
10
+ * Whoami command - shows current user info
11
+ */
12
+ export declare function whoamiCommand(): Promise<void>;
13
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AA2PA;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CA2FlD;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CA8BnD;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAiCnD"}
@@ -0,0 +1,13 @@
1
+ interface DeployOptions {
2
+ open?: boolean;
3
+ name?: string;
4
+ port?: number;
5
+ runtime?: "node" | "python";
6
+ fromSource?: boolean;
7
+ }
8
+ /**
9
+ * Deploy command - deploys MCP server to mcp-use cloud
10
+ */
11
+ export declare function deployCommand(options: DeployOptions): Promise<void>;
12
+ export {};
13
+ //# sourceMappingURL=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAcA,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AA2YD;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CA0PzE"}