@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.
Files changed (33) hide show
  1. package/dist/cli.js +3 -3
  2. package/dist/client/assets/chunk-VL2OQCWN-BE4txAap.js +8 -0
  3. package/dist/client/assets/{embeddings-BvWgxmh-.js → embeddings-D0mnwVrX.js} +1 -1
  4. package/dist/client/assets/{index-F8MAAt6D.js → index-B0MYHYe6.js} +1 -1
  5. package/dist/client/assets/{index-CWYxvW-c.js → index-BEMSyME5.js} +2 -2
  6. package/dist/client/assets/{index-DHsHh1_g.js → index-BgupETL3.js} +1 -1
  7. package/dist/client/assets/{index-Dnm19mgK.js → index-CQ9XIRcv.js} +2 -2
  8. package/dist/client/assets/index-DrYUC3_O.js +1775 -0
  9. package/dist/client/assets/index-mBO7pd_t.js +1 -0
  10. package/dist/client/assets/index-wkxN17B9.js +4 -0
  11. package/dist/client/assets/langfuse-MO3AMDBE-DYoZ4Kwk.js +570 -0
  12. package/dist/client/index.html +2 -2
  13. package/dist/server/{chunk-UAGOQUEV.js → chunk-5JZ2RXUR.js} +3 -3
  14. package/dist/server/{chunk-GZSRGACL.js → chunk-AFTM3F6I.js} +1 -1
  15. package/dist/server/{chunk-G2KU64MV.js → chunk-JTBAUVJ3.js} +1 -1
  16. package/dist/server/{chunk-HPZTE753.js → chunk-RK4WSNY7.js} +3 -3
  17. package/dist/server/{chunk-BE2QCYB4.js → chunk-VMVT3HVZ.js} +3 -3
  18. package/dist/server/cli.js +4 -4
  19. package/dist/server/index.js +5 -5
  20. package/dist/server/middleware.js +5 -5
  21. package/dist/server/server.js +5 -5
  22. package/dist/server/shared-routes.js +2 -2
  23. package/dist/server/shared-static.js +2 -2
  24. package/dist/server/shared-utils-browser.js +1 -1
  25. package/dist/server/shared-utils.js +1 -1
  26. package/package.json +2 -2
  27. package/dist/client/assets/browser-BkJdGGVq.js +0 -611
  28. package/dist/client/assets/chunk-VL2OQCWN-Dm4XquLI.js +0 -8
  29. package/dist/client/assets/index-BxUJEXs5.js +0 -1734
  30. package/dist/client/assets/index-CEkgKN2t.js +0 -1
  31. package/dist/client/assets/index-WLUXcbDv.js +0 -4
  32. package/dist/client/assets/langfuse-6AJGHMAV-QljN0jPu.js +0 -1
  33. package/dist/client/assets/v4-BKrj-4V8.js +0 -1
@@ -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-BxUJEXs5.js"></script>
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.10";</script>
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-G2KU64MV.js";
3
+ } from "./chunk-JTBAUVJ3.js";
4
4
  import {
5
5
  registerStaticRoutes
6
- } from "./chunk-GZSRGACL.js";
6
+ } from "./chunk-AFTM3F6I.js";
7
7
  import {
8
8
  checkClientFiles,
9
9
  getClientDistPath
10
- } from "./chunk-BE2QCYB4.js";
10
+ } from "./chunk-VMVT3HVZ.js";
11
11
 
12
12
  // src/server/middleware.ts
13
13
  import { Hono } from "hono";
@@ -2,7 +2,7 @@ import {
2
2
  checkClientFiles,
3
3
  getClientDistPath,
4
4
  getContentType
5
- } from "./chunk-BE2QCYB4.js";
5
+ } from "./chunk-VMVT3HVZ.js";
6
6
 
7
7
  // src/server/shared-static.ts
8
8
  import { existsSync, readFileSync } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  handleChatRequest,
10
10
  handleChatRequestStream,
11
11
  storeWidgetData
12
- } from "./chunk-HPZTE753.js";
12
+ } from "./chunk-RK4WSNY7.js";
13
13
 
14
14
  // src/server/shared-routes.ts
15
15
  import { logger } from "hono/logger";
@@ -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, '', '/');
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  registerInspectorRoutes
4
- } from "./chunk-G2KU64MV.js";
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-GZSRGACL.js";
12
- import "./chunk-HPZTE753.js";
13
- import "./chunk-BE2QCYB4.js";
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";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  mountInspector
3
- } from "./chunk-UAGOQUEV.js";
4
- import "./chunk-G2KU64MV.js";
3
+ } from "./chunk-5JZ2RXUR.js";
4
+ import "./chunk-JTBAUVJ3.js";
5
5
  import "./chunk-XJDEAO7Y.js";
6
- import "./chunk-GZSRGACL.js";
6
+ import "./chunk-AFTM3F6I.js";
7
7
  import {
8
8
  handleChatRequest,
9
9
  handleChatRequestStream
10
- } from "./chunk-HPZTE753.js";
11
- import "./chunk-BE2QCYB4.js";
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-UAGOQUEV.js";
4
- import "./chunk-G2KU64MV.js";
3
+ } from "./chunk-5JZ2RXUR.js";
4
+ import "./chunk-JTBAUVJ3.js";
5
5
  import "./chunk-XJDEAO7Y.js";
6
- import "./chunk-GZSRGACL.js";
7
- import "./chunk-HPZTE753.js";
8
- import "./chunk-BE2QCYB4.js";
6
+ import "./chunk-AFTM3F6I.js";
7
+ import "./chunk-RK4WSNY7.js";
8
+ import "./chunk-VMVT3HVZ.js";
9
9
  export {
10
10
  mountInspector
11
11
  };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  registerInspectorRoutes
3
- } from "./chunk-G2KU64MV.js";
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-GZSRGACL.js";
10
- import "./chunk-HPZTE753.js";
11
- import "./chunk-BE2QCYB4.js";
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
  registerInspectorRoutes
3
- } from "./chunk-G2KU64MV.js";
3
+ } from "./chunk-JTBAUVJ3.js";
4
4
  import "./chunk-XJDEAO7Y.js";
5
- import "./chunk-HPZTE753.js";
5
+ import "./chunk-RK4WSNY7.js";
6
6
  export {
7
7
  registerInspectorRoutes
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  registerStaticRoutes,
3
3
  registerStaticRoutesWithDevProxy
4
- } from "./chunk-GZSRGACL.js";
5
- import "./chunk-BE2QCYB4.js";
4
+ } from "./chunk-AFTM3F6I.js";
5
+ import "./chunk-VMVT3HVZ.js";
6
6
  export {
7
7
  registerStaticRoutes,
8
8
  registerStaticRoutesWithDevProxy
@@ -6,7 +6,7 @@ import {
6
6
  handleChatRequest,
7
7
  handleChatRequestStream,
8
8
  storeWidgetData
9
- } from "./chunk-HPZTE753.js";
9
+ } from "./chunk-RK4WSNY7.js";
10
10
  export {
11
11
  generateWidgetContainerHtml,
12
12
  generateWidgetContentHtml,
@@ -9,7 +9,7 @@ import {
9
9
  handleChatRequest,
10
10
  handleChatRequestStream,
11
11
  storeWidgetData
12
- } from "./chunk-BE2QCYB4.js";
12
+ } from "./chunk-VMVT3HVZ.js";
13
13
  export {
14
14
  checkClientFiles,
15
15
  generateWidgetContainerHtml,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mcp-use/inspector",
3
3
  "type": "module",
4
- "version": "0.4.10",
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.1"
71
+ "mcp-use": "1.2.2-canary.0"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"