Skip to content

Commit c770d21

Browse files
authored
Merge pull request #86 from modelcontextprotocol/ani/debuggability
Make debugging Inspector easier for users
2 parents 62546de + 98470a1 commit c770d21

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

bin/cli.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,17 @@ async function main() {
5151
...(command ? [`--env`, command] : []),
5252
...(mcpServerArgs ? ["--args", mcpServerArgs.join(" ")] : []),
5353
],
54-
{ env: { ...process.env, PORT: SERVER_PORT }, signal: abort.signal },
54+
{
55+
env: { ...process.env, PORT: SERVER_PORT },
56+
signal: abort.signal,
57+
echoOutput: true,
58+
},
5559
);
5660

5761
const client = spawnPromise("node", [inspectorClientPath], {
5862
env: { ...process.env, PORT: CLIENT_PORT },
5963
signal: abort.signal,
64+
echoOutput: true,
6065
});
6166

6267
// Make sure our server/client didn't immediately fail

client/vite.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@ export default defineConfig({
1010
"@": path.resolve(__dirname, "./src"),
1111
},
1212
},
13+
build: {
14+
minify: false,
15+
rollupOptions: {
16+
output: {
17+
manualChunks: undefined
18+
}
19+
}
20+
}
1321
});

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"@modelcontextprotocol/inspector-client": "0.2.4",
3737
"@modelcontextprotocol/inspector-server": "0.2.4",
3838
"concurrently": "^9.0.1",
39-
"spawn-rx": "^5.0.4",
39+
"spawn-rx": "^5.1.0",
4040
"ts-node": "^10.9.2"
4141
},
4242
"devDependencies": {
4343
"@types/node": "^22.7.5",
4444
"prettier": "3.3.3"
4545
}
46-
}
46+
}

0 commit comments

Comments
 (0)