@mcp-use/inspector 0.4.10 → 0.4.11-canary.0
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/cli.js +3 -3
- package/dist/client/assets/chunk-VL2OQCWN-BE4txAap.js +8 -0
- package/dist/client/assets/{embeddings-BvWgxmh-.js → embeddings-D0mnwVrX.js} +1 -1
- package/dist/client/assets/{index-F8MAAt6D.js → index-B0MYHYe6.js} +1 -1
- package/dist/client/assets/{index-CWYxvW-c.js → index-BEMSyME5.js} +2 -2
- package/dist/client/assets/{index-DHsHh1_g.js → index-BgupETL3.js} +1 -1
- package/dist/client/assets/{index-Dnm19mgK.js → index-CQ9XIRcv.js} +2 -2
- package/dist/client/assets/index-DrYUC3_O.js +1775 -0
- package/dist/client/assets/index-mBO7pd_t.js +1 -0
- package/dist/client/assets/index-wkxN17B9.js +4 -0
- package/dist/client/assets/langfuse-MO3AMDBE-DYoZ4Kwk.js +570 -0
- package/dist/client/index.html +2 -2
- package/dist/server/{chunk-UAGOQUEV.js → chunk-5JZ2RXUR.js} +3 -3
- package/dist/server/{chunk-GZSRGACL.js → chunk-AFTM3F6I.js} +1 -1
- package/dist/server/{chunk-G2KU64MV.js → chunk-JTBAUVJ3.js} +1 -1
- package/dist/server/{chunk-HPZTE753.js → chunk-RK4WSNY7.js} +3 -3
- package/dist/server/{chunk-BE2QCYB4.js → chunk-VMVT3HVZ.js} +3 -3
- package/dist/server/cli.js +4 -4
- package/dist/server/index.js +5 -5
- package/dist/server/middleware.js +5 -5
- package/dist/server/server.js +5 -5
- package/dist/server/shared-routes.js +2 -2
- package/dist/server/shared-static.js +2 -2
- package/dist/server/shared-utils-browser.js +1 -1
- package/dist/server/shared-utils.js +1 -1
- package/package.json +2 -2
- package/dist/client/assets/browser-BkJdGGVq.js +0 -611
- package/dist/client/assets/chunk-VL2OQCWN-Dm4XquLI.js +0 -8
- package/dist/client/assets/index-BxUJEXs5.js +0 -1734
- package/dist/client/assets/index-CEkgKN2t.js +0 -1
- package/dist/client/assets/index-WLUXcbDv.js +0 -4
- package/dist/client/assets/langfuse-6AJGHMAV-QljN0jPu.js +0 -1
- package/dist/client/assets/v4-BKrj-4V8.js +0 -1
package/dist/client/index.html
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
11
11
|
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
12
12
|
<title>Inspector | mcp-use</title>
|
|
13
|
-
<script type="module" crossorigin src="/inspector/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/inspector/assets/index-DrYUC3_O.js"></script>
|
|
14
14
|
<link rel="stylesheet" crossorigin href="/inspector/assets/index-Ba21hizt.css">
|
|
15
|
-
<script>window.__INSPECTOR_VERSION__ = "0.4.
|
|
15
|
+
<script>window.__INSPECTOR_VERSION__ = "0.4.11-canary.0";</script>
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<script>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerInspectorRoutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JTBAUVJ3.js";
|
|
4
4
|
import {
|
|
5
5
|
registerStaticRoutes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AFTM3F6I.js";
|
|
7
7
|
import {
|
|
8
8
|
checkClientFiles,
|
|
9
9
|
getClientDistPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VMVT3HVZ.js";
|
|
11
11
|
|
|
12
12
|
// src/server/middleware.ts
|
|
13
13
|
import { Hono } from "hono";
|
|
@@ -309,15 +309,15 @@ function generateWidgetContentHtml(widgetData) {
|
|
|
309
309
|
return { html: "", error: "No HTML content found" };
|
|
310
310
|
}
|
|
311
311
|
const widgetStateKey = `openai-widget-state:${toolId}`;
|
|
312
|
-
const safeToolInput = JSON.stringify(toolInput).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
|
|
313
|
-
const safeToolOutput = JSON.stringify(toolOutput).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
|
|
312
|
+
const safeToolInput = JSON.stringify(toolInput ?? null).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
|
|
313
|
+
const safeToolOutput = JSON.stringify(toolOutput ?? null).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
|
|
314
314
|
const safeToolId = JSON.stringify(toolId);
|
|
315
315
|
const safeWidgetStateKey = JSON.stringify(widgetStateKey);
|
|
316
316
|
const apiScript = `
|
|
317
317
|
<script>
|
|
318
318
|
(function() {
|
|
319
319
|
'use strict';
|
|
320
|
-
|
|
320
|
+
|
|
321
321
|
// Change URL to "/" for React Router compatibility
|
|
322
322
|
if (window.location.pathname !== '/') {
|
|
323
323
|
history.replaceState(null, '', '/');
|
|
@@ -336,15 +336,15 @@ function generateWidgetContentHtml(widgetData) {
|
|
|
336
336
|
return { html: "", error: "No HTML content found" };
|
|
337
337
|
}
|
|
338
338
|
const widgetStateKey = `openai-widget-state:${toolId}`;
|
|
339
|
-
const safeToolInput = JSON.stringify(toolInput).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
|
|
340
|
-
const safeToolOutput = JSON.stringify(toolOutput).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
|
|
339
|
+
const safeToolInput = JSON.stringify(toolInput ?? null).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
|
|
340
|
+
const safeToolOutput = JSON.stringify(toolOutput ?? null).replace(/</g, "\\u003c").replace(/>/g, "\\u003e");
|
|
341
341
|
const safeToolId = JSON.stringify(toolId);
|
|
342
342
|
const safeWidgetStateKey = JSON.stringify(widgetStateKey);
|
|
343
343
|
const apiScript = `
|
|
344
344
|
<script>
|
|
345
345
|
(function() {
|
|
346
346
|
'use strict';
|
|
347
|
-
|
|
347
|
+
|
|
348
348
|
// Change URL to "/" for React Router compatibility
|
|
349
349
|
if (window.location.pathname !== '/') {
|
|
350
350
|
history.replaceState(null, '', '/');
|
package/dist/server/cli.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
registerInspectorRoutes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JTBAUVJ3.js";
|
|
5
5
|
import {
|
|
6
6
|
findAvailablePort,
|
|
7
7
|
isValidUrl
|
|
8
8
|
} from "./chunk-XJDEAO7Y.js";
|
|
9
9
|
import {
|
|
10
10
|
registerStaticRoutes
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-AFTM3F6I.js";
|
|
12
|
+
import "./chunk-RK4WSNY7.js";
|
|
13
|
+
import "./chunk-VMVT3HVZ.js";
|
|
14
14
|
|
|
15
15
|
// src/server/cli.ts
|
|
16
16
|
import { serve } from "@hono/node-server";
|
package/dist/server/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountInspector
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5JZ2RXUR.js";
|
|
4
|
+
import "./chunk-JTBAUVJ3.js";
|
|
5
5
|
import "./chunk-XJDEAO7Y.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-AFTM3F6I.js";
|
|
7
7
|
import {
|
|
8
8
|
handleChatRequest,
|
|
9
9
|
handleChatRequestStream
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-RK4WSNY7.js";
|
|
11
|
+
import "./chunk-VMVT3HVZ.js";
|
|
12
12
|
export {
|
|
13
13
|
handleChatRequest,
|
|
14
14
|
handleChatRequestStream,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountInspector
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5JZ2RXUR.js";
|
|
4
|
+
import "./chunk-JTBAUVJ3.js";
|
|
5
5
|
import "./chunk-XJDEAO7Y.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-AFTM3F6I.js";
|
|
7
|
+
import "./chunk-RK4WSNY7.js";
|
|
8
|
+
import "./chunk-VMVT3HVZ.js";
|
|
9
9
|
export {
|
|
10
10
|
mountInspector
|
|
11
11
|
};
|
package/dist/server/server.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerInspectorRoutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JTBAUVJ3.js";
|
|
4
4
|
import {
|
|
5
5
|
isPortAvailable
|
|
6
6
|
} from "./chunk-XJDEAO7Y.js";
|
|
7
7
|
import {
|
|
8
8
|
registerStaticRoutesWithDevProxy
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-AFTM3F6I.js";
|
|
10
|
+
import "./chunk-RK4WSNY7.js";
|
|
11
|
+
import "./chunk-VMVT3HVZ.js";
|
|
12
12
|
|
|
13
13
|
// src/server/server.ts
|
|
14
14
|
import { exec } from "child_process";
|
|
@@ -28,7 +28,7 @@ async function startServer() {
|
|
|
28
28
|
const available = await isPortAvailable(port);
|
|
29
29
|
if (!available) {
|
|
30
30
|
if (isDev) {
|
|
31
|
-
console.error(`\u274C Port ${port} is not available. Please stop the process using this port and try again.`);
|
|
31
|
+
console.error(`\u274C\u274C\u274C Port ${port} is not available (probably used by Vite dev server as fallback so you should stop port 3000). Please stop the process using this port and try again.`);
|
|
32
32
|
process.exit(1);
|
|
33
33
|
} else {
|
|
34
34
|
const fallbackPort = 3002;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerStaticRoutes,
|
|
3
3
|
registerStaticRoutesWithDevProxy
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-AFTM3F6I.js";
|
|
5
|
+
import "./chunk-VMVT3HVZ.js";
|
|
6
6
|
export {
|
|
7
7
|
registerStaticRoutes,
|
|
8
8
|
registerStaticRoutesWithDevProxy
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/inspector",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.11-canary.0",
|
|
5
5
|
"description": "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"sonner": "^2.0.7",
|
|
69
69
|
"tailwind-merge": "^3.3.1",
|
|
70
70
|
"vite-express": "^0.21.1",
|
|
71
|
-
"mcp-use": "1.2.
|
|
71
|
+
"mcp-use": "1.2.2-canary.0"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|