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

Types

STDIO transport options.

t()

Functions

Returns a specification to start this module under a supervisor.

Types

option()

@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.

t()

@type t() :: GenServer.server()

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_schema(atom)

parse_options(data)

parse_options!(data)