reserveStdout
Function: reserveStdout()
reserveStdout(
stdout?,stderr?):object
Defined in: packages/mcp/src/mcpservice.service.ts:120
Reserve stdout for the MCP protocol: every other write to stdout (log lines,
whatever --log-stream says, unpatched console calls, third-party output) is
sent to stderr, and the returned stream writes to the real stdout.
Parameters
stdout?
WritableStream = process.stdout
stream carrying protocol frames
stderr?
WritableStream = process.stderr
stream receiving everything else
Returns
object
the protocol stream and a function restoring stdout
protocol
protocol:
Writable
restore
restore: () =>
void
Returns
void