@mcp-use/cli 2.2.0 → 2.2.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/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -341,7 +341,7 @@ if (container && Component) {
|
|
|
341
341
|
}
|
|
342
342
|
return builtWidgets;
|
|
343
343
|
}
|
|
344
|
-
program.command("build").description("Build TypeScript and MCP UI widgets").option("-p, --path <path>", "Path to project directory", process.cwd()).option("--with-inspector", "Include inspector in production build"
|
|
344
|
+
program.command("build").description("Build TypeScript and MCP UI widgets").option("-p, --path <path>", "Path to project directory", process.cwd()).option("--with-inspector", "Include inspector in production build").action(async (options) => {
|
|
345
345
|
try {
|
|
346
346
|
const projectPath = import_node_path.default.resolve(options.path);
|
|
347
347
|
const { promises: fs } = await import("fs");
|
|
@@ -355,8 +355,9 @@ program.command("build").description("Build TypeScript and MCP UI widgets").opti
|
|
|
355
355
|
for (const widget of builtWidgets) {
|
|
356
356
|
widgetsData[widget.name] = widget.metadata;
|
|
357
357
|
}
|
|
358
|
+
const includeInspector = !!options.withInspector;
|
|
358
359
|
const manifest = {
|
|
359
|
-
includeInspector
|
|
360
|
+
includeInspector,
|
|
360
361
|
buildTime: (/* @__PURE__ */ new Date()).toISOString(),
|
|
361
362
|
widgets: widgetsData
|
|
362
363
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -318,7 +318,7 @@ if (container && Component) {
|
|
|
318
318
|
}
|
|
319
319
|
return builtWidgets;
|
|
320
320
|
}
|
|
321
|
-
program.command("build").description("Build TypeScript and MCP UI widgets").option("-p, --path <path>", "Path to project directory", process.cwd()).option("--with-inspector", "Include inspector in production build"
|
|
321
|
+
program.command("build").description("Build TypeScript and MCP UI widgets").option("-p, --path <path>", "Path to project directory", process.cwd()).option("--with-inspector", "Include inspector in production build").action(async (options) => {
|
|
322
322
|
try {
|
|
323
323
|
const projectPath = path.resolve(options.path);
|
|
324
324
|
const { promises: fs } = await import("fs");
|
|
@@ -332,8 +332,9 @@ program.command("build").description("Build TypeScript and MCP UI widgets").opti
|
|
|
332
332
|
for (const widget of builtWidgets) {
|
|
333
333
|
widgetsData[widget.name] = widget.metadata;
|
|
334
334
|
}
|
|
335
|
+
const includeInspector = !!options.withInspector;
|
|
335
336
|
const manifest = {
|
|
336
|
-
includeInspector
|
|
337
|
+
includeInspector,
|
|
337
338
|
buildTime: (/* @__PURE__ */ new Date()).toISOString(),
|
|
338
339
|
widgets: widgetsData
|
|
339
340
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Build tool for MCP UI widgets - bundles React components into standalone HTML pages for Model Context Protocol servers",
|
|
5
5
|
"author": "mcp-use, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"tsx": "^4.0.0",
|
|
45
45
|
"vite": "^6.0.0",
|
|
46
46
|
"ws": "^8.18.0",
|
|
47
|
-
"@mcp-use/inspector": "0.5.
|
|
48
|
-
"mcp-use": "1.3.
|
|
47
|
+
"@mcp-use/inspector": "0.5.1",
|
|
48
|
+
"mcp-use": "1.3.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^20.0.0",
|