@mcpjam/inspector 0.2.1 → 0.2.3
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/client/dist/assets/{OAuthCallback-xP3tGoWq.js → OAuthCallback-CfsBsNUt.js} +1 -1
- package/client/dist/assets/{OAuthDebugCallback-CV6g5aop.js → OAuthDebugCallback-DuorYCq_.js} +1 -1
- package/client/dist/assets/{index-C9Kqkwaq.css → index-C5Ywrn22.css} +52 -0
- package/client/dist/assets/{index-1_BV85UY.js → index-CHsLKjnG.js} +130 -47
- package/client/dist/index.html +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useToast, r as reactExports, j as jsxRuntimeExports, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-
|
|
1
|
+
import { u as useToast, r as reactExports, j as jsxRuntimeExports, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-CHsLKjnG.js";
|
|
2
2
|
import { p as parseOAuthCallbackParams, g as generateOAuthErrorDescription } from "./oauthUtils-DTcoXpSP.js";
|
|
3
3
|
const OAuthCallback = ({ onConnect }) => {
|
|
4
4
|
const { toast } = useToast();
|
package/client/dist/assets/{OAuthDebugCallback-CV6g5aop.js → OAuthDebugCallback-DuorYCq_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, S as SESSION_KEYS, j as jsxRuntimeExports } from "./index-
|
|
1
|
+
import { r as reactExports, S as SESSION_KEYS, j as jsxRuntimeExports } from "./index-CHsLKjnG.js";
|
|
2
2
|
import { p as parseOAuthCallbackParams, g as generateOAuthErrorDescription } from "./oauthUtils-DTcoXpSP.js";
|
|
3
3
|
const OAuthDebugCallback = ({ onConnect }) => {
|
|
4
4
|
reactExports.useEffect(() => {
|
|
@@ -1627,6 +1627,9 @@ video {
|
|
|
1627
1627
|
.rounded {
|
|
1628
1628
|
border-radius: 0.25rem;
|
|
1629
1629
|
}
|
|
1630
|
+
.rounded-2xl {
|
|
1631
|
+
border-radius: 1rem;
|
|
1632
|
+
}
|
|
1630
1633
|
.rounded-full {
|
|
1631
1634
|
border-radius: 9999px;
|
|
1632
1635
|
}
|
|
@@ -1897,11 +1900,21 @@ video {
|
|
|
1897
1900
|
--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);
|
|
1898
1901
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1899
1902
|
}
|
|
1903
|
+
.from-blue-600 {
|
|
1904
|
+
--tw-gradient-from: #2563eb var(--tw-gradient-from-position);
|
|
1905
|
+
--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
|
|
1906
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1907
|
+
}
|
|
1900
1908
|
.from-card\/95 {
|
|
1901
1909
|
--tw-gradient-from: hsl(var(--card) / 0.95) var(--tw-gradient-from-position);
|
|
1902
1910
|
--tw-gradient-to: hsl(var(--card) / 0) var(--tw-gradient-to-position);
|
|
1903
1911
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1904
1912
|
}
|
|
1913
|
+
.from-gray-700 {
|
|
1914
|
+
--tw-gradient-from: #374151 var(--tw-gradient-from-position);
|
|
1915
|
+
--tw-gradient-to: rgb(55 65 81 / 0) var(--tw-gradient-to-position);
|
|
1916
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1917
|
+
}
|
|
1905
1918
|
.from-muted\/20 {
|
|
1906
1919
|
--tw-gradient-from: hsl(var(--muted) / 0.2) var(--tw-gradient-from-position);
|
|
1907
1920
|
--tw-gradient-to: hsl(var(--muted) / 0) var(--tw-gradient-to-position);
|
|
@@ -1970,12 +1983,18 @@ video {
|
|
|
1970
1983
|
.to-background\/60 {
|
|
1971
1984
|
--tw-gradient-to: hsl(var(--background) / 0.6) var(--tw-gradient-to-position);
|
|
1972
1985
|
}
|
|
1986
|
+
.to-blue-700 {
|
|
1987
|
+
--tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position);
|
|
1988
|
+
}
|
|
1973
1989
|
.to-card\/95 {
|
|
1974
1990
|
--tw-gradient-to: hsl(var(--card) / 0.95) var(--tw-gradient-to-position);
|
|
1975
1991
|
}
|
|
1976
1992
|
.to-gray-100 {
|
|
1977
1993
|
--tw-gradient-to: #f3f4f6 var(--tw-gradient-to-position);
|
|
1978
1994
|
}
|
|
1995
|
+
.to-gray-900 {
|
|
1996
|
+
--tw-gradient-to: #111827 var(--tw-gradient-to-position);
|
|
1997
|
+
}
|
|
1979
1998
|
.to-muted\/20 {
|
|
1980
1999
|
--tw-gradient-to: hsl(var(--muted) / 0.2) var(--tw-gradient-to-position);
|
|
1981
2000
|
}
|
|
@@ -2106,6 +2125,9 @@ video {
|
|
|
2106
2125
|
.pb-1\.5 {
|
|
2107
2126
|
padding-bottom: 0.375rem;
|
|
2108
2127
|
}
|
|
2128
|
+
.pb-4 {
|
|
2129
|
+
padding-bottom: 1rem;
|
|
2130
|
+
}
|
|
2109
2131
|
.pl-2 {
|
|
2110
2132
|
padding-left: 0.5rem;
|
|
2111
2133
|
}
|
|
@@ -2620,6 +2642,11 @@ h1 {
|
|
|
2620
2642
|
color: rgb(148 163 184 / var(--tw-text-opacity, 1));
|
|
2621
2643
|
}
|
|
2622
2644
|
|
|
2645
|
+
.hover\:-translate-y-0\.5:hover {
|
|
2646
|
+
--tw-translate-y: -0.125rem;
|
|
2647
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2623
2650
|
.hover\:border-\[\#646cff\]:hover {
|
|
2624
2651
|
--tw-border-opacity: 1;
|
|
2625
2652
|
border-color: rgb(100 108 255 / var(--tw-border-opacity, 1));
|
|
@@ -2724,6 +2751,11 @@ h1 {
|
|
|
2724
2751
|
background-color: rgb(241 245 249 / 0.5);
|
|
2725
2752
|
}
|
|
2726
2753
|
|
|
2754
|
+
.hover\:bg-slate-200:hover {
|
|
2755
|
+
--tw-bg-opacity: 1;
|
|
2756
|
+
background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2727
2759
|
.hover\:bg-slate-50:hover {
|
|
2728
2760
|
--tw-bg-opacity: 1;
|
|
2729
2761
|
background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
|
|
@@ -2738,6 +2770,12 @@ h1 {
|
|
|
2738
2770
|
background-image: linear-gradient(to right, var(--tw-gradient-stops));
|
|
2739
2771
|
}
|
|
2740
2772
|
|
|
2773
|
+
.hover\:from-blue-700:hover {
|
|
2774
|
+
--tw-gradient-from: #1d4ed8 var(--tw-gradient-from-position);
|
|
2775
|
+
--tw-gradient-to: rgb(29 78 216 / 0) var(--tw-gradient-to-position);
|
|
2776
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2741
2779
|
.hover\:from-muted\/30:hover {
|
|
2742
2780
|
--tw-gradient-from: hsl(var(--muted) / 0.3) var(--tw-gradient-from-position);
|
|
2743
2781
|
--tw-gradient-to: hsl(var(--muted) / 0) var(--tw-gradient-to-position);
|
|
@@ -2755,6 +2793,10 @@ h1 {
|
|
|
2755
2793
|
--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--muted) / 0.4) var(--tw-gradient-via-position), var(--tw-gradient-to);
|
|
2756
2794
|
}
|
|
2757
2795
|
|
|
2796
|
+
.hover\:to-blue-800:hover {
|
|
2797
|
+
--tw-gradient-to: #1e40af var(--tw-gradient-to-position);
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2758
2800
|
.hover\:to-muted\/30:hover {
|
|
2759
2801
|
--tw-gradient-to: hsl(var(--muted) / 0.3) var(--tw-gradient-to-position);
|
|
2760
2802
|
}
|
|
@@ -3533,6 +3575,16 @@ h1 {
|
|
|
3533
3575
|
background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
|
|
3534
3576
|
}
|
|
3535
3577
|
|
|
3578
|
+
.dark\:hover\:bg-slate-600:hover:is(.dark *) {
|
|
3579
|
+
--tw-bg-opacity: 1;
|
|
3580
|
+
background-color: rgb(71 85 105 / var(--tw-bg-opacity, 1));
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
.dark\:hover\:bg-slate-700:hover:is(.dark *) {
|
|
3584
|
+
--tw-bg-opacity: 1;
|
|
3585
|
+
background-color: rgb(51 65 85 / var(--tw-bg-opacity, 1));
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3536
3588
|
.dark\:hover\:bg-slate-700\/30:hover:is(.dark *) {
|
|
3537
3589
|
background-color: rgb(51 65 85 / 0.3);
|
|
3538
3590
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OAuthCallback-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OAuthCallback-CfsBsNUt.js","assets/oauthUtils-DTcoXpSP.js","assets/OAuthDebugCallback-DuorYCq_.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -16321,6 +16321,22 @@ const FolderTree = createLucideIcon("FolderTree", [
|
|
|
16321
16321
|
["path", { d: "M3 5a2 2 0 0 0 2 2h3", key: "f2jnh7" }],
|
|
16322
16322
|
["path", { d: "M3 3v13a2 2 0 0 0 2 2h3", key: "k8epm1" }]
|
|
16323
16323
|
]);
|
|
16324
|
+
/**
|
|
16325
|
+
* @license lucide-react v0.447.0 - ISC
|
|
16326
|
+
*
|
|
16327
|
+
* This source code is licensed under the ISC license.
|
|
16328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16329
|
+
*/
|
|
16330
|
+
const Github = createLucideIcon("Github", [
|
|
16331
|
+
[
|
|
16332
|
+
"path",
|
|
16333
|
+
{
|
|
16334
|
+
d: "M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",
|
|
16335
|
+
key: "tonef"
|
|
16336
|
+
}
|
|
16337
|
+
],
|
|
16338
|
+
["path", { d: "M9 18c-4.51 2-5-2-7-2", key: "9comsn" }]
|
|
16339
|
+
]);
|
|
16324
16340
|
/**
|
|
16325
16341
|
* @license lucide-react v0.447.0 - ISC
|
|
16326
16342
|
*
|
|
@@ -28609,7 +28625,7 @@ const useTheme = () => {
|
|
|
28609
28625
|
[theme, setThemeWithSideEffect]
|
|
28610
28626
|
);
|
|
28611
28627
|
};
|
|
28612
|
-
const version$1 = "0.2.
|
|
28628
|
+
const version$1 = "0.2.3";
|
|
28613
28629
|
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
28614
28630
|
createPopperScope
|
|
28615
28631
|
]);
|
|
@@ -30349,6 +30365,61 @@ const ClientFormSection = ({
|
|
|
30349
30365
|
] })
|
|
30350
30366
|
] }) });
|
|
30351
30367
|
};
|
|
30368
|
+
const StarGitHubModal = ({
|
|
30369
|
+
isOpen,
|
|
30370
|
+
onClose
|
|
30371
|
+
}) => {
|
|
30372
|
+
if (!isOpen) return null;
|
|
30373
|
+
const handleStarClick = () => {
|
|
30374
|
+
window.open("https://github.com/MCPJam/inspector", "_blank");
|
|
30375
|
+
onClose();
|
|
30376
|
+
};
|
|
30377
|
+
const handleDismiss = () => {
|
|
30378
|
+
onClose();
|
|
30379
|
+
};
|
|
30380
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50 p-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-white dark:bg-slate-800 rounded-2xl shadow-2xl max-w-md w-full mx-4 border border-slate-200 dark:border-slate-700", children: [
|
|
30381
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between p-6 border-b border-slate-200 dark:border-slate-700", children: [
|
|
30382
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-3", children: [
|
|
30383
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-10 h-10 bg-gradient-to-br from-gray-700 to-gray-900 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Github, { className: "w-5 h-5 text-white" }) }),
|
|
30384
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-xl font-semibold text-slate-900 dark:text-slate-100", children: "Support us!" })
|
|
30385
|
+
] }),
|
|
30386
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30387
|
+
"button",
|
|
30388
|
+
{
|
|
30389
|
+
onClick: handleDismiss,
|
|
30390
|
+
className: "p-1 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",
|
|
30391
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(X$1, { className: "w-5 h-5 text-slate-500 dark:text-slate-400" })
|
|
30392
|
+
}
|
|
30393
|
+
)
|
|
30394
|
+
] }),
|
|
30395
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-6", children: [
|
|
30396
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-slate-600 dark:text-slate-300 text-center mb-6 leading-relaxed", children: "If you like the inspector, please consider giving the GitHub project a star!" }),
|
|
30397
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col sm:flex-row gap-3", children: [
|
|
30398
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
30399
|
+
"button",
|
|
30400
|
+
{
|
|
30401
|
+
onClick: handleStarClick,
|
|
30402
|
+
className: "flex-1 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white rounded-lg px-4 py-3 font-medium transition-all duration-200 flex items-center justify-center space-x-2 shadow-lg hover:shadow-xl transform hover:-translate-y-0.5",
|
|
30403
|
+
children: [
|
|
30404
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Star, { className: "w-4 h-4 fill-current" }),
|
|
30405
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Star on GitHub" }),
|
|
30406
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ExternalLink, { className: "w-4 h-4" })
|
|
30407
|
+
]
|
|
30408
|
+
}
|
|
30409
|
+
),
|
|
30410
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30411
|
+
"button",
|
|
30412
|
+
{
|
|
30413
|
+
onClick: handleDismiss,
|
|
30414
|
+
className: "flex-1 bg-slate-100 dark:bg-slate-700 hover:bg-slate-200 dark:hover:bg-slate-600 text-slate-700 dark:text-slate-300 rounded-lg px-4 py-3 font-medium transition-colors",
|
|
30415
|
+
children: "Maybe later"
|
|
30416
|
+
}
|
|
30417
|
+
)
|
|
30418
|
+
] })
|
|
30419
|
+
] }),
|
|
30420
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-6 pb-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-slate-500 dark:text-slate-400 text-center", children: "This message won't appear again once dismissed" }) })
|
|
30421
|
+
] }) });
|
|
30422
|
+
};
|
|
30352
30423
|
const SERVER_CONFIGS_STORAGE_KEY = "mcpServerConfigs_v1";
|
|
30353
30424
|
const SELECTED_SERVER_STORAGE_KEY = "selectedServerName_v1";
|
|
30354
30425
|
const serializeServerConfigs = (configs) => {
|
|
@@ -40809,7 +40880,7 @@ Anthropic.Models = Models2;
|
|
|
40809
40880
|
Anthropic.Beta = Beta;
|
|
40810
40881
|
const { HUMAN_PROMPT, AI_PROMPT } = Anthropic;
|
|
40811
40882
|
const readline = {};
|
|
40812
|
-
const version = "0.2.
|
|
40883
|
+
const version = "0.2.3";
|
|
40813
40884
|
const packageJson = {
|
|
40814
40885
|
version
|
|
40815
40886
|
};
|
|
@@ -43444,6 +43515,7 @@ const App = () => {
|
|
|
43444
43515
|
return hash || "tools";
|
|
43445
43516
|
});
|
|
43446
43517
|
const [isSidebarExpanded, setIsSidebarExpanded] = reactExports.useState(true);
|
|
43518
|
+
const [showStarModal, setShowStarModal] = reactExports.useState(false);
|
|
43447
43519
|
reactExports.useEffect(() => {
|
|
43448
43520
|
const handleHashChange = () => {
|
|
43449
43521
|
const hash = window.location.hash.slice(1);
|
|
@@ -43454,6 +43526,20 @@ const App = () => {
|
|
|
43454
43526
|
window.addEventListener("hashchange", handleHashChange);
|
|
43455
43527
|
return () => window.removeEventListener("hashchange", handleHashChange);
|
|
43456
43528
|
}, []);
|
|
43529
|
+
reactExports.useEffect(() => {
|
|
43530
|
+
const hasSeenStarModal = localStorage.getItem("hasSeenStarModal");
|
|
43531
|
+
if (hasSeenStarModal) {
|
|
43532
|
+
return;
|
|
43533
|
+
}
|
|
43534
|
+
const timer = setTimeout(() => {
|
|
43535
|
+
setShowStarModal(true);
|
|
43536
|
+
}, 15e3);
|
|
43537
|
+
return () => clearTimeout(timer);
|
|
43538
|
+
}, []);
|
|
43539
|
+
const handleCloseStarModal = () => {
|
|
43540
|
+
setShowStarModal(false);
|
|
43541
|
+
localStorage.setItem("hasSeenStarModal", "true");
|
|
43542
|
+
};
|
|
43457
43543
|
const onStdErrNotification = reactExports.useCallback(
|
|
43458
43544
|
(notification) => {
|
|
43459
43545
|
mcpOperations.setStdErrNotifications((prev) => [...prev, notification]);
|
|
@@ -43808,7 +43894,7 @@ const App = () => {
|
|
|
43808
43894
|
}, []);
|
|
43809
43895
|
if (window.location.pathname === "/oauth/callback") {
|
|
43810
43896
|
const OAuthCallback = React.lazy(
|
|
43811
|
-
() => __vitePreload(() => import("./OAuthCallback-
|
|
43897
|
+
() => __vitePreload(() => import("./OAuthCallback-CfsBsNUt.js"), true ? __vite__mapDeps([0,1]) : void 0)
|
|
43812
43898
|
);
|
|
43813
43899
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43814
43900
|
reactExports.Suspense,
|
|
@@ -43823,7 +43909,7 @@ const App = () => {
|
|
|
43823
43909
|
}
|
|
43824
43910
|
if (window.location.pathname === "/oauth/callback/debug") {
|
|
43825
43911
|
const OAuthDebugCallback = React.lazy(
|
|
43826
|
-
() => __vitePreload(() => import("./OAuthDebugCallback-
|
|
43912
|
+
() => __vitePreload(() => import("./OAuthDebugCallback-DuorYCq_.js"), true ? __vite__mapDeps([2,1]) : void 0)
|
|
43827
43913
|
);
|
|
43828
43914
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43829
43915
|
reactExports.Suspense,
|
|
@@ -44089,58 +44175,55 @@ const App = () => {
|
|
|
44089
44175
|
}
|
|
44090
44176
|
);
|
|
44091
44177
|
case "settings":
|
|
44092
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44093
|
-
SettingsTab,
|
|
44094
|
-
{
|
|
44095
|
-
onApiKeyChange: handleApiKeyChange,
|
|
44096
|
-
disabled: connectionStatus !== "connected" && connectionStatus !== "disconnected"
|
|
44097
|
-
}
|
|
44098
|
-
);
|
|
44178
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsTab, { onApiKeyChange: handleApiKeyChange });
|
|
44099
44179
|
default:
|
|
44100
44180
|
return null;
|
|
44101
44181
|
}
|
|
44102
44182
|
};
|
|
44103
44183
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 flex flex-col overflow-auto p-6", children: !connectionState.mcpAgent || (currentClient == null ? void 0 : currentClient.connectionStatus) !== "connected" ? renderServerNotConnected() : serverHasNoCapabilities ? renderServerNoCapabilities() : renderCurrentPage() });
|
|
44104
44184
|
};
|
|
44105
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
44106
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
44107
|
-
Sidebar,
|
|
44108
|
-
{
|
|
44109
|
-
mcpAgent: connectionState.mcpAgent,
|
|
44110
|
-
selectedServerName: serverState.selectedServerName,
|
|
44111
|
-
onServerSelect: serverState.setSelectedServerName,
|
|
44112
|
-
onRemoveServer: handleRemoveServer,
|
|
44113
|
-
onConnectServer: connectionState.connectServer,
|
|
44114
|
-
onDisconnectServer: connectionState.disconnectServer,
|
|
44115
|
-
onCreateClient: serverState.handleCreateClient,
|
|
44116
|
-
onEditClient: handleEditClient,
|
|
44117
|
-
updateTrigger: connectionState.sidebarUpdateTrigger,
|
|
44118
|
-
isExpanded: isSidebarExpanded,
|
|
44119
|
-
onToggleExpanded: () => setIsSidebarExpanded(!isSidebarExpanded)
|
|
44120
|
-
}
|
|
44121
|
-
),
|
|
44122
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col overflow-hidden", children: [
|
|
44185
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(McpClientContext.Provider, { value: currentClient, children: [
|
|
44186
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "h-screen bg-gradient-to-br from-slate-50/50 to-slate-100/50 dark:from-slate-900/50 dark:to-slate-800/50 flex overflow-hidden app-container", children: [
|
|
44123
44187
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44124
|
-
|
|
44188
|
+
Sidebar,
|
|
44125
44189
|
{
|
|
44126
|
-
|
|
44127
|
-
|
|
44128
|
-
|
|
44129
|
-
|
|
44130
|
-
|
|
44190
|
+
mcpAgent: connectionState.mcpAgent,
|
|
44191
|
+
selectedServerName: serverState.selectedServerName,
|
|
44192
|
+
onServerSelect: serverState.setSelectedServerName,
|
|
44193
|
+
onRemoveServer: handleRemoveServer,
|
|
44194
|
+
onConnectServer: connectionState.connectServer,
|
|
44195
|
+
onDisconnectServer: connectionState.disconnectServer,
|
|
44196
|
+
onCreateClient: serverState.handleCreateClient,
|
|
44197
|
+
onEditClient: handleEditClient,
|
|
44198
|
+
updateTrigger: connectionState.sidebarUpdateTrigger,
|
|
44199
|
+
isExpanded: isSidebarExpanded,
|
|
44200
|
+
onToggleExpanded: () => setIsSidebarExpanded(!isSidebarExpanded)
|
|
44131
44201
|
}
|
|
44132
44202
|
),
|
|
44133
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
44134
|
-
|
|
44135
|
-
|
|
44136
|
-
|
|
44137
|
-
|
|
44138
|
-
|
|
44139
|
-
|
|
44140
|
-
|
|
44141
|
-
|
|
44142
|
-
|
|
44143
|
-
|
|
44203
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col overflow-hidden", children: [
|
|
44204
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44205
|
+
Tabs,
|
|
44206
|
+
{
|
|
44207
|
+
currentPage,
|
|
44208
|
+
onPageChange: setCurrentPage,
|
|
44209
|
+
serverCapabilities,
|
|
44210
|
+
pendingSampleRequests: mcpOperations.pendingSampleRequests,
|
|
44211
|
+
shouldDisableAll: !connectionState.mcpAgent
|
|
44212
|
+
}
|
|
44213
|
+
),
|
|
44214
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 flex flex-col overflow-hidden overflow-y-auto", children: renderTabs() }),
|
|
44215
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44216
|
+
HistoryAndNotifications,
|
|
44217
|
+
{
|
|
44218
|
+
requestHistory,
|
|
44219
|
+
toolResult: mcpOperations.toolResult,
|
|
44220
|
+
onClearHistory: mcpOperations.clearRequestHistory
|
|
44221
|
+
}
|
|
44222
|
+
)
|
|
44223
|
+
] })
|
|
44224
|
+
] }),
|
|
44225
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(StarGitHubModal, { isOpen: showStarModal, onClose: handleCloseStarModal })
|
|
44226
|
+
] });
|
|
44144
44227
|
};
|
|
44145
44228
|
clientExports.createRoot(document.getElementById("root")).render(
|
|
44146
44229
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.StrictMode, { children: [
|
package/client/dist/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/mcp_jam.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>MCPJam Inspector</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CHsLKjnG.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-C5Ywrn22.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|