@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.
@@ -56,9 +56,11 @@ async function startDevServer(serverOptions) {
56
56
  echoOutput: true,
57
57
  };
58
58
 
59
- // For Windows, we need to use stdin: 'ignore' to simulate < NUL
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.stdin = "ignore";
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 client = spawn(clientCommand, clientArgs, {
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-3HVc23AL.js";
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);
@@ -1,4 +1,4 @@
1
- import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-3HVc23AL.js";
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;