mcp.transport.stdio

Undocumented in source.

Members

Functions

runStdio
void runStdio(McpServer server, size_t maxLineBytes)

Serve server over the process's standard input/output: read JSON-RPC messages from stdin (one per line) and write responses to stdout. Per the MCP stdio transport, only valid MCP messages are written to stdout; use stderr for logging. Blocks until stdin reaches end-of-file.

serveStdio
void serveStdio(McpServer server, string delegate() @(safe) readLine, void delegate(string) @(safe) writeLine)

Drive an McpServer over a newline-delimited JSON-RPC channel using the shared full-duplex DuplexChannel.