@mcp-use/cli 4.0.2-canary.4 → 5.0.0-canary.6
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/THIRD_PARTY_NOTICES.md +20 -0
- package/dist/bin.js +1 -1
- package/dist/{chunk-JHCVAC2M.js → chunk-2E4ZVDXN.js} +1 -1
- package/dist/chunk-3IT66ZHQ.js +131 -0
- package/dist/chunk-Q6AC7LJS.js +11 -0
- package/dist/{chunk-F22D552R.js → chunk-SVICUITV.js} +1 -1
- package/dist/chunk-TSMDTAVA.js +4 -0
- package/dist/commands/build.js +5 -5
- package/dist/commands/client.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/deployments.js +1 -1
- package/dist/commands/dev.js +24 -25
- package/dist/commands/identity.js +1 -1
- package/dist/commands/organizations.js +1 -1
- package/dist/commands/screenshot.js +1 -1
- package/dist/commands/servers.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/skills-loader.js +1 -0
- package/package.json +10 -5
- package/types/internal/skills-loader.d.ts +35 -0
- package/dist/chunk-DODFSHJ5.js +0 -11
- package/dist/chunk-JRCSP5WH.js +0 -4
- /package/dist/{chunk-6Y2L4EIY.js → chunk-Z6SRTCQC.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as u,c as b,d as g,e as z,f as P,g as p}from"../chunk-
|
|
1
|
+
import{b as u,c as b,d as g,e as z,f as P,g as p}from"../chunk-2E4ZVDXN.js";import{a as d,b as s,c as w,d as y,e as l,f as v,g as _,h as C}from"../chunk-Q6AC7LJS.js";import"../chunk-S3WHXP7I.js";import"../chunk-WOT6VMZA.js";import{parseArgs as f}from"util";import{createInterface as E}from"readline/promises";var O="mcp-use-cli",I=1800*1e3,T=`Usage: mcp-use login [options]
|
|
2
2
|
|
|
3
3
|
Authenticate the cloud CLI.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as h,d as f,f as w,g as z}from"../chunk-
|
|
1
|
+
import{c as h,d as f,f as w,g as z}from"../chunk-2E4ZVDXN.js";import{a as r,d as m,e as u,f as p}from"../chunk-Q6AC7LJS.js";import"../chunk-S3WHXP7I.js";import"../chunk-WOT6VMZA.js";import{parseArgs as j}from"util";var E=`Usage: mcp-use org <command> [options]
|
|
2
2
|
|
|
3
3
|
Manage the active cloud organization.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as B,c as H,d as R}from"../chunk-
|
|
1
|
+
import{b as B,c as H,d as R}from"../chunk-SVICUITV.js";import{a as c,b as s,d as T,e as _,f as M}from"../chunk-Q6AC7LJS.js";import"../chunk-S3WHXP7I.js";import"../chunk-WOT6VMZA.js";import{spawn as $}from"child_process";import{access as j,mkdtemp as F,rm as A,writeFile as G}from"fs/promises";import{createServer as V}from"net";import{tmpdir as J}from"os";import{basename as q,join as W,resolve as z}from"path";import{parseArgs as K}from"util";import{fileURLToPath as X}from"url";var Q=`Usage: mcp-use screenshot (--server <name> | --mcp <url>) --tool <name> [args...] [options]
|
|
2
2
|
|
|
3
3
|
Call a view-backed MCP tool and capture its rendered MCP App as PNG.
|
|
4
4
|
|
package/dist/commands/servers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as p}from"../chunk-
|
|
1
|
+
import{h as p}from"../chunk-2E4ZVDXN.js";import{a as u,d as E,e as d,f as $,g as w}from"../chunk-Q6AC7LJS.js";import"../chunk-S3WHXP7I.js";import"../chunk-WOT6VMZA.js";import{parseArgs as g}from"util";var R=`Usage: mcp-use servers <command> [options]
|
|
2
2
|
|
|
3
3
|
Manage cloud servers and environment variables.
|
|
4
4
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-Z6SRTCQC.js";import"./chunk-RXKUVCL7.js";import"./chunk-WOT6VMZA.js";export{a as main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../chunk-3IT66ZHQ.js";import"../chunk-WOT6VMZA.js";export{b as discoverConfiguredSkills,a as resolveConfiguredSkillsDirectory};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0-canary.6",
|
|
5
5
|
"description": "Prebuilt CLI, development server, and build pipeline for mcp-use",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,13 +27,18 @@
|
|
|
27
27
|
"types": "./types/index.d.ts",
|
|
28
28
|
"import": "./dist/index.js"
|
|
29
29
|
},
|
|
30
|
+
"./internal/skills-loader": {
|
|
31
|
+
"types": "./types/internal/skills-loader.d.ts",
|
|
32
|
+
"import": "./dist/internal/skills-loader.js"
|
|
33
|
+
},
|
|
30
34
|
"./vite-client": {
|
|
31
35
|
"types": "./types/vite-client.d.ts"
|
|
32
36
|
}
|
|
33
37
|
},
|
|
34
38
|
"files": [
|
|
35
39
|
"dist",
|
|
36
|
-
"types"
|
|
40
|
+
"types",
|
|
41
|
+
"THIRD_PARTY_NOTICES.md"
|
|
37
42
|
],
|
|
38
43
|
"engines": {
|
|
39
44
|
"node": ">=22.22.2"
|
|
@@ -45,8 +50,8 @@
|
|
|
45
50
|
"vite": "^8.0.16"
|
|
46
51
|
},
|
|
47
52
|
"peerDependencies": {
|
|
48
|
-
"@mcp-use/client": "^2.0
|
|
49
|
-
"@mcp-use/inspector": "^
|
|
53
|
+
"@mcp-use/client": "^2.1.0-canary.3",
|
|
54
|
+
"@mcp-use/inspector": "^21.0.0-canary.7"
|
|
50
55
|
},
|
|
51
56
|
"peerDependenciesMeta": {
|
|
52
57
|
"@mcp-use/client": {
|
|
@@ -69,7 +74,7 @@
|
|
|
69
74
|
"typescript": "^5.9.3",
|
|
70
75
|
"vitest": "^4.1.9",
|
|
71
76
|
"zod": "^4.4.3",
|
|
72
|
-
"@mcp-use/client": "2.0
|
|
77
|
+
"@mcp-use/client": "2.1.0-canary.3",
|
|
73
78
|
"@mcp-use/tunnel": "0.2.0-canary.0"
|
|
74
79
|
},
|
|
75
80
|
"publishConfig": {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Configuration accepted by the CLI's internal Node-only Skills loader. */
|
|
2
|
+
export interface SkillsOptions {
|
|
3
|
+
directory?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type SkillResourceSnapshot = {
|
|
7
|
+
uri: string;
|
|
8
|
+
name: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
digest: string;
|
|
11
|
+
} & ({ text: string; blob?: never } | { blob: string; text?: never });
|
|
12
|
+
|
|
13
|
+
export interface SkillsSnapshot {
|
|
14
|
+
skills: Array<{
|
|
15
|
+
uri: string;
|
|
16
|
+
frontmatter: Record<string, unknown>;
|
|
17
|
+
resources: Array<{ uri: string; digest: string }>;
|
|
18
|
+
}>;
|
|
19
|
+
resources: SkillResourceSnapshot[];
|
|
20
|
+
directories: Array<{ uri: string; name: string }>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Discover and validate an immutable Skills snapshot from a project tree. */
|
|
24
|
+
export declare function discoverConfiguredSkills(
|
|
25
|
+
config: boolean | SkillsOptions | undefined,
|
|
26
|
+
projectRoot: string,
|
|
27
|
+
conventionalDirectory?: string
|
|
28
|
+
): SkillsSnapshot | undefined;
|
|
29
|
+
|
|
30
|
+
/** Resolve the effective directory watched and read by CLI tooling. */
|
|
31
|
+
export declare function resolveConfiguredSkillsDirectory(
|
|
32
|
+
config: boolean | SkillsOptions | undefined,
|
|
33
|
+
projectRoot: string,
|
|
34
|
+
conventionalDirectory?: string
|
|
35
|
+
): string | undefined;
|
package/dist/chunk-DODFSHJ5.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-S3WHXP7I.js";import{constants as l}from"fs";import{access as m,chmod as d,mkdir as w,readFile as y,rename as x,rm as g,writeFile as $}from"fs/promises";import{homedir as S}from"os";import{dirname as b,join as p}from"path";import{createInterface as k}from"readline/promises";var r=class extends Error{exitCode=2},s=class extends Error{code;details;constructor(e,t,o){super(t),this.code=e,this.details=o}},u=class extends s{exitCode=2};function _(n){return n.includes("--json")}function h(n,e,t){e?process.stdout.write(`${JSON.stringify(n)}
|
|
2
|
-
`):t!==void 0?process.stdout.write(`${t}
|
|
3
|
-
`):typeof n=="string"?process.stdout.write(`${n}
|
|
4
|
-
`):process.stdout.write(`${JSON.stringify(n,null,2)}
|
|
5
|
-
`)}function v(n,e){let t=n instanceof r||n instanceof s&&"exitCode"in n&&n.exitCode===2,o=n instanceof s,f=o?n.code:t?"usage_error":"command_failed",i=n instanceof Error?n.message:String(n);if(e)process.stderr.write(`${JSON.stringify({error:{code:f,message:i,...o&&n.details!==void 0?{details:n.details}:{}}})}
|
|
6
|
-
`);else if(process.stderr.write(`${i}
|
|
7
|
-
`),o&&N(n.details))for(let a of n.details.nextSteps)process.stderr.write(`
|
|
8
|
-
${a.description}:
|
|
9
|
-
${a.command}
|
|
10
|
-
`);return t?2:1}function N(n){if(n===null||typeof n!="object")return!1;let e=n.nextSteps;return Array.isArray(e)&&e.every(t=>t!==null&&typeof t=="object"&&typeof t.description=="string"&&typeof t.command=="string")}async function A(n,e){if(e.yes)return!0;if(e.json||!process.stdin.isTTY)throw new r(`${n} Pass --yes to confirm.`);let t=k({input:process.stdin,output:process.stdout});try{return(await t.question(`${n} [y/N] `)).trim().toLowerCase()==="y"}finally{t.close()}}function B(n){c(n)}async function C(n){try{return await m(n,l.F_OK),!0}catch{return!1}}async function F(n,e){try{return JSON.parse(await y(n,"utf8"))}catch(t){if(t.code==="ENOENT")return e;throw new s("invalid_state",`Could not read ${n}.`,{cause:t instanceof Error?t.message:String(t)})}}async function I(n,e){let t=b(n);await w(t,{recursive:!0,mode:448}),await d(t,448);let o=p(t,`.${n.slice(n.lastIndexOf("/")+1)}.${process.pid}.${Date.now()}.tmp`);await $(o,`${JSON.stringify(e,null,2)}
|
|
11
|
-
`,{mode:384}),await x(o,n),await d(n,384)}async function L(n){await g(n,{force:!0})}var D=p(S(),".mcp-use");export{r as a,s as b,u as c,_ as d,h as e,v as f,A as g,B as h,C as i,F as j,I as k,L as l,D as m};
|
package/dist/chunk-JRCSP5WH.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{a as f,b as l,d as m}from"./chunk-OMRWADFK.js";import{existsSync as V}from"fs";import{join as _}from"path";import{fileURLToPath as I}from"url";var h=["vite.config.ts","vite.config.js","vite.config.mts","vite.config.cjs"];function j(t){for(let e of h){let i=_(t,e);if(V(i))return i}return!1}function C(){return I(import.meta.resolve("tailwindcss/index.css"))}import{join as s}from"path";var E=".mcp-use",D="manifest.json";function N(t){let e=s(t,E),i=s(e,"build");return{projectRoot:t,workspace:e,build:i,generated:s(e,"generated"),cache:s(e,"cache"),state:s(e,"state"),cloud:s(e,"cloud"),buildManifest:s(i,D),tunnel:s(e,"state","tunnel.json")}}import{existsSync as g,readdirSync as x}from"fs";import{isAbsolute as P,join as R,resolve as y}from"path";import S from"@vitejs/plugin-react";var T="views",a="virtual:mcp-use/views/",c=`\0${a}`;function d(t,e){let i=e??T;return P(i)?i:y(t,i)}function J(t,e){let i=d(t,e);if(!g(i))return[];let n=[];for(let r of x(i,{withFileTypes:!0})){if(!r.isDirectory())continue;let o=R(i,r.name,"view.tsx");g(o)&&n.push({name:r.name,entryPath:o})}return n.sort((r,o)=>r.name.localeCompare(o.name)),n}function G(t){return`${a}${t}`}function A(t){return`/@id/__x00__${a}${t}`}function K(t,e,i){let n=d(e,i);return t===n||t.startsWith(`${n}/`)}function Z(t){let e={};for(let i of t)e[i.name]={kind:"external",entry:A(i.name),css:[],scripts:["/@vite/client"]};return e}async function q(t,e,i){let{createServer:n}=await import("vite");return n({root:t,configFile:i,envDir:!1,logLevel:"warn",cacheDir:e,resolve:{tsconfigPaths:!0,alias:f(t)},oxc:{jsx:{runtime:"automatic"}},plugins:[m(t),S()],server:{middlewareMode:!0,hmr:!1,ws:!1},ssr:{...l(t)}})}var u="virtual:mcp-use/tailwind.css",v=`\0${u}`,p="virtual:mcp-use/csp-runtime",w=`\0${p}`,M=["react","react-dom"],b={exclude:["mcp-use/react"],include:["react","react-dom","react-dom/client"]};function Y(t){return{name:"mcp-use-views",config(){return{resolve:{dedupe:M},optimizeDeps:b}},applyToEnvironment(e){return e.name==="client"},resolveId(e){if(e===p)return w;if(e===u)return v;if(e.startsWith(a))return`\0${e}`},load(e){if(e===w)return["globalThis.__zod_globalConfig ??= {};","globalThis.__zod_globalConfig.jitless = true;",""].join(`
|
|
2
|
-
`);if(e===v)return['@import "tailwindcss";',"@custom-variant dark (&:where(.dark, .dark *, [data-theme=dark], [data-theme=dark] *));"].join(`
|
|
3
|
-
`);if(!e.startsWith(c))return;let i=e.slice(c.length),n=t.getViews().find(o=>o.name===i);if(n===void 0)return;let r=[];return r.push(`import ${JSON.stringify(p)};`),t.dev?.reactRefresh===!0&&r.push('import "@vitejs/plugin-react/preamble";'),r.push(`import ${JSON.stringify(u)};`),r.push('import { bootstrapView } from "mcp-use/react";',`import * as viewModule from ${JSON.stringify(n.entryPath)};`,"bootstrapView(viewModule);"),t.dev!==void 0&&r.push("if (import.meta.hot) {"," import.meta.hot.accept();","}"),r.push(""),r.join(`
|
|
4
|
-
`)}}}export{j as a,C as b,N as c,d,J as e,G as f,K as g,Z as h,q as i,M as j,b as k,Y as l};
|
|
File without changes
|