Backplane. McpProtocol. Server. Transport. STDIO
(backplane_mcp_protocol v0.5.0)
Copy Markdown
STDIO transport implementation for MCP servers.
One connection process owns JSON line decoding, protocol-era selection, request bookkeeping, subscription multiplexing, and all writes to the output device. Legacy sessions are created lazily only after a valid initialize request.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type option() :: {:server, GenServer.server()} | {:name, GenServer.name()} | {:task_supervisor, GenServer.name()} | {:session_supervisor, GenServer.name()} | {:subscriptions, GenServer.name()} | {:session_config, map()} | GenServer.option()
STDIO transport options.
The task supervisor, legacy session DynamicSupervisor, and subscription hub default to deterministic names derived from the server module.
@type t() :: GenServer.server()