MCP::Transports::Stdio
Inherits MCP::Transport < Reference < Object
STDIO transport for communicating with MCP servers via stdin/stdout.
This transport spawns the MCP server as a subprocess and communicates using line-delimited JSON-RPC messages over stdin/stdout.
Constructors
new(command : String, args : Array(String) = [] of String)
SourceInstance methods
receive_message
Receive a message from the MCP server.
Returns nil if no message is available.