ExMCP.Transport.Stdio (ex_mcp v0.1.0)
View Sourcestdio transport implementation for MCP.
This transport communicates with MCP servers over standard input/output, typically by spawning a subprocess.
Options
:command
- Command and arguments to spawn (required):cd
- Working directory for the process:env
- Environment variables as a list of {"KEY", "VALUE"} tuples
Example
{:ok, client} = ExMCP.Client.start_link(
transport: :stdio,
command: ["node", "my-mcp-server.js"],
cd: "/path/to/server",
env: [{"NODE_ENV", "production"}]
)