Implements MCP JSON-RPC over HTTP with optional bearer or OAuth auth.
Summary
Functions
Returns a specification to start this module under a supervisor.
Receives the next JSON-RPC message from the MCP server.
Sends a JSON-RPC message to the MCP server.
Starts a streamable HTTP transport process.
Types
@type t() :: pid()
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec recv(t(), pos_integer()) :: {:ok, map()} | {:error, term()}
Receives the next JSON-RPC message from the MCP server.
Sends a JSON-RPC message to the MCP server.
@spec start_link(keyword()) :: GenServer.on_start()
Starts a streamable HTTP transport process.