Expand description
MCP over stdio.
The client starts the application as a child process and talks to it over its standard streams — no port to allocate, no token to exchange, and it works while the GUI is not running.
§stdout belongs to the protocol
Nothing else may write there. A single log line corrupts the stream and the client
reports a parse error, which points nowhere near the actual cause. Configure
logging with TelemetryConfig::for_stdout_protocol before serving.
Functions§
- serve
- Serve until the client closes stdin.
- serve_
streams - Serve over arbitrary streams. Used by the tests, which is the point of the split.