@mcp-use/cli 2.5.0-canary.5 → 2.5.0-canary.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/index.js +34 -2
- package/dist/index.mjs +34 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1419,10 +1419,36 @@ if (container && Component) {
|
|
|
1419
1419
|
);
|
|
1420
1420
|
await fs3.mkdir(metadataTempDir, { recursive: true });
|
|
1421
1421
|
const { createServer: createServer2 } = await import("vite");
|
|
1422
|
+
const nodeStubsPlugin = {
|
|
1423
|
+
name: "node-stubs",
|
|
1424
|
+
enforce: "pre",
|
|
1425
|
+
resolveId(id) {
|
|
1426
|
+
if (id === "posthog-node" || id.startsWith("posthog-node/")) {
|
|
1427
|
+
return "\0virtual:posthog-node-stub";
|
|
1428
|
+
}
|
|
1429
|
+
return null;
|
|
1430
|
+
},
|
|
1431
|
+
load(id) {
|
|
1432
|
+
if (id === "\0virtual:posthog-node-stub") {
|
|
1433
|
+
return `
|
|
1434
|
+
export class PostHog {
|
|
1435
|
+
constructor() {}
|
|
1436
|
+
capture() {}
|
|
1437
|
+
identify() {}
|
|
1438
|
+
alias() {}
|
|
1439
|
+
flush() { return Promise.resolve(); }
|
|
1440
|
+
shutdown() { return Promise.resolve(); }
|
|
1441
|
+
}
|
|
1442
|
+
export default PostHog;
|
|
1443
|
+
`;
|
|
1444
|
+
}
|
|
1445
|
+
return null;
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1422
1448
|
const metadataServer = await createServer2({
|
|
1423
1449
|
root: metadataTempDir,
|
|
1424
1450
|
cacheDir: import_node_path3.default.join(metadataTempDir, ".vite-cache"),
|
|
1425
|
-
plugins: [tailwindcss(), react()],
|
|
1451
|
+
plugins: [nodeStubsPlugin, tailwindcss(), react()],
|
|
1426
1452
|
resolve: {
|
|
1427
1453
|
alias: {
|
|
1428
1454
|
"@": resourcesDir
|
|
@@ -1431,9 +1457,15 @@ if (container && Component) {
|
|
|
1431
1457
|
server: {
|
|
1432
1458
|
middlewareMode: true
|
|
1433
1459
|
},
|
|
1460
|
+
optimizeDeps: {
|
|
1461
|
+
// Exclude Node.js-only packages from browser bundling
|
|
1462
|
+
exclude: ["posthog-node"]
|
|
1463
|
+
},
|
|
1434
1464
|
ssr: {
|
|
1435
1465
|
// Force Vite to transform these packages in SSR instead of using external requires
|
|
1436
|
-
noExternal: ["@openai/apps-sdk-ui", "react-router"]
|
|
1466
|
+
noExternal: ["@openai/apps-sdk-ui", "react-router"],
|
|
1467
|
+
// Mark Node.js-only packages as external in SSR mode
|
|
1468
|
+
external: ["posthog-node"]
|
|
1437
1469
|
},
|
|
1438
1470
|
define: {
|
|
1439
1471
|
// Define process.env for SSR context
|
package/dist/index.mjs
CHANGED
|
@@ -1398,10 +1398,36 @@ if (container && Component) {
|
|
|
1398
1398
|
);
|
|
1399
1399
|
await fs3.mkdir(metadataTempDir, { recursive: true });
|
|
1400
1400
|
const { createServer: createServer2 } = await import("vite");
|
|
1401
|
+
const nodeStubsPlugin = {
|
|
1402
|
+
name: "node-stubs",
|
|
1403
|
+
enforce: "pre",
|
|
1404
|
+
resolveId(id) {
|
|
1405
|
+
if (id === "posthog-node" || id.startsWith("posthog-node/")) {
|
|
1406
|
+
return "\0virtual:posthog-node-stub";
|
|
1407
|
+
}
|
|
1408
|
+
return null;
|
|
1409
|
+
},
|
|
1410
|
+
load(id) {
|
|
1411
|
+
if (id === "\0virtual:posthog-node-stub") {
|
|
1412
|
+
return `
|
|
1413
|
+
export class PostHog {
|
|
1414
|
+
constructor() {}
|
|
1415
|
+
capture() {}
|
|
1416
|
+
identify() {}
|
|
1417
|
+
alias() {}
|
|
1418
|
+
flush() { return Promise.resolve(); }
|
|
1419
|
+
shutdown() { return Promise.resolve(); }
|
|
1420
|
+
}
|
|
1421
|
+
export default PostHog;
|
|
1422
|
+
`;
|
|
1423
|
+
}
|
|
1424
|
+
return null;
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1401
1427
|
const metadataServer = await createServer2({
|
|
1402
1428
|
root: metadataTempDir,
|
|
1403
1429
|
cacheDir: path3.join(metadataTempDir, ".vite-cache"),
|
|
1404
|
-
plugins: [tailwindcss(), react()],
|
|
1430
|
+
plugins: [nodeStubsPlugin, tailwindcss(), react()],
|
|
1405
1431
|
resolve: {
|
|
1406
1432
|
alias: {
|
|
1407
1433
|
"@": resourcesDir
|
|
@@ -1410,9 +1436,15 @@ if (container && Component) {
|
|
|
1410
1436
|
server: {
|
|
1411
1437
|
middlewareMode: true
|
|
1412
1438
|
},
|
|
1439
|
+
optimizeDeps: {
|
|
1440
|
+
// Exclude Node.js-only packages from browser bundling
|
|
1441
|
+
exclude: ["posthog-node"]
|
|
1442
|
+
},
|
|
1413
1443
|
ssr: {
|
|
1414
1444
|
// Force Vite to transform these packages in SSR instead of using external requires
|
|
1415
|
-
noExternal: ["@openai/apps-sdk-ui", "react-router"]
|
|
1445
|
+
noExternal: ["@openai/apps-sdk-ui", "react-router"],
|
|
1446
|
+
// Mark Node.js-only packages as external in SSR mode
|
|
1447
|
+
external: ["posthog-node"]
|
|
1416
1448
|
},
|
|
1417
1449
|
define: {
|
|
1418
1450
|
// Define process.env for SSR context
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/cli",
|
|
3
|
-
"version": "2.5.0-canary.
|
|
3
|
+
"version": "2.5.0-canary.7",
|
|
4
4
|
"description": "The mcp-use CLI is a tool for building and deploying MCP servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.",
|
|
5
5
|
"author": "mcp-use, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"tsx": "^4.21.0",
|
|
45
45
|
"vite": "^7.2.4",
|
|
46
46
|
"ws": "^8.18.3",
|
|
47
|
-
"@mcp-use/inspector": "0.12.0-canary.
|
|
48
|
-
"mcp-use": "1.10.0-canary.
|
|
47
|
+
"@mcp-use/inspector": "0.12.0-canary.7",
|
|
48
|
+
"mcp-use": "1.10.0-canary.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^24.10.1",
|