AgentSea.MCP.Transport behaviour (agentsea_mcp v0.1.0)

Copy Markdown

Request/response transport for the MCP JSON-RPC protocol. The client is transport-agnostic; real transports (stdio over a Port, streamable HTTP/SSE over Req) and the in-process AgentSea.MCP.Transport.Function all implement this one callback.

Summary

Callbacks

request(ref, method, params)

@callback request(ref :: term(), method :: String.t(), params :: map()) ::
  {:ok, map()} | {:error, term()}