@mcp-use/cli 4.0.0-beta.6 → 4.0.0-beta.7
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/bin.js +1 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -36,4 +36,4 @@ Options:
|
|
|
36
36
|
-h, --help Show this help
|
|
37
37
|
-v, --version Print the version`;async function l(n){if(n.length===1&&["--version","-v"].includes(n[0]??""))return console.log(u()),0;if(n.some(t=>t==="--help"||t==="-h")){let t=n[0];if(t===void 0||t==="--help"||t==="-h")return console.log(i),0}let e=n[0];if(e==="login"||e==="logout"||e==="whoami"){let{runIdentity:t}=await import("./commands/identity.js");return t(e,n.slice(1))}if(e==="org"){let{runOrganizations:t}=await import("./commands/organizations.js");return t(n.slice(1))}if(e==="servers"){let{runServers:t}=await import("./commands/servers.js");return t(n.slice(1))}if(e==="deployments"){let{runDeployments:t}=await import("./commands/deployments.js");return t(n.slice(1))}if(e==="deploy"){let{runDeploy:t}=await import("./commands/deploy.js");return t(n.slice(1))}if(e==="client"){let{runClient:t}=await import("./commands/client.js");return t(n.slice(1))}if(e==="skills"){let{runSkills:t}=await import("./commands/skills.js");return t(n.slice(1))}if(e==="screenshot"){let{runScreenshot:t}=await import("./commands/screenshot.js");return t(n.slice(1))}let r;try{r=c(n)}catch(t){return console.error(t instanceof Error?t.message:String(t)),2}if(r.version)return console.log(u()),0;if(r.help)return console.log(i),0;switch(r.command){case"start":return d(r);case"dev":case"build":return m(r.command,r);case"typecheck":return p(r);case void 0:return console.error(i),2;default:return console.error(`Unknown command: ${r.command}
|
|
38
38
|
|
|
39
|
-
${i}`),2}}async function p(n){try{let{runTypecheck:e}=await import("./commands/typecheck.js");return await e({cwd:s(process.cwd(),n.path??"."),...n.entry!==void 0&&{entry:n.entry},...n.mcpDir!==void 0&&{mcpDir:n.mcpDir},...n.passthrough.length>0&&{tscArgs:n.passthrough}})}catch(e){return console.error(e instanceof Error?e.message:String(e)),1}}async function d(n){let e;try{let{runStart:o}=await import("./commands/start.js");e=await o({cwd:s(process.cwd(),n.path??"."),port:n.port,host:n.host,...n.inspector===!0&&{withInspector:!0},tunnel:n.tunnel})}catch(o){return console.error(o instanceof Error?o.message:String(o)),1}console.log(`mcp-use server running at ${e.url}`),e.tunnelUrl!==void 0&&console.log(`mcp-use public MCP URL: ${e.tunnelUrl}`);let r=!1,t=()=>{r||(r=!0,e.close().then(()=>process.exit(0),o=>{console.error(o instanceof Error?o.message:String(o)),process.exit(1)}))};return process.once("SIGINT",t),process.once("SIGTERM",t),0}async function m(n,e){let r={cwd:s(process.cwd(),e.path??"."),...e.entry!==void 0&&{entry:e.entry},...e.mcpDir!==void 0&&{mcpDir:e.mcpDir},...e.viewsDir!==void 0&&{viewsDir:e.viewsDir},...e.port!==void 0&&{port:e.port},...e.host!==void 0&&{host:e.host},...e.tunnel&&{tunnel:!0},...!e.open&&{open:!1},...e.inspector===!1&&{inspector:!1},...e.sourceMaps&&{sourceMaps:!0},...e.inline&&{inline:!0}};try{if(n==="dev"){let{runDev:t}=await import("./commands/dev.js");await t(r)}else{let{runBuild:t}=await import("./commands/build.js");await t(r)}return 0}catch(t){return console.error(t instanceof Error?t.message:String(t)),1}}function u(){return"2.0.0-beta.
|
|
39
|
+
${i}`),2}}async function p(n){try{let{runTypecheck:e}=await import("./commands/typecheck.js");return await e({cwd:s(process.cwd(),n.path??"."),...n.entry!==void 0&&{entry:n.entry},...n.mcpDir!==void 0&&{mcpDir:n.mcpDir},...n.passthrough.length>0&&{tscArgs:n.passthrough}})}catch(e){return console.error(e instanceof Error?e.message:String(e)),1}}async function d(n){let e;try{let{runStart:o}=await import("./commands/start.js");e=await o({cwd:s(process.cwd(),n.path??"."),port:n.port,host:n.host,...n.inspector===!0&&{withInspector:!0},tunnel:n.tunnel})}catch(o){return console.error(o instanceof Error?o.message:String(o)),1}console.log(`mcp-use server running at ${e.url}`),e.tunnelUrl!==void 0&&console.log(`mcp-use public MCP URL: ${e.tunnelUrl}`);let r=!1,t=()=>{r||(r=!0,e.close().then(()=>process.exit(0),o=>{console.error(o instanceof Error?o.message:String(o)),process.exit(1)}))};return process.once("SIGINT",t),process.once("SIGTERM",t),0}async function m(n,e){let r={cwd:s(process.cwd(),e.path??"."),...e.entry!==void 0&&{entry:e.entry},...e.mcpDir!==void 0&&{mcpDir:e.mcpDir},...e.viewsDir!==void 0&&{viewsDir:e.viewsDir},...e.port!==void 0&&{port:e.port},...e.host!==void 0&&{host:e.host},...e.tunnel&&{tunnel:!0},...!e.open&&{open:!1},...e.inspector===!1&&{inspector:!1},...e.sourceMaps&&{sourceMaps:!0},...e.inline&&{inline:!0}};try{if(n==="dev"){let{runDev:t}=await import("./commands/dev.js");await t(r)}else{let{runBuild:t}=await import("./commands/build.js");await t(r)}return 0}catch(t){return console.error(t instanceof Error?t.message:String(t)),1}}function u(){return"2.0.0-beta.32"}l(process.argv.slice(2)).then(n=>{process.exitCode=n},n=>{console.error(n instanceof Error?n.message:String(n)),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.
|
|
4
|
+
"version": "4.0.0-beta.7",
|
|
5
5
|
"description": "Prebuilt CLI, development server, and build pipeline for mcp-use",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@modelcontextprotocol/server": "
|
|
57
|
+
"@modelcontextprotocol/server": "2.0.0-beta.5",
|
|
58
58
|
"rimraf": "^6.1.3",
|
|
59
59
|
"tsup": "^8.5.1",
|
|
60
60
|
"typescript": "^5.9.3"
|