We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a66ca5 commit 0eebd01Copy full SHA for 0eebd01
cli/src/cli.ts
@@ -59,24 +59,15 @@ async function runWebClient(args: Args): Promise<void> {
59
"start.js",
60
);
61
62
- const CLIENT_PORT: string = process.env.CLIENT_PORT ?? "6274";
63
- const SERVER_PORT: string = process.env.SERVER_PORT ?? "6277";
64
-
65
- console.log("Starting MCP inspector...");
66
67
const abort = new AbortController();
68
let cancelled: boolean = false;
69
process.on("SIGINT", () => {
70
cancelled = true;
71
abort.abort();
72
});
73
74
- let server: ReturnType<typeof spawnPromise>;
75
- let serverOk: unknown;
76
77
try {
78
await spawnPromise("node", [inspectorClientPath], {
79
- env: { ...process.env, PORT: CLIENT_PORT },
80
signal: abort.signal,
81
echoOutput: true,
82
0 commit comments