@mcp-use/inspector 7.0.0-canary.7 → 7.0.0-canary.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/dist/cdn/inspector.js
CHANGED
|
@@ -26903,7 +26903,7 @@ var Ud = class {
|
|
|
26903
26903
|
//#region src/client/telemetry/utils.ts
|
|
26904
26904
|
function of() {
|
|
26905
26905
|
try {
|
|
26906
|
-
return "7.0.0-canary.
|
|
26906
|
+
return "7.0.0-canary.9";
|
|
26907
26907
|
} catch {
|
|
26908
26908
|
return "0.0.0";
|
|
26909
26909
|
}
|
|
@@ -48440,9 +48440,9 @@ var qA, JA, YA, XA, ZA, QA, $A, ej, tj, nj, rj, ij, aj, oj, Kce, qce, sj, cj, lj
|
|
|
48440
48440
|
}(), wue);
|
|
48441
48441
|
}));
|
|
48442
48442
|
//#endregion
|
|
48443
|
-
//#region ../mcp-use/dist/chunk-
|
|
48443
|
+
//#region ../mcp-use/dist/chunk-FJE4UU4Z.js
|
|
48444
48444
|
Yp();
|
|
48445
|
-
var kue = "1.29.0-canary.
|
|
48445
|
+
var kue = "1.29.0-canary.9";
|
|
48446
48446
|
function nI() {
|
|
48447
48447
|
return kue;
|
|
48448
48448
|
}
|
|
@@ -142743,29 +142743,30 @@ function K9({ ref: e, children: t, className: n, variant: r = "default", collaps
|
|
|
142743
142743
|
});
|
|
142744
142744
|
}
|
|
142745
142745
|
K9.displayName = "TabsList";
|
|
142746
|
-
var q1e = ({ children: e, title: t, collapsed: n }) => !t || !n ? e : /* @__PURE__ */ (0, O.jsx)(zd, { children: /* @__PURE__ */ (0, O.jsxs)(Bd, { children: [/* @__PURE__ */ (0, O.jsx)(Vd, { children: e }), /* @__PURE__ */ (0, O.jsx)(Hd, { children: t })] }) }), q9 = A.forwardRef(({ children: e, value: t, className: n, disabled: r, icon: i, title: a, showDot: o = !1, alwaysExpanded: s = !1,
|
|
142747
|
-
let { activeValue:
|
|
142746
|
+
var q1e = ({ children: e, title: t, collapsed: n }) => !t || !n ? e : /* @__PURE__ */ (0, O.jsx)(zd, { children: /* @__PURE__ */ (0, O.jsxs)(Bd, { children: [/* @__PURE__ */ (0, O.jsx)(Vd, { children: e }), /* @__PURE__ */ (0, O.jsx)(Hd, { children: t })] }) }), q9 = A.forwardRef(({ children: e, value: t, className: n, disabled: r, icon: i, title: a, showDot: o = !1, alwaysExpanded: s = !1, badge: c, ...l }, u) => {
|
|
142747
|
+
let { activeValue: d, handleValueChange: f, collapsed: p } = W1e(), m = K1e()?.variant || "default", h = d === t, g = !p || h || s;
|
|
142748
142748
|
return /* @__PURE__ */ (0, O.jsx)(q1e, {
|
|
142749
142749
|
title: a,
|
|
142750
|
-
collapsed:
|
|
142750
|
+
collapsed: p && !g,
|
|
142751
142751
|
children: /* @__PURE__ */ (0, O.jsxs)("button", {
|
|
142752
|
-
ref:
|
|
142752
|
+
ref: u,
|
|
142753
142753
|
disabled: r,
|
|
142754
|
-
onClick: () =>
|
|
142754
|
+
onClick: () => f(t),
|
|
142755
142755
|
"data-tab-value": t,
|
|
142756
|
-
"data-tab-active":
|
|
142756
|
+
"data-tab-active": h,
|
|
142757
142757
|
role: "tab",
|
|
142758
|
-
"aria-selected":
|
|
142759
|
-
title:
|
|
142760
|
-
className: V("relative z-10 flex-1 inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-500 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer",
|
|
142761
|
-
...
|
|
142758
|
+
"aria-selected": h ? "true" : "false",
|
|
142759
|
+
title: p && !g && a ? a : void 0,
|
|
142760
|
+
className: V("relative z-10 flex-1 inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-500 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer", m === "default" && "py-2.5", m === "default" && "rounded-md px-4", m === "underline" && "px-6 py-3 border-b-2 border-transparent", h && "text-foreground", !h && "text-muted-foreground hover:text-foreground", n),
|
|
142761
|
+
...l,
|
|
142762
142762
|
children: [
|
|
142763
|
-
i && /* @__PURE__ */ (0, O.jsx)(i, { className: V("h-4 w-4 transition-all duration-500 ease-in-out",
|
|
142763
|
+
i && /* @__PURE__ */ (0, O.jsx)(i, { className: V("h-4 w-4 shrink-0 transition-all duration-500 ease-in-out", g && "mr-2", !g && "mr-0!") }),
|
|
142764
142764
|
o && /* @__PURE__ */ (0, O.jsx)("span", { className: "absolute top-1.5 right-1.5 w-2 h-2 bg-orange-500 dark:bg-orange-400 border-2 border-white dark:border-zinc-900 rounded-full transition-opacity duration-300 z-10 animate-status-pulse-orange" }),
|
|
142765
142765
|
/* @__PURE__ */ (0, O.jsx)("span", {
|
|
142766
|
-
className: V("transition-all duration-500 ease-in-out overflow-hidden",
|
|
142766
|
+
className: V("min-w-0 transition-all duration-500 ease-in-out overflow-hidden", g ? "w-auto opacity-100" : "w-0 opacity-0"),
|
|
142767
142767
|
children: e
|
|
142768
|
-
})
|
|
142768
|
+
}),
|
|
142769
|
+
c
|
|
142769
142770
|
]
|
|
142770
142771
|
})
|
|
142771
142772
|
});
|
|
@@ -143087,8 +143088,16 @@ function y0e({ chatApiUrl: e, dashboardUrl: t = "https://manufact.com/cloud", fa
|
|
|
143087
143088
|
})] });
|
|
143088
143089
|
}
|
|
143089
143090
|
//#endregion
|
|
143091
|
+
//#region src/client/components/shared/TabCountBadge.tsx
|
|
143092
|
+
function b0e({ count: e, isActive: t, size: n = "md" }) {
|
|
143093
|
+
return e <= 0 ? null : /* @__PURE__ */ (0, O.jsx)("span", {
|
|
143094
|
+
className: V(t ? "dark:bg-black" : "dark:bg-zinc-700", "shrink-0 ml-1 bg-zinc-200 text-zinc-700 dark:text-zinc-300 rounded-full font-medium", n === "sm" && "text-[10px] px-1.5 py-0.5", n === "md" && "text-xs px-2 py-0.5"),
|
|
143095
|
+
children: e
|
|
143096
|
+
});
|
|
143097
|
+
}
|
|
143098
|
+
//#endregion
|
|
143090
143099
|
//#region src/client/components/AddToClientDropdown.tsx
|
|
143091
|
-
function
|
|
143100
|
+
function x0e({ serverConfig: e, additionalItems: t = [], showClients: n = {
|
|
143092
143101
|
cursor: !0,
|
|
143093
143102
|
vsCode: !0,
|
|
143094
143103
|
vsCodeInsiders: !0,
|
|
@@ -143533,7 +143542,7 @@ function Y9({ className: e, state: t = "collapsed", href: n = "https://mcp-use.c
|
|
|
143533
143542
|
strokeLinecap: "round",
|
|
143534
143543
|
strokeLinejoin: "round",
|
|
143535
143544
|
children: [
|
|
143536
|
-
/* @__PURE__ */ (0, O.jsx)(
|
|
143545
|
+
/* @__PURE__ */ (0, O.jsx)(S0e, {
|
|
143537
143546
|
d: "m105.5 34.8.6.6c9.5 9.5 14.4 21.9 14.6 34.4a112.6 112.6 0 0 0 112.2 112.1h.6c12 .4 24 5.1 33.2 14.1l.6.6a50 50 0 0 1-70.1 71.3l-.6-.6A49.9 49.9 0 0 1 182 230 112.6 112.6 0 0 0 73.4 120.7h-.8a49.9 49.9 0 0 1-36.7-14l-.5-.6a50 50 0 0 1-.6-70.2l.6-.5a50 50 0 0 1 69.5-1.2l.6.6Z",
|
|
143538
143547
|
times: {
|
|
143539
143548
|
T0: 0,
|
|
@@ -143543,7 +143552,7 @@ function Y9({ className: e, state: t = "collapsed", href: n = "https://mcp-use.c
|
|
|
143543
143552
|
},
|
|
143544
143553
|
total: s
|
|
143545
143554
|
}),
|
|
143546
|
-
/* @__PURE__ */ (0, O.jsx)(
|
|
143555
|
+
/* @__PURE__ */ (0, O.jsx)(C0e, {
|
|
143547
143556
|
cx: 70.3,
|
|
143548
143557
|
cy: 232.3,
|
|
143549
143558
|
r: 50,
|
|
@@ -143555,7 +143564,7 @@ function Y9({ className: e, state: t = "collapsed", href: n = "https://mcp-use.c
|
|
|
143555
143564
|
},
|
|
143556
143565
|
total: s
|
|
143557
143566
|
}),
|
|
143558
|
-
/* @__PURE__ */ (0, O.jsx)(
|
|
143567
|
+
/* @__PURE__ */ (0, O.jsx)(C0e, {
|
|
143559
143568
|
cx: 232.3,
|
|
143560
143569
|
cy: 70.3,
|
|
143561
143570
|
r: 50,
|
|
@@ -143582,7 +143591,7 @@ function Y9({ className: e, state: t = "collapsed", href: n = "https://mcp-use.c
|
|
|
143582
143591
|
})]
|
|
143583
143592
|
});
|
|
143584
143593
|
}
|
|
143585
|
-
function
|
|
143594
|
+
function S0e({ d: e, times: t, total: n }) {
|
|
143586
143595
|
let { T0: r, T1: i, T2: a, T3: o } = t;
|
|
143587
143596
|
return /* @__PURE__ */ (0, O.jsx)(Q1.path, {
|
|
143588
143597
|
d: e,
|
|
@@ -143618,7 +143627,7 @@ function x0e({ d: e, times: t, total: n }) {
|
|
|
143618
143627
|
}
|
|
143619
143628
|
});
|
|
143620
143629
|
}
|
|
143621
|
-
function
|
|
143630
|
+
function C0e({ cx: e, cy: t, r: n, times: r, total: i }) {
|
|
143622
143631
|
let { T0: a, T1: o, T2: s, T3: c } = r;
|
|
143623
143632
|
return /* @__PURE__ */ (0, O.jsx)(Q1.circle, {
|
|
143624
143633
|
cx: e,
|
|
@@ -143744,7 +143753,7 @@ function X9({ open: e, onOpenChange: t, serverUrl: n, serverName: r, serverId: i
|
|
|
143744
143753
|
}
|
|
143745
143754
|
//#endregion
|
|
143746
143755
|
//#region src/client/components/ui/shimmer-button.tsx
|
|
143747
|
-
function
|
|
143756
|
+
function w0e({ ref: e, shimmerColor: t, shimmerSize: n = "0.05em", shimmerDuration: r = "3s", borderRadius: i = "100px", background: a, className: o, children: s, ...c }) {
|
|
143748
143757
|
let { theme: l } = yV();
|
|
143749
143758
|
return /* @__PURE__ */ (0, O.jsxs)("button", {
|
|
143750
143759
|
style: {
|
|
@@ -143772,10 +143781,10 @@ function C0e({ ref: e, shimmerColor: t, shimmerSize: n = "0.05em", shimmerDurati
|
|
|
143772
143781
|
]
|
|
143773
143782
|
});
|
|
143774
143783
|
}
|
|
143775
|
-
|
|
143784
|
+
w0e.displayName = "ShimmerButton";
|
|
143776
143785
|
//#endregion
|
|
143777
143786
|
//#region src/client/components/ui/status-dot.tsx
|
|
143778
|
-
function
|
|
143787
|
+
function T0e({ status: e }) {
|
|
143779
143788
|
let { color: t, ringColor: n, tooltip: r } = ((e) => {
|
|
143780
143789
|
switch (e) {
|
|
143781
143790
|
case "ready": return {
|
|
@@ -143805,7 +143814,7 @@ function w0e({ status: e }) {
|
|
|
143805
143814
|
}
|
|
143806
143815
|
//#endregion
|
|
143807
143816
|
//#region src/client/components/ServerDropdown.tsx
|
|
143808
|
-
function
|
|
143817
|
+
function E0e({ connections: e, selectedServer: t, onServerSelect: n, onOpenConnectionOptions: r, mobileMode: i = !1 }) {
|
|
143809
143818
|
let a = IR(), [o, s] = (0, A.useState)(!1), [c, l] = (0, A.useState)(null), u = (t) => {
|
|
143810
143819
|
let r = e.find((e) => e.id === t);
|
|
143811
143820
|
if (!r || r.state !== "ready") {
|
|
@@ -143854,7 +143863,7 @@ function T0e({ connections: e, selectedServer: t, onServerSelect: n, onOpenConne
|
|
|
143854
143863
|
children: [/* @__PURE__ */ (0, O.jsx)("div", {
|
|
143855
143864
|
className: "font-medium",
|
|
143856
143865
|
children: hR(e)
|
|
143857
|
-
}), /* @__PURE__ */ (0, O.jsx)(
|
|
143866
|
+
}), /* @__PURE__ */ (0, O.jsx)(T0e, { status: e.state })]
|
|
143858
143867
|
}),
|
|
143859
143868
|
/* @__PURE__ */ (0, O.jsxs)("div", {
|
|
143860
143869
|
className: "flex items-center gap-1",
|
|
@@ -143900,7 +143909,7 @@ function T0e({ connections: e, selectedServer: t, onServerSelect: n, onOpenConne
|
|
|
143900
143909
|
children: [/* @__PURE__ */ (0, O.jsxs)(nu, { children: [
|
|
143901
143910
|
/* @__PURE__ */ (0, O.jsx)(ru, {
|
|
143902
143911
|
asChild: !0,
|
|
143903
|
-
children: /* @__PURE__ */ (0, O.jsxs)(
|
|
143912
|
+
children: /* @__PURE__ */ (0, O.jsxs)(w0e, {
|
|
143904
143913
|
className: V("min-w-0 sm:min-w-[200px] p-0 px-1 text-sm h-11 justify-start text-white dark:text-black border-black dark:border-white hover:bg-gray-800 dark:hover:bg-zinc-100 hover:border-gray-800 dark:hover:border-zinc-200", !t && "pl-4", t && "pr-20"),
|
|
143905
143914
|
children: [t && /* @__PURE__ */ (0, O.jsx)(t0, {
|
|
143906
143915
|
server: t,
|
|
@@ -143983,7 +143992,7 @@ function T0e({ connections: e, selectedServer: t, onServerSelect: n, onOpenConne
|
|
|
143983
143992
|
children: [/* @__PURE__ */ (0, O.jsx)("div", {
|
|
143984
143993
|
className: "font-medium",
|
|
143985
143994
|
children: hR(e)
|
|
143986
|
-
}), /* @__PURE__ */ (0, O.jsx)(
|
|
143995
|
+
}), /* @__PURE__ */ (0, O.jsx)(T0e, { status: e.state })]
|
|
143987
143996
|
}),
|
|
143988
143997
|
/* @__PURE__ */ (0, O.jsxs)("div", {
|
|
143989
143998
|
className: "flex items-center gap-1",
|
|
@@ -144027,7 +144036,7 @@ function T0e({ connections: e, selectedServer: t, onServerSelect: n, onOpenConne
|
|
|
144027
144036
|
}
|
|
144028
144037
|
//#endregion
|
|
144029
144038
|
//#region src/client/components/LayoutHeader.tsx
|
|
144030
|
-
var
|
|
144039
|
+
var D0e = [
|
|
144031
144040
|
{
|
|
144032
144041
|
id: "chat",
|
|
144033
144042
|
label: "Chat",
|
|
@@ -144066,17 +144075,17 @@ var E0e = [
|
|
|
144066
144075
|
icon: Tf
|
|
144067
144076
|
}
|
|
144068
144077
|
];
|
|
144069
|
-
function
|
|
144078
|
+
function O0e(e, t) {
|
|
144070
144079
|
return e === "tools" ? t.tools.length : e === "prompts" ? t.prompts.length : e === "resources" ? t.resources.length : e === "sampling" ? t.pendingSamplingRequests?.length || 0 : e === "elicitation" ? t.pendingElicitationRequests?.length || 0 : e === "notifications" ? t.unreadNotificationCount : 0;
|
|
144071
144080
|
}
|
|
144072
|
-
function
|
|
144081
|
+
function k0e(e, t, n) {
|
|
144073
144082
|
return n && t > 0 && [
|
|
144074
144083
|
"sampling",
|
|
144075
144084
|
"elicitation",
|
|
144076
144085
|
"notifications"
|
|
144077
144086
|
].includes(e);
|
|
144078
144087
|
}
|
|
144079
|
-
function
|
|
144088
|
+
function A0e({ collapsed: e, onToggle: t }) {
|
|
144080
144089
|
return /* @__PURE__ */ (0, O.jsxs)(Bd, { children: [/* @__PURE__ */ (0, O.jsx)(Vd, {
|
|
144081
144090
|
asChild: !0,
|
|
144082
144091
|
children: /* @__PURE__ */ (0, O.jsx)("button", {
|
|
@@ -144088,7 +144097,7 @@ function k0e({ collapsed: e, onToggle: t }) {
|
|
|
144088
144097
|
})
|
|
144089
144098
|
}), /* @__PURE__ */ (0, O.jsx)(Hd, { children: /* @__PURE__ */ (0, O.jsx)("p", { children: e ? "Expand tabs" : "Collapse tabs" }) })] });
|
|
144090
144099
|
}
|
|
144091
|
-
function
|
|
144100
|
+
function j0e(e) {
|
|
144092
144101
|
try {
|
|
144093
144102
|
let t = new URL(e).hostname.toLowerCase();
|
|
144094
144103
|
return t === "localhost" || t === "127.0.0.1" || t === "::1" || t === "0.0.0.0";
|
|
@@ -144096,14 +144105,14 @@ function A0e(e) {
|
|
|
144096
144105
|
return !1;
|
|
144097
144106
|
}
|
|
144098
144107
|
}
|
|
144099
|
-
function
|
|
144108
|
+
function M0e(e) {
|
|
144100
144109
|
try {
|
|
144101
144110
|
return new URL(e).hostname.endsWith(".mcp-use.run");
|
|
144102
144111
|
} catch {
|
|
144103
144112
|
return !1;
|
|
144104
144113
|
}
|
|
144105
144114
|
}
|
|
144106
|
-
function
|
|
144115
|
+
function N0e(e) {
|
|
144107
144116
|
if (!e) return null;
|
|
144108
144117
|
try {
|
|
144109
144118
|
let t = new URL(e);
|
|
@@ -144116,7 +144125,7 @@ var Z9 = {
|
|
|
144116
144125
|
stopping: "Stopping tunnel…",
|
|
144117
144126
|
reconnecting: "Reconnecting…"
|
|
144118
144127
|
};
|
|
144119
|
-
function
|
|
144128
|
+
function P0e({ tunnelUrl: e, isTunnelStarting: t, setTunnelUrl: n, setIsTunnelStarting: r, copied: i, setCopied: a, handleCopy: o }) {
|
|
144120
144129
|
let [s, c] = (0, A.useState)(!1), [l, u] = (0, A.useState)(null), [d, f] = (0, A.useState)(0), [p, m] = (0, A.useState)(Z9.starting);
|
|
144121
144130
|
(0, A.useEffect)(() => {
|
|
144122
144131
|
if (!t) {
|
|
@@ -144145,7 +144154,7 @@ function N0e({ tunnelUrl: e, isTunnelStarting: t, setTunnelUrl: n, setIsTunnelSt
|
|
|
144145
144154
|
if (e) return;
|
|
144146
144155
|
if (u(!!r.fromCli), r.tunnelUrl) n(new URL(r.tunnelUrl).origin);
|
|
144147
144156
|
else {
|
|
144148
|
-
let e =
|
|
144157
|
+
let e = N0e(r.mcpUrl ?? null);
|
|
144149
144158
|
e && n(e);
|
|
144150
144159
|
}
|
|
144151
144160
|
} catch {
|
|
@@ -144350,10 +144359,10 @@ function N0e({ tunnelUrl: e, isTunnelStarting: t, setTunnelUrl: n, setIsTunnelSt
|
|
|
144350
144359
|
})]
|
|
144351
144360
|
});
|
|
144352
144361
|
}
|
|
144353
|
-
function
|
|
144354
|
-
let { tunnelUrl: c, isTunnelStarting: l, setTunnelUrl: u, setIsTunnelStarting: d, embeddedConfig: f } = i0(), { theme: p, setTheme: m } = yV(), h = !!t && (
|
|
144362
|
+
function F0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect: r, onTabChange: i, onCommandPaletteOpen: a, onOpenConnectionOptions: o, embedded: s = !1 }) {
|
|
144363
|
+
let { tunnelUrl: c, isTunnelStarting: l, setTunnelUrl: u, setIsTunnelStarting: d, embeddedConfig: f } = i0(), { theme: p, setTheme: m } = yV(), h = !!t && (j0e(t.url) || M0e(t.url) || !!c), [g, _] = (0, A.useState)(!1), [v, y] = (0, A.useState)(!1), [b, x] = (0, A.useState)(!1), [S, C] = (0, A.useState)(!0), [w, T] = (0, A.useState)(!1);
|
|
144355
144364
|
if (f.singleTab) return null;
|
|
144356
|
-
let E = f.visibleTabs ?
|
|
144365
|
+
let E = f.visibleTabs ? D0e.filter((e) => e.id === "separator" || f.visibleTabs.includes(e.id)) : D0e, D = async () => {
|
|
144357
144366
|
if (c) try {
|
|
144358
144367
|
await pR(`${c}/mcp`), _(!0), vz.success("Tunnel URL copied to clipboard"), setTimeout(() => _(!1), 2e3);
|
|
144359
144368
|
} catch {
|
|
@@ -144369,7 +144378,7 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144369
144378
|
children: [
|
|
144370
144379
|
!s && /* @__PURE__ */ (0, O.jsx)("div", {
|
|
144371
144380
|
className: "flex-1 flex justify-start",
|
|
144372
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
144381
|
+
children: /* @__PURE__ */ (0, O.jsx)(E0e, {
|
|
144373
144382
|
connections: e,
|
|
144374
144383
|
selectedServer: t,
|
|
144375
144384
|
onServerSelect: r,
|
|
@@ -144390,7 +144399,7 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144390
144399
|
t && (() => {
|
|
144391
144400
|
let e = hR(t);
|
|
144392
144401
|
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
|
|
144393
|
-
/* @__PURE__ */ (0, O.jsx)(
|
|
144402
|
+
/* @__PURE__ */ (0, O.jsx)(x0e, {
|
|
144394
144403
|
serverConfig: {
|
|
144395
144404
|
url: c ? `${c}/mcp` : t.url,
|
|
144396
144405
|
name: e,
|
|
@@ -144451,7 +144460,7 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144451
144460
|
})
|
|
144452
144461
|
] });
|
|
144453
144462
|
})(),
|
|
144454
|
-
h && /* @__PURE__ */ (0, O.jsx)(
|
|
144463
|
+
h && /* @__PURE__ */ (0, O.jsx)(P0e, {
|
|
144455
144464
|
tunnelUrl: c,
|
|
144456
144465
|
isTunnelStarting: l,
|
|
144457
144466
|
setTunnelUrl: u,
|
|
@@ -144542,21 +144551,23 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144542
144551
|
className: "w-full justify-center",
|
|
144543
144552
|
children: E.map((e) => {
|
|
144544
144553
|
if (e.id === "separator") return /* @__PURE__ */ (0, O.jsx)("div", { className: "h-5 w-px bg-zinc-300 dark:bg-zinc-600 mx-1 shrink-0" }, "separator");
|
|
144545
|
-
let r =
|
|
144546
|
-
return /* @__PURE__ */ (0, O.
|
|
144554
|
+
let r = O0e(e.id, t), i = k0e(e.id, r, S);
|
|
144555
|
+
return /* @__PURE__ */ (0, O.jsx)(q9, {
|
|
144547
144556
|
value: e.id,
|
|
144548
144557
|
"data-testid": `tab-${e.id}`,
|
|
144549
144558
|
icon: e.icon,
|
|
144550
144559
|
showDot: i,
|
|
144560
|
+
badge: /* @__PURE__ */ (0, O.jsx)(b0e, {
|
|
144561
|
+
count: r,
|
|
144562
|
+
isActive: n === e.id,
|
|
144563
|
+
size: "sm"
|
|
144564
|
+
}),
|
|
144551
144565
|
alwaysExpanded: "alwaysExpanded" in e && e.alwaysExpanded,
|
|
144552
144566
|
className: V("[&>svg]:mr-0 flex-1 flex-row gap-2 relative", S && "pl-2"),
|
|
144553
|
-
children:
|
|
144554
|
-
className: V(n === e.id ? "dark:bg-black" : "dark:bg-zinc-700", "bg-zinc-200 text-zinc-700 dark:text-zinc-300 text-[10px] px-1.5 py-0.5 rounded-full font-medium"),
|
|
144555
|
-
children: r
|
|
144556
|
-
}), /* @__PURE__ */ (0, O.jsx)("span", {
|
|
144567
|
+
children: /* @__PURE__ */ (0, O.jsx)("span", {
|
|
144557
144568
|
className: "sr-only",
|
|
144558
144569
|
children: e.label
|
|
144559
|
-
})
|
|
144570
|
+
})
|
|
144560
144571
|
}, e.id);
|
|
144561
144572
|
})
|
|
144562
144573
|
})
|
|
@@ -144566,7 +144577,7 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144566
144577
|
className: "hidden lg:flex items-center justify-between gap-3",
|
|
144567
144578
|
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
|
|
144568
144579
|
className: "flex items-center flex-wrap gap-2 md:space-x-6 space-x-2",
|
|
144569
|
-
children: [!s && /* @__PURE__ */ (0, O.jsx)(
|
|
144580
|
+
children: [!s && /* @__PURE__ */ (0, O.jsx)(E0e, {
|
|
144570
144581
|
connections: e,
|
|
144571
144582
|
selectedServer: t,
|
|
144572
144583
|
onServerSelect: r,
|
|
@@ -144583,26 +144594,27 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144583
144594
|
collapsible: !0,
|
|
144584
144595
|
children: E.map((e) => {
|
|
144585
144596
|
if (e.id === "separator") return /* @__PURE__ */ (0, O.jsx)("div", { className: "h-5 w-px bg-zinc-300 dark:bg-zinc-600 mx-1 shrink-0" }, "separator");
|
|
144586
|
-
let r =
|
|
144597
|
+
let r = O0e(e.id, t), i = r > 0 ? `${e.label} (${r})` : e.label, a = k0e(e.id, r, S);
|
|
144587
144598
|
return /* @__PURE__ */ (0, O.jsx)(q9, {
|
|
144588
144599
|
value: e.id,
|
|
144589
144600
|
"data-testid": `tab-${e.id}`,
|
|
144590
144601
|
icon: e.icon,
|
|
144591
144602
|
showDot: a,
|
|
144603
|
+
badge: /* @__PURE__ */ (0, O.jsx)(b0e, {
|
|
144604
|
+
count: r,
|
|
144605
|
+
isActive: n === e.id
|
|
144606
|
+
}),
|
|
144592
144607
|
alwaysExpanded: "alwaysExpanded" in e && e.alwaysExpanded,
|
|
144593
144608
|
className: V("[&>svg]:mr-0 lg:[&>svg]:mr-2 relative", S && "pl-4"),
|
|
144594
144609
|
title: i,
|
|
144595
|
-
children: /* @__PURE__ */ (0, O.
|
|
144610
|
+
children: /* @__PURE__ */ (0, O.jsx)("span", {
|
|
144596
144611
|
className: "items-center gap-2 hidden lg:flex",
|
|
144597
|
-
children:
|
|
144598
|
-
className: V(n === e.id ? " dark:bg-black " : "dark:bg-zinc-700", "bg-zinc-200 text-zinc-700 dark:text-zinc-300 text-xs px-2 py-0.5 rounded-full font-medium"),
|
|
144599
|
-
children: r
|
|
144600
|
-
})]
|
|
144612
|
+
children: e.label
|
|
144601
144613
|
})
|
|
144602
144614
|
}, e.id);
|
|
144603
144615
|
})
|
|
144604
144616
|
})
|
|
144605
|
-
}), /* @__PURE__ */ (0, O.jsx)(
|
|
144617
|
+
}), /* @__PURE__ */ (0, O.jsx)(A0e, {
|
|
144606
144618
|
collapsed: S,
|
|
144607
144619
|
onToggle: () => C(!S)
|
|
144608
144620
|
})]
|
|
@@ -144613,7 +144625,7 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144613
144625
|
t && (() => {
|
|
144614
144626
|
let e = hR(t);
|
|
144615
144627
|
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
|
|
144616
|
-
/* @__PURE__ */ (0, O.jsx)(
|
|
144628
|
+
/* @__PURE__ */ (0, O.jsx)(x0e, {
|
|
144617
144629
|
serverConfig: {
|
|
144618
144630
|
url: c ? `${c}/mcp` : t.url,
|
|
144619
144631
|
name: e,
|
|
@@ -144674,7 +144686,7 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144674
144686
|
})
|
|
144675
144687
|
] });
|
|
144676
144688
|
})(),
|
|
144677
|
-
h && /* @__PURE__ */ (0, O.jsx)(
|
|
144689
|
+
h && /* @__PURE__ */ (0, O.jsx)(P0e, {
|
|
144678
144690
|
tunnelUrl: c,
|
|
144679
144691
|
isTunnelStarting: l,
|
|
144680
144692
|
setTunnelUrl: u,
|
|
@@ -144786,7 +144798,7 @@ function P0e({ connections: e, selectedServer: t, activeTab: n, onServerSelect:
|
|
|
144786
144798
|
}
|
|
144787
144799
|
//#endregion
|
|
144788
144800
|
//#region src/client/components/Layout.tsx
|
|
144789
|
-
function
|
|
144801
|
+
function I0e({ children: e }) {
|
|
144790
144802
|
let t = IR(), n = NR(), { servers: r, addServer: i, removeServer: a, updateServerMetadata: o, updateServer: s, storageLoaded: c } = fR(), l = (0, A.useCallback)((e, t, n, r, a) => {
|
|
144791
144803
|
i(e, {
|
|
144792
144804
|
url: e,
|
|
@@ -145089,7 +145101,7 @@ function F0e({ children: e }) {
|
|
|
145089
145101
|
className: y ? ce ? "h-screen flex flex-col" : "h-screen flex flex-col gap-2 sm:gap-4" : "h-screen bg-[#f3f3f3] dark:bg-black flex flex-col px-2 py-2 sm:px-4 sm:py-4 gap-2 sm:gap-4",
|
|
145090
145102
|
style: le,
|
|
145091
145103
|
children: [
|
|
145092
|
-
!ce && /* @__PURE__ */ (0, O.jsx)(
|
|
145104
|
+
!ce && /* @__PURE__ */ (0, O.jsx)(F0e, {
|
|
145093
145105
|
connections: r,
|
|
145094
145106
|
selectedServer: R,
|
|
145095
145107
|
activeTab: m,
|
|
@@ -145146,14 +145158,14 @@ function Q9(e) {
|
|
|
145146
145158
|
} catch {
|
|
145147
145159
|
t();
|
|
145148
145160
|
}
|
|
145149
|
-
return n.protocol !== "https:" && n.protocol !== "http:" && t(), n.hostname !== encodeURIComponent(n.hostname) && t(), n.username &&= encodeURIComponent(n.username), n.password &&= encodeURIComponent(n.password), n.pathname = n.pathname.slice(0, 1) + encodeURIComponent(n.pathname.slice(1)).replace(/%2f/gi, "/"), n.search = n.search.slice(0, 1) + Array.from(n.searchParams.entries()).map(
|
|
145161
|
+
return n.protocol !== "https:" && n.protocol !== "http:" && t(), n.hostname !== encodeURIComponent(n.hostname) && t(), n.username &&= encodeURIComponent(n.username), n.password &&= encodeURIComponent(n.password), n.pathname = n.pathname.slice(0, 1) + encodeURIComponent(n.pathname.slice(1)).replace(/%2f/gi, "/"), n.search = n.search.slice(0, 1) + Array.from(n.searchParams.entries()).map(L0e).join("&"), n.hash = n.hash.slice(0, 1) + encodeURIComponent(n.hash.slice(1)), n.href;
|
|
145150
145162
|
}
|
|
145151
145163
|
W(Q9, "sanitizeUrl");
|
|
145152
|
-
function
|
|
145164
|
+
function L0e([e, t]) {
|
|
145153
145165
|
return `${encodeURIComponent(e)}${t.length > 0 ? `=${encodeURIComponent(t)}` : ""}`;
|
|
145154
145166
|
}
|
|
145155
|
-
W(
|
|
145156
|
-
var
|
|
145167
|
+
W(L0e, "sanitizeParam");
|
|
145168
|
+
var R0e = class e {
|
|
145157
145169
|
static {
|
|
145158
145170
|
W(this, "OAuthSessionStore");
|
|
145159
145171
|
}
|
|
@@ -145327,7 +145339,7 @@ var L0e = class e {
|
|
|
145327
145339
|
//#endregion
|
|
145328
145340
|
//#region ../mcp-use/dist/chunk-ZXGVZARC.js
|
|
145329
145341
|
Yp();
|
|
145330
|
-
var
|
|
145342
|
+
var z0e = class {
|
|
145331
145343
|
static {
|
|
145332
145344
|
W(this, "LocalStorageKVStore");
|
|
145333
145345
|
}
|
|
@@ -145349,11 +145361,11 @@ var R0e = class {
|
|
|
145349
145361
|
return e;
|
|
145350
145362
|
}
|
|
145351
145363
|
};
|
|
145352
|
-
async function
|
|
145364
|
+
async function B0e(e) {
|
|
145353
145365
|
return typeof e == "string" ? e : e instanceof URLSearchParams || e instanceof FormData ? Object.fromEntries(e.entries()) : e instanceof Blob ? await e.text() : e;
|
|
145354
145366
|
}
|
|
145355
|
-
W(
|
|
145356
|
-
var
|
|
145367
|
+
W(B0e, "serializeBody");
|
|
145368
|
+
var V0e = class {
|
|
145357
145369
|
static {
|
|
145358
145370
|
W(this, "BrowserOAuthClientProvider");
|
|
145359
145371
|
}
|
|
@@ -145368,7 +145380,7 @@ var B0e = class {
|
|
|
145368
145380
|
_lastOriginalResource = null;
|
|
145369
145381
|
onPopupWindow;
|
|
145370
145382
|
constructor(e, t = {}) {
|
|
145371
|
-
this.serverUrl = e, this.session = new
|
|
145383
|
+
this.serverUrl = e, this.session = new R0e(e, t, new z0e()), this.preventAutoAuth = t.preventAutoAuth, this.useRedirectFlow = t.useRedirectFlow, this.oauthProxyUrl = t.oauthProxyUrl, this.connectionUrl = t.connectionUrl, this.staticClientInfo = t.staticClientInfo, this.onPopupWindow = t.onPopupWindow;
|
|
145372
145384
|
}
|
|
145373
145385
|
get storageKeyPrefix() {
|
|
145374
145386
|
return this.session.storageKeyPrefix;
|
|
@@ -145432,7 +145444,7 @@ var B0e = class {
|
|
|
145432
145444
|
} catch {}
|
|
145433
145445
|
return o;
|
|
145434
145446
|
}
|
|
145435
|
-
let c = a?.body ? await
|
|
145447
|
+
let c = a?.body ? await B0e(a.body) : void 0, l = await (await r(s, {
|
|
145436
145448
|
method: "POST",
|
|
145437
145449
|
headers: { "Content-Type": "application/json" },
|
|
145438
145450
|
body: JSON.stringify({
|
|
@@ -145539,7 +145551,7 @@ var B0e = class {
|
|
|
145539
145551
|
}), r;
|
|
145540
145552
|
}
|
|
145541
145553
|
};
|
|
145542
|
-
async function
|
|
145554
|
+
async function H0e() {
|
|
145543
145555
|
let e = new URLSearchParams(window.location.search), t = e.get("code"), n = e.get("state"), r = e.get("error"), i = e.get("error_description"), a = "[mcp-callback]";
|
|
145544
145556
|
console.log(`${a} Handling callback...`, {
|
|
145545
145557
|
code: t,
|
|
@@ -145608,7 +145620,7 @@ async function V0e() {
|
|
|
145608
145620
|
} catch (e) {
|
|
145609
145621
|
console.warn(`${a} Could not infer OAuth proxy URL:`, e);
|
|
145610
145622
|
}
|
|
145611
|
-
console.log(`${a} Re-instantiating provider for server: ${u}`), o = new
|
|
145623
|
+
console.log(`${a} Re-instantiating provider for server: ${u}`), o = new V0e(u, {
|
|
145612
145624
|
...d,
|
|
145613
145625
|
oauthProxyUrl: h,
|
|
145614
145626
|
connectionUrl: g
|
|
@@ -145665,8 +145677,8 @@ async function V0e() {
|
|
|
145665
145677
|
c && localStorage.removeItem(c), o && localStorage.removeItem(o.getKey("last_auth_url"));
|
|
145666
145678
|
}
|
|
145667
145679
|
}
|
|
145668
|
-
W(
|
|
145669
|
-
async function
|
|
145680
|
+
W(H0e, "onMcpAuthorization");
|
|
145681
|
+
async function U0e(e, t = fetch) {
|
|
145670
145682
|
let n = e.replace(/\/$/, ""), r = await t(n.endsWith("/mcp") ? n : `${n}/mcp`, {
|
|
145671
145683
|
method: "POST",
|
|
145672
145684
|
headers: { "Content-Type": "application/json" },
|
|
@@ -145684,13 +145696,13 @@ async function H0e(e, t = fetch) {
|
|
|
145684
145696
|
scope: a
|
|
145685
145697
|
};
|
|
145686
145698
|
}
|
|
145687
|
-
W(
|
|
145699
|
+
W(U0e, "probeAuthParams");
|
|
145688
145700
|
//#endregion
|
|
145689
145701
|
//#region src/client/components/OAuthCallback.tsx
|
|
145690
|
-
function
|
|
145702
|
+
function W0e() {
|
|
145691
145703
|
let [e, t] = (0, A.useState)("processing"), [n, r] = (0, A.useState)("");
|
|
145692
145704
|
return (0, A.useEffect)(() => {
|
|
145693
|
-
console.log("[OAuthCallback] Component mounted, handling authorization..."), console.log("[OAuthCallback] Current URL:", window.location.href),
|
|
145705
|
+
console.log("[OAuthCallback] Component mounted, handling authorization..."), console.log("[OAuthCallback] Current URL:", window.location.href), H0e().then(() => {
|
|
145694
145706
|
console.log("[OAuthCallback] Authorization successful"), t("success");
|
|
145695
145707
|
}).catch((e) => {
|
|
145696
145708
|
console.error("[OAuthCallback] Authorization failed:", e), t("error"), r(e instanceof Error ? e.message : String(e));
|
|
@@ -145739,7 +145751,7 @@ function U0e() {
|
|
|
145739
145751
|
}
|
|
145740
145752
|
//#endregion
|
|
145741
145753
|
//#region src/client/types/sampling.ts
|
|
145742
|
-
var
|
|
145754
|
+
var G0e = {
|
|
145743
145755
|
model: "stub-model",
|
|
145744
145756
|
stopReason: "endTurn",
|
|
145745
145757
|
role: "assistant",
|
|
@@ -145750,7 +145762,7 @@ var W0e = {
|
|
|
145750
145762
|
};
|
|
145751
145763
|
//#endregion
|
|
145752
145764
|
//#region src/client/components/sampling/SamplingRequestToast.tsx
|
|
145753
|
-
function
|
|
145765
|
+
function K0e({ requestId: e, serverName: t, onViewDetails: n, onApprove: r, onDeny: i }) {
|
|
145754
145766
|
return /* @__PURE__ */ (0, O.jsxs)("div", {
|
|
145755
145767
|
className: "space-y-3",
|
|
145756
145768
|
children: [/* @__PURE__ */ (0, O.jsxs)("div", { children: [/* @__PURE__ */ (0, O.jsx)("strong", { children: "Sampling Request Received" }), /* @__PURE__ */ (0, O.jsxs)("p", {
|
|
@@ -145771,7 +145783,7 @@ function G0e({ requestId: e, serverName: t, onViewDetails: n, onApprove: r, onDe
|
|
|
145771
145783
|
"data-testid": "sampling-toast-approve",
|
|
145772
145784
|
className: "px-3 py-1.5 text-xs font-medium rounded-md hover:bg-accent hover:text-accent-foreground",
|
|
145773
145785
|
onClick: (e) => {
|
|
145774
|
-
e.stopPropagation(), r(
|
|
145786
|
+
e.stopPropagation(), r(G0e);
|
|
145775
145787
|
},
|
|
145776
145788
|
children: "Approve"
|
|
145777
145789
|
}),
|
|
@@ -145789,8 +145801,8 @@ function G0e({ requestId: e, serverName: t, onViewDetails: n, onApprove: r, onDe
|
|
|
145789
145801
|
}
|
|
145790
145802
|
//#endregion
|
|
145791
145803
|
//#region src/client/components/ViewPreview.tsx
|
|
145792
|
-
var $9 = "preview-default",
|
|
145793
|
-
function
|
|
145804
|
+
var $9 = "preview-default", q0e = "preview-bundle";
|
|
145805
|
+
function J0e(e) {
|
|
145794
145806
|
if (!e) return {};
|
|
145795
145807
|
try {
|
|
145796
145808
|
let t = atob(e), n = JSON.parse(t);
|
|
@@ -145798,17 +145810,17 @@ function q0e(e) {
|
|
|
145798
145810
|
} catch {}
|
|
145799
145811
|
return {};
|
|
145800
145812
|
}
|
|
145801
|
-
function
|
|
145813
|
+
function Y0e(e, t) {
|
|
145802
145814
|
let n = `ui://widget/${t}`, r = e.find((e) => e.uri.startsWith(`${n}.`) && e.uri.endsWith(".html"));
|
|
145803
145815
|
return r ? r.uri : e.find((e) => e.name === t)?.uri;
|
|
145804
145816
|
}
|
|
145805
|
-
function
|
|
145817
|
+
function X0e() {
|
|
145806
145818
|
let e = globalThis.__mcpUsePreviewBundle;
|
|
145807
145819
|
if (!e || typeof e != "object") return;
|
|
145808
145820
|
let t = e;
|
|
145809
145821
|
if (typeof t.resourceUri == "string") return t;
|
|
145810
145822
|
}
|
|
145811
|
-
function
|
|
145823
|
+
function Z0e() {
|
|
145812
145824
|
(0, A.useEffect)(() => {
|
|
145813
145825
|
let e = document.documentElement, t = document.body, n = e.style.margin, r = t.style.margin, i = t.style.overflow;
|
|
145814
145826
|
return e.style.margin = "0", t.style.margin = "0", t.style.overflow = "hidden", () => {
|
|
@@ -145816,7 +145828,7 @@ function X0e() {
|
|
|
145816
145828
|
};
|
|
145817
145829
|
}, []);
|
|
145818
145830
|
}
|
|
145819
|
-
function
|
|
145831
|
+
function Q0e(e) {
|
|
145820
145832
|
(0, A.useEffect)(() => {
|
|
145821
145833
|
if (!e) return;
|
|
145822
145834
|
let t = !1;
|
|
@@ -145830,9 +145842,9 @@ function Z0e(e) {
|
|
|
145830
145842
|
};
|
|
145831
145843
|
}, [e]);
|
|
145832
145844
|
}
|
|
145833
|
-
function
|
|
145845
|
+
function $0e({ view: e, bundle: t }) {
|
|
145834
145846
|
let [n, r] = (0, A.useState)(!1);
|
|
145835
|
-
|
|
145847
|
+
Z0e(), Q0e(n);
|
|
145836
145848
|
let i = (0, A.useMemo)(() => async (e) => {
|
|
145837
145849
|
if (e === t.resourceUri) return t.resourceContents;
|
|
145838
145850
|
throw Error(`Resource ${e} not in screenshot bundle`);
|
|
@@ -145843,7 +145855,7 @@ function Q0e({ view: e, bundle: t }) {
|
|
|
145843
145855
|
height: "100vh"
|
|
145844
145856
|
},
|
|
145845
145857
|
children: /* @__PURE__ */ (0, O.jsx)(z7, {
|
|
145846
|
-
serverId:
|
|
145858
|
+
serverId: q0e,
|
|
145847
145859
|
toolCallId: (0, A.useMemo)(() => `preview-bundle-${e}-${Date.now().toString(36)}`, [e]),
|
|
145848
145860
|
toolName: e,
|
|
145849
145861
|
toolInput: t.toolInput,
|
|
@@ -145857,8 +145869,8 @@ function Q0e({ view: e, bundle: t }) {
|
|
|
145857
145869
|
})
|
|
145858
145870
|
});
|
|
145859
145871
|
}
|
|
145860
|
-
function
|
|
145861
|
-
let [t] = xge(), n = (0, A.useMemo)(() =>
|
|
145872
|
+
function e2e({ view: e }) {
|
|
145873
|
+
let [t] = xge(), n = (0, A.useMemo)(() => J0e(t.get("props")), [t]), r = (0, A.useMemo)(() => t.get("server") || `${window.location.origin}/mcp`, [t]), i = (0, A.useMemo)(() => {
|
|
145862
145874
|
let e = t.get("headers");
|
|
145863
145875
|
if (e) try {
|
|
145864
145876
|
let t = JSON.parse(atob(e));
|
|
@@ -145878,7 +145890,7 @@ function $0e({ view: e }) {
|
|
|
145878
145890
|
o
|
|
145879
145891
|
]);
|
|
145880
145892
|
let l = c?.state === "ready", u = c?.state === "failed", d = (0, A.useMemo)(() => {
|
|
145881
|
-
if (l) return
|
|
145893
|
+
if (l) return Y0e(c.resources, e);
|
|
145882
145894
|
}, [
|
|
145883
145895
|
l,
|
|
145884
145896
|
c?.resources,
|
|
@@ -145887,7 +145899,7 @@ function $0e({ view: e }) {
|
|
|
145887
145899
|
if (!c?.readResource) throw Error("Server not ready");
|
|
145888
145900
|
return c.readResource(e);
|
|
145889
145901
|
}, [c]), [m, h] = (0, A.useState)(!1);
|
|
145890
|
-
return
|
|
145902
|
+
return Q0e(m), Z0e(), u ? /* @__PURE__ */ (0, O.jsxs)("div", {
|
|
145891
145903
|
style: {
|
|
145892
145904
|
padding: 16,
|
|
145893
145905
|
fontFamily: "monospace",
|
|
@@ -145942,16 +145954,16 @@ function $0e({ view: e }) {
|
|
|
145942
145954
|
})
|
|
145943
145955
|
});
|
|
145944
145956
|
}
|
|
145945
|
-
function
|
|
145946
|
-
let e = Ehe().view ?? "", t = (0, A.useMemo)(() =>
|
|
145947
|
-
return t ? /* @__PURE__ */ (0, O.jsx)(
|
|
145957
|
+
function t2e() {
|
|
145958
|
+
let e = Ehe().view ?? "", t = (0, A.useMemo)(() => X0e(), []);
|
|
145959
|
+
return t ? /* @__PURE__ */ (0, O.jsx)($0e, {
|
|
145948
145960
|
view: e,
|
|
145949
145961
|
bundle: t
|
|
145950
|
-
}) : /* @__PURE__ */ (0, O.jsx)(
|
|
145962
|
+
}) : /* @__PURE__ */ (0, O.jsx)(e2e, { view: e });
|
|
145951
145963
|
}
|
|
145952
145964
|
//#endregion
|
|
145953
145965
|
//#region ../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next-themes/dist/index.mjs
|
|
145954
|
-
var
|
|
145966
|
+
var n2e = (e, t, n, r, i, a, o, s) => {
|
|
145955
145967
|
let c = document.documentElement, l = ["light", "dark"];
|
|
145956
145968
|
function u(t) {
|
|
145957
145969
|
(Array.isArray(e) ? e : [e]).forEach((e) => {
|
|
@@ -145970,10 +145982,10 @@ var t2e = (e, t, n, r, i, a, o, s) => {
|
|
|
145970
145982
|
let e = localStorage.getItem(t) || n;
|
|
145971
145983
|
u(o && e === "system" ? f() : e);
|
|
145972
145984
|
} catch {}
|
|
145973
|
-
},
|
|
145985
|
+
}, r2e = A.createContext(void 0), i2e = {
|
|
145974
145986
|
setTheme: (e) => {},
|
|
145975
145987
|
themes: []
|
|
145976
|
-
},
|
|
145988
|
+
}, a2e = () => A.useContext(r2e) ?? i2e;
|
|
145977
145989
|
A.memo(({ forcedTheme: e, storageKey: t, attribute: n, enableSystem: r, enableColorScheme: i, defaultTheme: a, value: o, themes: s, nonce: c, scriptProps: l }) => {
|
|
145978
145990
|
let u = JSON.stringify([
|
|
145979
145991
|
n,
|
|
@@ -145989,13 +146001,13 @@ A.memo(({ forcedTheme: e, storageKey: t, attribute: n, enableSystem: r, enableCo
|
|
|
145989
146001
|
...l,
|
|
145990
146002
|
suppressHydrationWarning: !0,
|
|
145991
146003
|
nonce: typeof window > "u" ? c : "",
|
|
145992
|
-
dangerouslySetInnerHTML: { __html: `(${
|
|
146004
|
+
dangerouslySetInnerHTML: { __html: `(${n2e.toString()})(${u})` }
|
|
145993
146005
|
});
|
|
145994
146006
|
});
|
|
145995
146007
|
//#endregion
|
|
145996
146008
|
//#region src/client/components/ui/sonner.tsx
|
|
145997
|
-
function
|
|
145998
|
-
let { theme: t = "system" } =
|
|
146009
|
+
function o2e({ ...e }) {
|
|
146010
|
+
let { theme: t = "system" } = a2e();
|
|
145999
146011
|
return /* @__PURE__ */ (0, O.jsx)(Zge, {
|
|
146000
146012
|
theme: t,
|
|
146001
146013
|
className: "toaster group",
|
|
@@ -146009,13 +146021,13 @@ function a2e({ ...e }) {
|
|
|
146009
146021
|
}
|
|
146010
146022
|
//#endregion
|
|
146011
146023
|
//#region src/client/App.tsx
|
|
146012
|
-
function
|
|
146024
|
+
function s2e({ activeTabRef: e }) {
|
|
146013
146025
|
let { activeTab: t } = i0();
|
|
146014
146026
|
return (0, A.useEffect)(() => {
|
|
146015
146027
|
e.current = t;
|
|
146016
146028
|
}, [t, e]), null;
|
|
146017
146029
|
}
|
|
146018
|
-
function
|
|
146030
|
+
function c2e() {
|
|
146019
146031
|
let e = (0, A.useRef)("tools"), t = new URLSearchParams(window.location.search), n = t.get("embedded") === "true", r = t.get("theme"), i = (0, A.useMemo)(() => n ? void 0 : new wme("mcp-inspector-connections"), [n]), a = window.__MCP_PROXY_URL__, o = a ? `${window.location.origin}${a}` : void 0;
|
|
146020
146032
|
return (0, A.useEffect)(() => {
|
|
146021
146033
|
let e = t.get("auth_error");
|
|
@@ -146056,7 +146068,7 @@ function s2e() {
|
|
|
146056
146068
|
console.log("[Inspector] Server state changed:", e, t);
|
|
146057
146069
|
},
|
|
146058
146070
|
onSamplingRequest: (e, t, n, r, i) => {
|
|
146059
|
-
let a = vz(/* @__PURE__ */ (0, O.jsx)(
|
|
146071
|
+
let a = vz(/* @__PURE__ */ (0, O.jsx)(K0e, {
|
|
146060
146072
|
requestId: e.id,
|
|
146061
146073
|
serverName: n,
|
|
146062
146074
|
onViewDetails: () => {
|
|
@@ -146092,31 +146104,31 @@ function s2e() {
|
|
|
146092
146104
|
}), { duration: Infinity });
|
|
146093
146105
|
},
|
|
146094
146106
|
children: /* @__PURE__ */ (0, O.jsxs)(OFe, { children: [
|
|
146095
|
-
/* @__PURE__ */ (0, O.jsx)(
|
|
146107
|
+
/* @__PURE__ */ (0, O.jsx)(s2e, { activeTabRef: e }),
|
|
146096
146108
|
/* @__PURE__ */ (0, O.jsx)(mge, {
|
|
146097
146109
|
basename: "/inspector",
|
|
146098
146110
|
children: /* @__PURE__ */ (0, O.jsxs)(Bhe, { children: [
|
|
146099
146111
|
/* @__PURE__ */ (0, O.jsx)(qR, {
|
|
146100
146112
|
path: "/oauth/callback",
|
|
146101
|
-
element: /* @__PURE__ */ (0, O.jsx)(
|
|
146113
|
+
element: /* @__PURE__ */ (0, O.jsx)(W0e, {})
|
|
146102
146114
|
}),
|
|
146103
146115
|
/* @__PURE__ */ (0, O.jsx)(qR, {
|
|
146104
146116
|
path: "/preview/:view",
|
|
146105
|
-
element: /* @__PURE__ */ (0, O.jsx)(
|
|
146117
|
+
element: /* @__PURE__ */ (0, O.jsx)(t2e, {})
|
|
146106
146118
|
}),
|
|
146107
146119
|
/* @__PURE__ */ (0, O.jsx)(qR, {
|
|
146108
146120
|
path: "/",
|
|
146109
|
-
element: /* @__PURE__ */ (0, O.jsx)(
|
|
146121
|
+
element: /* @__PURE__ */ (0, O.jsx)(I0e, { children: /* @__PURE__ */ (0, O.jsx)(DFe, {}) })
|
|
146110
146122
|
})
|
|
146111
146123
|
] })
|
|
146112
146124
|
}),
|
|
146113
|
-
/* @__PURE__ */ (0, O.jsx)(
|
|
146125
|
+
/* @__PURE__ */ (0, O.jsx)(o2e, { position: "top-center" })
|
|
146114
146126
|
] })
|
|
146115
146127
|
}) })
|
|
146116
146128
|
});
|
|
146117
146129
|
}
|
|
146118
146130
|
//#endregion
|
|
146119
146131
|
//#region src/client/main.tsx
|
|
146120
|
-
var
|
|
146121
|
-
|
|
146132
|
+
var l2e = document.getElementById("root");
|
|
146133
|
+
l2e ? D.createRoot(l2e).render(/* @__PURE__ */ (0, O.jsx)(c2e, {})) : console.error("[inspector] Root element not found");
|
|
146122
146134
|
//#endregion
|