Make stdout/error echo for client and server

This commit is contained in:
Ani Betts
2024-11-27 15:57:02 +01:00
parent a00564fafa
commit 98470a12f9
3 changed files with 12 additions and 7 deletions

View File

@@ -51,12 +51,17 @@ async function main() {
...(command ? [`--env`, command] : []),
...(mcpServerArgs ? ["--args", mcpServerArgs.join(" ")] : []),
],
{ env: { ...process.env, PORT: SERVER_PORT }, signal: abort.signal },
{
env: { ...process.env, PORT: SERVER_PORT },
signal: abort.signal,
echoOutput: true,
},
);
const client = spawnPromise("node", [inspectorClientPath], {
env: { ...process.env, PORT: CLIENT_PORT },
signal: abort.signal,
echoOutput: true,
});
// Make sure our server/client didn't immediately fail