pub async fn run_stdio_bidirectional(
router: Arc<RequestRouter>,
dispatcher: StdioDispatcher,
request_rx: UnboundedReceiver<StdioMessage>,
) -> Result<(), Box<dyn Error>>Expand description
Run MCP server over STDIO transport with full bidirectional support
This runtime implements the complete MCP 2025-06-18 stdio protocol:
- Reads JSON-RPC from stdin (client requests AND server response correlations)
- Writes JSON-RPC to stdout (server responses AND server requests)
- Maintains request/response correlation
- Handles errors per MCP spec