Skip to content

Commit 98470a1

Browse files
committed
Make stdout/error echo for client and server
1 parent a00564f commit 98470a1

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-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

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)