AgentSea. MCP. Transport. Stdio
(agentsea_mcp v0.1.0)
Copy Markdown
MCP stdio transport: spawns an MCP server subprocess and speaks newline- delimited JSON-RPC 2.0 over its stdin/stdout.
It's a GenServer that owns the Port, assigns request ids, buffers incoming
bytes into lines, and replies to each caller when the matching response id
arrives. The client's ref is this process.
{:ok, transport} =
AgentSea.MCP.Transport.Stdio.start_link(command: ["node", "my-mcp-server.js"])
{:ok, client} = AgentSea.MCP.connect({AgentSea.MCP.Transport.Stdio, transport})
Summary
Functions
Returns a specification to start this module under a supervisor.
Start the transport. Options: :command ([executable | args]), :name.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Start the transport. Options: :command ([executable | args]), :name.