Documentation
¶
Overview ¶
Command stdio-server is a JSON-RPC 2.0 server that speaks newline-delimited JSON over stdin/stdout. It is the shape of server a parent process launches as a subprocess (as MCP does for stdio servers).
Try it directly by piping a request in:
echo '{"jsonrpc":"2.0","method":"greet","params":{"name":"Ada"},"id":1}' | go run ./examples/stdio-server
Or drive it from the stdio-client example.
Click to show internal directories.
Click to hide internal directories.