@mcp-use/inspector 20.0.0-beta.7 → 20.0.0-beta.9
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/README.md +2 -18
- package/dist/cdn/{ChatTab-DtUGK07C.js → ChatTab-CU-Gf-GY.js} +6 -6
- package/dist/cdn/{ConnectionSettingsForm-CNuMa6jp.js → ConnectionSettingsForm-C4fEbp4v.js} +1 -1
- package/dist/cdn/{ConnectionSettingsTab-qSVQ1aIF.js → ConnectionSettingsTab-DXUrhGfL.js} +1 -1
- package/dist/cdn/{MCPAppsDebugControls-BpP-Ifap.js → MCPAppsDebugControls-Dp_o3k-P.js} +2 -2
- package/dist/cdn/{MarkdownRenderer-bX1BrKgI.js → MarkdownRenderer-COhmp4fm.js} +1 -1
- package/dist/cdn/{McpAppsViewPanel-jlsYQ7uS.js → McpAppsViewPanel-CMQZ28xs.js} +2 -2
- package/dist/cdn/{OAuthCallback--NZdLoWx.js → OAuthCallback-ClEnwZ9o.js} +1 -1
- package/dist/cdn/{PromptsTab-BlXDcau3.js → PromptsTab-DPjWr6W0.js} +1 -1
- package/dist/cdn/{ResourcesTab-D45_JojP.js → ResourcesTab-D8hOTjDs.js} +5 -5
- package/dist/cdn/{SamplingTab-r7tImM6L.js → SamplingTab-e1G8Qx1k.js} +3 -3
- package/dist/cdn/{ToolsTab-DOAO8HnS.js → ToolsTab-jNn6Cz6A.js} +5 -5
- package/dist/cdn/{ViewPreview-CBhrVdwx.js → ViewPreview-BpQYOKES.js} +2 -2
- package/dist/cdn/{dist-SxRsB1iS.js → dist-8Z7HZAGn.js} +2 -2
- package/dist/cdn/{index-browser-Dm3R1Mfe.js → index-browser-nWAQnCTk.js} +112 -200
- package/dist/cdn/inspector.css +1 -1
- package/dist/cdn/inspector.js +5 -5
- package/dist/cdn/{react-Bl-hSkvn.js → react-8UPT_kVF.js} +521 -607
- package/dist/cdn/{telemetry-TwPKZlFf.js → telemetry-X2tRdL3U.js} +37 -69
- package/dist/cdn/{useConfig-leHVjdjl.js → useConfig-BMqxaGDa.js} +2 -2
- package/dist/cdn/{useViewHostProps-CDOm2w6u.js → useViewHostProps-DMArgRGs.js} +1 -1
- package/dist/cli.js +61 -2
- package/dist/client/index.js +2 -7
- package/dist/client/telemetry/init.d.ts.map +1 -1
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +2 -2
- package/dist/server/{chunk-5GVQGIAX.js → chunk-3WVGQOQX.js} +1 -1
- package/dist/server/{chunk-UZZDBVKF.js → chunk-BIKA6WIX.js} +61 -2
- package/dist/server/{chunk-VFVFLXKP.js → chunk-KB6CHWZ4.js} +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/middleware.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/web/assets/{ChatTab-B6ubLbeA.js → ChatTab-fclW7HPg.js} +1 -1
- package/dist/web/assets/{ConnectionSettingsTab-Cb2eDgEu.js → ConnectionSettingsTab-DNl63AkH.js} +1 -1
- package/dist/web/assets/{ElicitationTab-CbnCrmu9.js → ElicitationTab-B73XazTU.js} +1 -1
- package/dist/web/assets/{MCPAppsDebugControls-sRglMhat.js → MCPAppsDebugControls-BYLu5GRy.js} +1 -1
- package/dist/web/assets/{ManufactOAuthCallback-D4uYGigW.js → ManufactOAuthCallback-Dp3icsBc.js} +1 -1
- package/dist/web/assets/{MarkdownRenderer-Cwxp9fLj.js → MarkdownRenderer-CcvZ7qUS.js} +1 -1
- package/dist/web/assets/{McpAppsViewPanel-jQYFoZNX.js → McpAppsViewPanel-KD_ZnjfO.js} +1 -1
- package/dist/web/assets/{NotificationsTab-DuSm762_.js → NotificationsTab-CV9kw9j-.js} +1 -1
- package/dist/web/assets/{OAuthCallback-VLHlUe2c.js → OAuthCallback-C9J2xEkV.js} +1 -1
- package/dist/web/assets/{PromptsTab-DK6XZxR8.js → PromptsTab-irNacYfj.js} +1 -1
- package/dist/web/assets/{ResourcesTab-CUE4MAtJ.js → ResourcesTab-C-4Fd-HY.js} +1 -1
- package/dist/web/assets/{SamplingTab-BYNkVCTu.js → SamplingTab-B7bM9cnF.js} +1 -1
- package/dist/web/assets/{ServerMetadataTab-DWjNFMbq.js → ServerMetadataTab-CnGUw9uD.js} +1 -1
- package/dist/web/assets/{ToolsTab-BisWWY2p.js → ToolsTab-DBHJRY9V.js} +2 -2
- package/dist/web/assets/{ViewPreview-COrmPpRr.js → ViewPreview-D7NNsxbe.js} +1 -1
- package/dist/web/assets/{checkbox-B6dtF73d.js → checkbox-C9WZqT8k.js} +1 -1
- package/dist/web/assets/{dist-9Oy7e0v8.js → dist-ChWdPMRV.js} +3 -3
- package/dist/web/assets/{index-BMaSsizY.js → index-B5OxiZlj.js} +13 -13
- package/dist/web/assets/index-bCIH1Sdx.css +1 -0
- package/dist/web/assets/{shared-CFs9CZfB.js → shared-BWLzd0mh.js} +1 -1
- package/dist/web/assets/{tabs-subtle-D2XkWhLL.js → tabs-subtle-DkVoZG5s.js} +1 -1
- package/dist/web/assets/{useConfig-B6tXvJOb.js → useConfig-CTtYs2lN.js} +1 -1
- package/dist/web/assets/{useViewHostProps-DZqOwiAm.js → useViewHostProps-DOJOoXbY.js} +1 -1
- package/dist/web/index.html +3 -3
- package/package.json +4 -4
- package/dist/web/assets/index-D7TVTIt9.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e, t } from "./index-browser-nWAQnCTk.js";
|
|
2
2
|
//#region src/client/telemetry/events.ts
|
|
3
|
-
var
|
|
3
|
+
var n = class {
|
|
4
4
|
name = "mcp_inspector_open";
|
|
5
5
|
properties;
|
|
6
6
|
constructor(e) {
|
|
@@ -9,7 +9,7 @@ var i = class {
|
|
|
9
9
|
connection_count: e.connectionCount
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
},
|
|
12
|
+
}, r = class {
|
|
13
13
|
name = "mcp_tool_execution";
|
|
14
14
|
properties;
|
|
15
15
|
constructor(e) {
|
|
@@ -21,7 +21,7 @@ var i = class {
|
|
|
21
21
|
error: e.error
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
},
|
|
24
|
+
}, i = class {
|
|
25
25
|
name = "mcp_resource_read";
|
|
26
26
|
properties;
|
|
27
27
|
constructor(e) {
|
|
@@ -32,7 +32,7 @@ var i = class {
|
|
|
32
32
|
error: e.error
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, a = class {
|
|
36
36
|
name = "mcp_prompt_call";
|
|
37
37
|
properties;
|
|
38
38
|
constructor(e) {
|
|
@@ -43,7 +43,7 @@ var i = class {
|
|
|
43
43
|
error: e.error
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, o = class {
|
|
47
47
|
name = "mcp_server_connection";
|
|
48
48
|
properties;
|
|
49
49
|
constructor(e) {
|
|
@@ -55,7 +55,7 @@ var i = class {
|
|
|
55
55
|
error: e.error
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, s = class {
|
|
59
59
|
name = "mcp_chat_message";
|
|
60
60
|
properties;
|
|
61
61
|
constructor(e) {
|
|
@@ -71,7 +71,7 @@ var i = class {
|
|
|
71
71
|
error: e.error
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, c = class {
|
|
75
75
|
name = "mcp_server_added";
|
|
76
76
|
properties;
|
|
77
77
|
constructor(e) {
|
|
@@ -82,19 +82,19 @@ var i = class {
|
|
|
82
82
|
via_proxy: e.viaProxy
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
},
|
|
85
|
+
}, l = class {
|
|
86
86
|
name = "mcp_server_removed";
|
|
87
87
|
properties;
|
|
88
88
|
constructor(e) {
|
|
89
89
|
this.properties = { server_id: e.serverId };
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, u = class {
|
|
92
92
|
name = "mcp_command_palette_open";
|
|
93
93
|
properties;
|
|
94
94
|
constructor(e) {
|
|
95
95
|
this.properties = { trigger: e.trigger };
|
|
96
96
|
}
|
|
97
|
-
},
|
|
97
|
+
}, d = class {
|
|
98
98
|
name = "mcp_tool_saved";
|
|
99
99
|
properties;
|
|
100
100
|
constructor(e) {
|
|
@@ -103,7 +103,7 @@ var i = class {
|
|
|
103
103
|
server_id: e.serverId
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, f = class {
|
|
107
107
|
name = "mcp_tunnel_action";
|
|
108
108
|
properties;
|
|
109
109
|
constructor(e) {
|
|
@@ -113,13 +113,13 @@ var i = class {
|
|
|
113
113
|
tunnel_url: e.tunnelUrl
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, p = class {
|
|
117
117
|
name = "mcp_deploy_click";
|
|
118
118
|
properties;
|
|
119
119
|
constructor(e) {
|
|
120
120
|
this.properties = { referrer: e.referrer };
|
|
121
121
|
}
|
|
122
|
-
},
|
|
122
|
+
}, m = class {
|
|
123
123
|
name = "mcp_chat_configured";
|
|
124
124
|
properties;
|
|
125
125
|
constructor(e) {
|
|
@@ -128,7 +128,7 @@ var i = class {
|
|
|
128
128
|
model: e.model
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, h = class {
|
|
132
132
|
name = "mcp_tab_navigation";
|
|
133
133
|
properties;
|
|
134
134
|
constructor(e) {
|
|
@@ -137,13 +137,13 @@ var i = class {
|
|
|
137
137
|
previous_tab: e.previousTab
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
},
|
|
140
|
+
}, g = class {
|
|
141
141
|
name = "mcp_add_to_client";
|
|
142
142
|
properties;
|
|
143
143
|
constructor(e) {
|
|
144
144
|
this.properties = { client: e.client };
|
|
145
145
|
}
|
|
146
|
-
},
|
|
146
|
+
}, _ = class {
|
|
147
147
|
name = "mcp_session_duration";
|
|
148
148
|
properties;
|
|
149
149
|
constructor(e) {
|
|
@@ -156,85 +156,53 @@ var i = class {
|
|
|
156
156
|
};
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region src/client/telemetry/utils.ts
|
|
159
|
-
function
|
|
159
|
+
function v() {
|
|
160
160
|
try {
|
|
161
161
|
if (typeof window < "u") {
|
|
162
162
|
let e = window.__INSPECTOR_VERSION__;
|
|
163
163
|
if (e !== void 0 && e !== "") return e;
|
|
164
164
|
}
|
|
165
|
-
return "20.0.0-beta.
|
|
165
|
+
return "20.0.0-beta.8";
|
|
166
166
|
} catch {
|
|
167
167
|
return "0.0.0";
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
//#endregion
|
|
171
171
|
//#region src/client/telemetry/init.ts
|
|
172
|
-
var
|
|
173
|
-
function
|
|
172
|
+
var y = "mcp_inspector_telemetry_disabled", b = "mcp_inspector_telemetry_user_id", x = "MCP_USE_ANONYMIZED_TELEMETRY", S = "mcp_use_user_id";
|
|
173
|
+
function C() {
|
|
174
174
|
return typeof localStorage < "u" && typeof localStorage.getItem == "function" && typeof localStorage.setItem == "function";
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
if (
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
function O(e, t) {
|
|
182
|
-
let n = (e) => e.split("-")[0].split(".").map((e) => parseInt(e, 10) || 0), r = n(e), i = n(t), a = Math.max(r.length, i.length);
|
|
183
|
-
for (let e = 0; e < a; e++) {
|
|
184
|
-
let t = r[e] ?? 0, n = i[e] ?? 0;
|
|
185
|
-
if (t !== n) return t > n;
|
|
186
|
-
}
|
|
187
|
-
return !1;
|
|
188
|
-
}
|
|
189
|
-
function k() {
|
|
190
|
-
if (E()) try {
|
|
191
|
-
if (localStorage.getItem(x) === "true" && localStorage.getItem(w) !== "false" && localStorage.setItem(w, "false"), !localStorage.getItem(T)) {
|
|
192
|
-
let e = localStorage.getItem(S);
|
|
193
|
-
e && localStorage.setItem(T, e);
|
|
176
|
+
function w() {
|
|
177
|
+
if (C()) try {
|
|
178
|
+
if (localStorage.getItem(y) === "true" && localStorage.getItem(x) !== "false" && localStorage.setItem(x, "false"), !localStorage.getItem(S)) {
|
|
179
|
+
let e = localStorage.getItem(b);
|
|
180
|
+
e && localStorage.setItem(S, e);
|
|
194
181
|
}
|
|
195
182
|
} catch {}
|
|
196
183
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
let t = e.getInstance();
|
|
200
|
-
if (!t.isEnabled) return;
|
|
201
|
-
let i = b(), a = !1, o = !1, s = localStorage.getItem(C);
|
|
202
|
-
if (s ? O(i, s) && (a = !0, localStorage.setItem(C, i)) : (a = !0, o = !0, localStorage.setItem(C, i)), !a) return;
|
|
203
|
-
n({
|
|
204
|
-
triggered_by: "initialization",
|
|
205
|
-
mcp_use_version: i,
|
|
206
|
-
user_id: t.userId,
|
|
207
|
-
event: "package_download",
|
|
208
|
-
first_download: o,
|
|
209
|
-
language: "typescript",
|
|
210
|
-
source: "inspector",
|
|
211
|
-
package: "inspector",
|
|
212
|
-
mode: D()
|
|
213
|
-
}, r);
|
|
214
|
-
} catch {}
|
|
215
|
-
}
|
|
216
|
-
function j() {
|
|
217
|
-
k(), t("inspector"), e.getInstance().setProductVersion(b()), A();
|
|
184
|
+
function T() {
|
|
185
|
+
w(), e("inspector"), t.getInstance().setProductVersion(v());
|
|
218
186
|
}
|
|
219
187
|
//#endregion
|
|
220
188
|
//#region src/client/telemetry/capture.ts
|
|
221
|
-
function
|
|
189
|
+
function E() {
|
|
222
190
|
if (typeof window > "u") return "standalone";
|
|
223
191
|
let e = window.__MCP_INSPECTOR_MODE__;
|
|
224
192
|
return e === "standalone" || e === "embedded" || e === "cloud" ? e : "standalone";
|
|
225
193
|
}
|
|
226
|
-
async function
|
|
227
|
-
await
|
|
228
|
-
name:
|
|
194
|
+
async function D(e) {
|
|
195
|
+
await t.getInstance().capture({
|
|
196
|
+
name: e.name,
|
|
229
197
|
properties: {
|
|
230
|
-
...
|
|
198
|
+
...e.properties,
|
|
231
199
|
package: "inspector",
|
|
232
|
-
mode:
|
|
200
|
+
mode: E()
|
|
233
201
|
}
|
|
234
202
|
});
|
|
235
203
|
}
|
|
236
|
-
async function
|
|
237
|
-
await
|
|
204
|
+
async function O(e) {
|
|
205
|
+
await D(new n(e));
|
|
238
206
|
}
|
|
239
207
|
//#endregion
|
|
240
|
-
export {
|
|
208
|
+
export { r as _, g as a, u as c, i as d, c as f, h as g, _ as h, v as i, p as l, l as m, O as n, m as o, o as p, T as r, s, D as t, a as u, d as v, f as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { o as n, t as r } from "./telemetry-
|
|
3
|
-
import { t as i } from "./dist-
|
|
2
|
+
import { o as n, t as r } from "./telemetry-X2tRdL3U.js";
|
|
3
|
+
import { t as i } from "./dist-8Z7HZAGn.js";
|
|
4
4
|
//#region src/client/components/chat/types.ts
|
|
5
5
|
var a = /* @__PURE__ */ e(t(), 1), o = {
|
|
6
6
|
openai: "gpt-5.6-terra",
|
|
@@ -2,7 +2,7 @@ import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
|
2
2
|
import { n } from "./createLucideIcon-BONxC1L5.js";
|
|
3
3
|
import { t as r } from "./button-CB4uOoUV.js";
|
|
4
4
|
import { t as i } from "./x-EilKPiCX.js";
|
|
5
|
-
import { d as a } from "./react-
|
|
5
|
+
import { d as a } from "./react-8UPT_kVF.js";
|
|
6
6
|
import { n as o, r as s } from "./servers-Dd0Vcp81.js";
|
|
7
7
|
import { i as c, r as l, s as u, t as d } from "./WidgetDebugContext-B6yoOVVV.js";
|
|
8
8
|
//#region src/client/console-log-bus.ts
|
package/dist/cli.js
CHANGED
|
@@ -182,7 +182,7 @@ function registerInspectorStaticAssets(app2, basePath = "") {
|
|
|
182
182
|
var package_default = {
|
|
183
183
|
name: "@mcp-use/inspector",
|
|
184
184
|
type: "module",
|
|
185
|
-
version: "20.0.0-beta.
|
|
185
|
+
version: "20.0.0-beta.8",
|
|
186
186
|
description: "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
187
187
|
author: "",
|
|
188
188
|
license: "MIT",
|
|
@@ -385,6 +385,45 @@ function generateCdnShellHtml(config, basePath, assets) {
|
|
|
385
385
|
<link rel="stylesheet" href="${assets.cssUrl}" />
|
|
386
386
|
<title>Inspector | mcp-use</title>
|
|
387
387
|
<meta name="description" content="Free, open-source MCP Inspector by mcp-use. Connect to any MCP server, test tools, prompts, and resources, inspect RPC logs, and debug MCP apps \u2014 all in your browser." />
|
|
388
|
+
<style>
|
|
389
|
+
:root { color-scheme: light dark; }
|
|
390
|
+
html, body { height: 100%; margin: 0; background-color: #f3f3f3; }
|
|
391
|
+
#root { height: 100%; }
|
|
392
|
+
.mcp-boot {
|
|
393
|
+
display: flex;
|
|
394
|
+
height: 100%;
|
|
395
|
+
align-items: center;
|
|
396
|
+
justify-content: center;
|
|
397
|
+
background-color: #f3f3f3;
|
|
398
|
+
}
|
|
399
|
+
.mcp-boot-inner {
|
|
400
|
+
display: flex;
|
|
401
|
+
flex-direction: column;
|
|
402
|
+
align-items: center;
|
|
403
|
+
gap: 16px;
|
|
404
|
+
}
|
|
405
|
+
.mcp-boot-spinner {
|
|
406
|
+
width: 32px;
|
|
407
|
+
height: 32px;
|
|
408
|
+
color: #52525b;
|
|
409
|
+
animation: mcp-boot-spin 1s linear infinite;
|
|
410
|
+
}
|
|
411
|
+
.mcp-boot-label {
|
|
412
|
+
margin: 0;
|
|
413
|
+
font-family: Ubuntu, sans-serif;
|
|
414
|
+
font-size: 0.875rem;
|
|
415
|
+
line-height: 1.25rem;
|
|
416
|
+
color: #52525b;
|
|
417
|
+
}
|
|
418
|
+
@keyframes mcp-boot-spin {
|
|
419
|
+
to { transform: rotate(360deg); }
|
|
420
|
+
}
|
|
421
|
+
@media (prefers-color-scheme: dark) {
|
|
422
|
+
html, body { background-color: #000; }
|
|
423
|
+
.mcp-boot { background-color: #000; }
|
|
424
|
+
.mcp-boot-spinner, .mcp-boot-label { color: #a1a1aa; }
|
|
425
|
+
}
|
|
426
|
+
</style>
|
|
388
427
|
<script>window.__INSPECTOR_VERSION__ = ${JSON.stringify(INSPECTOR_VERSION)};</script>
|
|
389
428
|
${runtimeScripts}
|
|
390
429
|
</head>
|
|
@@ -402,7 +441,27 @@ function generateCdnShellHtml(config, basePath, assets) {
|
|
|
402
441
|
};
|
|
403
442
|
}
|
|
404
443
|
</script>
|
|
405
|
-
<div id="root"
|
|
444
|
+
<div id="root">
|
|
445
|
+
<div class="mcp-boot">
|
|
446
|
+
<div class="mcp-boot-inner">
|
|
447
|
+
<svg
|
|
448
|
+
class="mcp-boot-spinner"
|
|
449
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
450
|
+
viewBox="0 0 24 24"
|
|
451
|
+
fill="none"
|
|
452
|
+
stroke="currentColor"
|
|
453
|
+
stroke-width="2"
|
|
454
|
+
stroke-linecap="round"
|
|
455
|
+
stroke-linejoin="round"
|
|
456
|
+
role="status"
|
|
457
|
+
aria-label="Loading"
|
|
458
|
+
>
|
|
459
|
+
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
460
|
+
</svg>
|
|
461
|
+
<p class="mcp-boot-label">Connecting to MCP server...</p>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
</div>
|
|
406
465
|
<script type="module" src="${assets.jsUrl}"></script>
|
|
407
466
|
</body>
|
|
408
467
|
</html>`;
|
package/dist/client/index.js
CHANGED
|
@@ -88,12 +88,7 @@ var MCPAddToClientEvent = class {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
// src/client/telemetry/init.ts
|
|
91
|
-
import {
|
|
92
|
-
Tel,
|
|
93
|
-
setTelemetrySource,
|
|
94
|
-
captureScarf,
|
|
95
|
-
SCARF_GATEWAY_URL
|
|
96
|
-
} from "@mcp-use/client";
|
|
91
|
+
import { Tel, setTelemetrySource } from "@mcp-use/client";
|
|
97
92
|
|
|
98
93
|
// src/client/telemetry/capture.ts
|
|
99
94
|
import { Tel as Tel2 } from "@mcp-use/client";
|
|
@@ -8747,7 +8742,7 @@ function ToolResultDisplay({
|
|
|
8747
8742
|
(() => {
|
|
8748
8743
|
const errorMessage = result.error || extractErrorMessage(result.result);
|
|
8749
8744
|
if (errorMessage) {
|
|
8750
|
-
return /* @__PURE__ */ jsxs21("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded p-3 mx-4", children: [
|
|
8745
|
+
return /* @__PURE__ */ jsxs21("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded p-3 mx-4 mt-4", children: [
|
|
8751
8746
|
/* @__PURE__ */ jsx35("p", { className: "text-red-800 dark:text-red-300 font-medium", children: "Error:" }),
|
|
8752
8747
|
/* @__PURE__ */ jsx35("p", { className: "text-red-700 dark:text-red-400 text-sm", children: errorMessage })
|
|
8753
8748
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/client/telemetry/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/client/telemetry/init.ts"],"names":[],"mappings":"AAmCA,wBAAgB,sBAAsB,IAAI,IAAI,CAI7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn-shell.d.ts","sourceRoot":"","sources":["../../src/server/cdn-shell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAQzB,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;
|
|
1
|
+
{"version":3,"file":"cdn-shell.d.ts","sourceRoot":"","sources":["../../src/server/cdn-shell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAQzB,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AA+IF;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,IAAI,EACT,MAAM,CAAC,EAAE,cAAc,EACvB,QAAQ,GAAE,MAAW,QA2DtB"}
|
package/dist/server/cdn-shell.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerInspectorCdnShell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BIKA6WIX.js";
|
|
4
4
|
import "./chunk-M5TZA42I.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-3WVGQOQX.js";
|
|
6
6
|
import "./chunk-H6ZCIKBS.js";
|
|
7
7
|
import "./chunk-J4FNYLBF.js";
|
|
8
8
|
import "./chunk-WFT4JHYI.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-M5TZA42I.js";
|
|
4
4
|
import {
|
|
5
5
|
getInspectorVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3WVGQOQX.js";
|
|
7
7
|
import {
|
|
8
8
|
inspectorStylesUrl,
|
|
9
9
|
resolveInspectorAssetUrls,
|
|
@@ -71,6 +71,45 @@ function generateCdnShellHtml(config, basePath, assets) {
|
|
|
71
71
|
<link rel="stylesheet" href="${assets.cssUrl}" />
|
|
72
72
|
<title>Inspector | mcp-use</title>
|
|
73
73
|
<meta name="description" content="Free, open-source MCP Inspector by mcp-use. Connect to any MCP server, test tools, prompts, and resources, inspect RPC logs, and debug MCP apps \u2014 all in your browser." />
|
|
74
|
+
<style>
|
|
75
|
+
:root { color-scheme: light dark; }
|
|
76
|
+
html, body { height: 100%; margin: 0; background-color: #f3f3f3; }
|
|
77
|
+
#root { height: 100%; }
|
|
78
|
+
.mcp-boot {
|
|
79
|
+
display: flex;
|
|
80
|
+
height: 100%;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
background-color: #f3f3f3;
|
|
84
|
+
}
|
|
85
|
+
.mcp-boot-inner {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 16px;
|
|
90
|
+
}
|
|
91
|
+
.mcp-boot-spinner {
|
|
92
|
+
width: 32px;
|
|
93
|
+
height: 32px;
|
|
94
|
+
color: #52525b;
|
|
95
|
+
animation: mcp-boot-spin 1s linear infinite;
|
|
96
|
+
}
|
|
97
|
+
.mcp-boot-label {
|
|
98
|
+
margin: 0;
|
|
99
|
+
font-family: Ubuntu, sans-serif;
|
|
100
|
+
font-size: 0.875rem;
|
|
101
|
+
line-height: 1.25rem;
|
|
102
|
+
color: #52525b;
|
|
103
|
+
}
|
|
104
|
+
@keyframes mcp-boot-spin {
|
|
105
|
+
to { transform: rotate(360deg); }
|
|
106
|
+
}
|
|
107
|
+
@media (prefers-color-scheme: dark) {
|
|
108
|
+
html, body { background-color: #000; }
|
|
109
|
+
.mcp-boot { background-color: #000; }
|
|
110
|
+
.mcp-boot-spinner, .mcp-boot-label { color: #a1a1aa; }
|
|
111
|
+
}
|
|
112
|
+
</style>
|
|
74
113
|
<script>window.__INSPECTOR_VERSION__ = ${JSON.stringify(INSPECTOR_VERSION)};</script>
|
|
75
114
|
${runtimeScripts}
|
|
76
115
|
</head>
|
|
@@ -88,7 +127,27 @@ function generateCdnShellHtml(config, basePath, assets) {
|
|
|
88
127
|
};
|
|
89
128
|
}
|
|
90
129
|
</script>
|
|
91
|
-
<div id="root"
|
|
130
|
+
<div id="root">
|
|
131
|
+
<div class="mcp-boot">
|
|
132
|
+
<div class="mcp-boot-inner">
|
|
133
|
+
<svg
|
|
134
|
+
class="mcp-boot-spinner"
|
|
135
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
136
|
+
viewBox="0 0 24 24"
|
|
137
|
+
fill="none"
|
|
138
|
+
stroke="currentColor"
|
|
139
|
+
stroke-width="2"
|
|
140
|
+
stroke-linecap="round"
|
|
141
|
+
stroke-linejoin="round"
|
|
142
|
+
role="status"
|
|
143
|
+
aria-label="Loading"
|
|
144
|
+
>
|
|
145
|
+
<path d="M21 12a9 9 0 1 1-6.219-8.56" />
|
|
146
|
+
</svg>
|
|
147
|
+
<p class="mcp-boot-label">Connecting to MCP server...</p>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
92
151
|
<script type="module" src="${assets.jsUrl}"></script>
|
|
93
152
|
</body>
|
|
94
153
|
</html>`;
|
package/dist/server/cli.js
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
} from "./chunk-KD7K27XK.js";
|
|
6
6
|
import {
|
|
7
7
|
registerInspectorCdnShell
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BIKA6WIX.js";
|
|
9
9
|
import "./chunk-M5TZA42I.js";
|
|
10
10
|
import {
|
|
11
11
|
getInspectorVersion
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3WVGQOQX.js";
|
|
13
13
|
import "./chunk-H6ZCIKBS.js";
|
|
14
14
|
import {
|
|
15
15
|
registerInspectorProxyRoutes
|
package/dist/server/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountInspector
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KB6CHWZ4.js";
|
|
4
4
|
import {
|
|
5
5
|
registerInspectorCdnShell
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BIKA6WIX.js";
|
|
7
7
|
import "./chunk-M5TZA42I.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-3WVGQOQX.js";
|
|
9
9
|
import "./chunk-H6ZCIKBS.js";
|
|
10
10
|
import {
|
|
11
11
|
registerInspectorProxyRoutes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountInspector
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KB6CHWZ4.js";
|
|
4
|
+
import "./chunk-BIKA6WIX.js";
|
|
5
5
|
import "./chunk-M5TZA42I.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-3WVGQOQX.js";
|
|
7
7
|
import "./chunk-H6ZCIKBS.js";
|
|
8
8
|
import "./chunk-UJLXHNQP.js";
|
|
9
9
|
import "./chunk-IKTZUWSX.js";
|