@modelcontextprotocol/inspector 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/bin/start.js +14 -4
- package/client/dist/assets/{OAuthCallback-C7u-W3fG.js → OAuthCallback-CcWP_GMC.js} +1 -1
- package/client/dist/assets/{OAuthDebugCallback-CJZOHlWo.js → OAuthDebugCallback-D0p8RB9e.js} +1 -1
- package/client/dist/assets/{index-3HVc23AL.js → index-B8iPFz0O.js} +19282 -6657
- package/client/dist/assets/{index-6PUMPh30.css → index-DdtP67NK.css} +20 -0
- package/client/dist/index.html +2 -2
- package/package.json +4 -4
- package/server/build/index.js +22 -0
- package/server/build/static/sandbox_proxy.html +197 -0
package/client/bin/start.js
CHANGED
|
@@ -56,9 +56,11 @@ async function startDevServer(serverOptions) {
|
|
|
56
56
|
echoOutput: true,
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// For Windows, we need to
|
|
59
|
+
// For Windows, we need to ignore stdin to simulate < NUL
|
|
60
|
+
// spawn-rx's 'stdin' option expects an Observable, not 'ignore'
|
|
61
|
+
// Use Node's stdio option instead
|
|
60
62
|
if (isWindows) {
|
|
61
|
-
spawnOptions.
|
|
63
|
+
spawnOptions.stdio = ["ignore", "pipe", "pipe"];
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
const server = spawn(serverCommand, serverArgs, spawnOptions);
|
|
@@ -140,13 +142,21 @@ async function startDevClient(clientOptions) {
|
|
|
140
142
|
const clientCommand = "npx";
|
|
141
143
|
const host = process.env.HOST || "localhost";
|
|
142
144
|
const clientArgs = ["vite", "--port", CLIENT_PORT, "--host", host];
|
|
145
|
+
const isWindows = process.platform === "win32";
|
|
143
146
|
|
|
144
|
-
const
|
|
147
|
+
const spawnOptions = {
|
|
145
148
|
cwd: resolve(__dirname, ".."),
|
|
146
149
|
env: { ...process.env, CLIENT_PORT },
|
|
147
150
|
signal: abort.signal,
|
|
148
151
|
echoOutput: true,
|
|
149
|
-
}
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
// For Windows, we need to ignore stdin to prevent hanging
|
|
155
|
+
if (isWindows) {
|
|
156
|
+
spawnOptions.stdio = ["ignore", "pipe", "pipe"];
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const client = spawn(clientCommand, clientArgs, spawnOptions);
|
|
150
160
|
|
|
151
161
|
const url = getClientUrl(
|
|
152
162
|
CLIENT_PORT,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-
|
|
1
|
+
import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-B8iPFz0O.js";
|
|
2
2
|
const OAuthCallback = ({ onConnect }) => {
|
|
3
3
|
const { toast } = useToast();
|
|
4
4
|
const hasProcessedRef = reactExports.useRef(false);
|
package/client/dist/assets/{OAuthDebugCallback-CJZOHlWo.js → OAuthDebugCallback-D0p8RB9e.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-
|
|
1
|
+
import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-B8iPFz0O.js";
|
|
2
2
|
const OAuthDebugCallback = ({ onConnect }) => {
|
|
3
3
|
reactExports.useEffect(() => {
|
|
4
4
|
let isProcessed = false;
|