Documentation
¶
Overview ¶
Command stdio-client launches a JSON-RPC stdio server as a subprocess and talks to it over the child's stdin/stdout. This is the pattern used to consume an MCP-style stdio server.
Run it against the stdio-server example:
go build -o /tmp/rpc-stdio-server ./examples/stdio-server go run ./examples/stdio-client /tmp/rpc-stdio-server
If no command is given it defaults to running the sibling example via `go run`.
Click to show internal directories.
Click to hide internal directories.