@mcp-use/cli 4.0.0-beta.2 → 4.0.0-beta.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.
Files changed (2) hide show
  1. package/dist/bin.js +1 -1
  2. package/package.json +8 -7
package/dist/bin.js CHANGED
@@ -34,4 +34,4 @@ Options:
34
34
  -h, --help Show this help
35
35
  -v, --version Print the version`;async function u(t){if(t.length===1&&["--version","-v"].includes(t[0]??""))return console.log(s()),0;if(t.some(e=>e==="--help"||e==="-h")){let e=t[0];if(e===void 0||e==="--help"||e==="-h")return console.log(r),0}let n=t[0];if(n==="login"||n==="logout"||n==="whoami"){let{runIdentity:e}=await import("./commands/identity.js");return e(n,t.slice(1))}if(n==="org"){let{runOrganizations:e}=await import("./commands/organizations.js");return e(t.slice(1))}if(n==="servers"){let{runServers:e}=await import("./commands/servers.js");return e(t.slice(1))}if(n==="deployments"){let{runDeployments:e}=await import("./commands/deployments.js");return e(t.slice(1))}if(n==="deploy"){let{runDeploy:e}=await import("./commands/deploy.js");return e(t.slice(1))}if(n==="client"){let{runClient:e}=await import("./commands/client.js");return e(t.slice(1))}if(n==="skills"){let{runSkills:e}=await import("./commands/skills.js");return e(t.slice(1))}if(n==="screenshot"){let{runScreenshot:e}=await import("./commands/screenshot.js");return e(t.slice(1))}let o;try{o=i(t)}catch(e){return console.error(e instanceof Error?e.message:String(e)),2}if(o.version)return console.log(s()),0;if(o.help)return console.log(r),0;switch(o.command){case"start":return a(o);case"dev":case"build":return d(o.command,o);case void 0:return console.error(r),2;default:return console.error(`Unknown command: ${o.command}
36
36
 
37
- ${r}`),2}}async function a(t){let n;try{let{runStart:e}=await import("./commands/start.js");n=await e({cwd:c(process.cwd(),t.path??"."),port:t.port,host:t.host,...t.withInspector&&{withInspector:!0}})}catch(e){return console.error(e instanceof Error?e.message:String(e)),1}console.log(`mcp-use server running at ${n.url}`);let o=()=>{n.close().then(()=>process.exit(0),e=>{console.error(e instanceof Error?e.message:String(e)),process.exit(1)})};return process.once("SIGINT",o),process.once("SIGTERM",o),0}async function d(t,n){let o={cwd:c(process.cwd(),n.path??"."),...n.entry!==void 0&&{entry:n.entry},...n.mcpDir!==void 0&&{mcpDir:n.mcpDir},...n.viewsDir!==void 0&&{viewsDir:n.viewsDir},...n.port!==void 0&&{port:n.port},...n.host!==void 0&&{host:n.host},...n.tunnel&&{tunnel:!0},...!n.open&&{open:!1},...!n.inspector&&{inspector:!1},...n.sourceMaps&&{sourceMaps:!0},...n.inline&&{inline:!0}};try{if(t==="dev"){let{runDev:e}=await import("./commands/dev.js");await e(o)}else{let{runBuild:e}=await import("./commands/build.js");await e(o)}return 0}catch(e){return console.error(e instanceof Error?e.message:String(e)),1}}function s(){return"2.0.0-beta.25"}u(process.argv.slice(2)).then(t=>{process.exitCode=t},t=>{console.error(t instanceof Error?t.message:String(t)),process.exitCode=1});
37
+ ${r}`),2}}async function a(t){let n;try{let{runStart:e}=await import("./commands/start.js");n=await e({cwd:c(process.cwd(),t.path??"."),port:t.port,host:t.host,...t.withInspector&&{withInspector:!0}})}catch(e){return console.error(e instanceof Error?e.message:String(e)),1}console.log(`mcp-use server running at ${n.url}`);let o=()=>{n.close().then(()=>process.exit(0),e=>{console.error(e instanceof Error?e.message:String(e)),process.exit(1)})};return process.once("SIGINT",o),process.once("SIGTERM",o),0}async function d(t,n){let o={cwd:c(process.cwd(),n.path??"."),...n.entry!==void 0&&{entry:n.entry},...n.mcpDir!==void 0&&{mcpDir:n.mcpDir},...n.viewsDir!==void 0&&{viewsDir:n.viewsDir},...n.port!==void 0&&{port:n.port},...n.host!==void 0&&{host:n.host},...n.tunnel&&{tunnel:!0},...!n.open&&{open:!1},...!n.inspector&&{inspector:!1},...n.sourceMaps&&{sourceMaps:!0},...n.inline&&{inline:!0}};try{if(t==="dev"){let{runDev:e}=await import("./commands/dev.js");await e(o)}else{let{runBuild:e}=await import("./commands/build.js");await e(o)}return 0}catch(e){return console.error(e instanceof Error?e.message:String(e)),1}}function s(){return"2.0.0-beta.27"}u(process.argv.slice(2)).then(t=>{process.exitCode=t},t=>{console.error(t instanceof Error?t.message:String(t)),process.exitCode=1});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mcp-use/cli",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.2",
4
+ "version": "4.0.0-beta.4",
5
5
  "description": "Prebuilt CLI, development server, and build pipeline for mcp-use",
6
6
  "author": "mcp-use, Inc.",
7
7
  "license": "MIT",
@@ -35,7 +35,12 @@
35
35
  "engines": {
36
36
  "node": ">=22.22.2"
37
37
  },
38
- "dependencies": {},
38
+ "dependencies": {
39
+ "@tailwindcss/vite": "^4.2.0",
40
+ "@vitejs/plugin-react": "^6.0.3",
41
+ "tailwindcss": "^4.2.0",
42
+ "vite": "^8.0.16"
43
+ },
39
44
  "peerDependencies": {
40
45
  "@mcp-use/client": "^2.0.0-alpha.0",
41
46
  "@mcp-use/inspector": "^20.0.0-beta.0"
@@ -50,13 +55,9 @@
50
55
  },
51
56
  "devDependencies": {
52
57
  "@modelcontextprotocol/server": "https://pkg.pr.new/@modelcontextprotocol/server@f60b40179b0f090f6d64248be1312245a160b5ee",
53
- "@tailwindcss/vite": "^4.2.0",
54
- "@vitejs/plugin-react": "^6.0.3",
55
58
  "rimraf": "^6.1.3",
56
- "tailwindcss": "^4.2.0",
57
59
  "tsup": "^8.5.1",
58
- "typescript": "^5.9.3",
59
- "vite": "^8.0.16"
60
+ "typescript": "^5.9.3"
60
61
  },
61
62
  "publishConfig": {
62
63
  "access": "public"