most-mcp
Serve the read-only MCP tools over stdio: one JSON-RPC request per line on stdin, one answer per line on stdout.
Every way most.mcp.serve fails#
Serve the read-only MCP tools over stdio: one JSON-RPC request per line on stdin, one answer per line on stdout.
Declared by: `most-mcp`.
- `reading the next request from stdin: stdin could not be read, so no further request can arrive; the server ended` — exit 69, and sending it again can help. Fix: start most-mcp with stdin connected to the client's pipe, as the MCP client's server configuration does (cause `most.mcp.serve.stdin-unreadable`).
- `writing an answer to stdout: stdout could not be written, so no answer can reach the client; the server ended` — exit 69, and sending it again can help. Fix: keep the client reading most-mcp's stdout until it closes stdin, then start most-mcp again (cause `most.mcp.serve.stdout-unwritable`).
- `reading a JSON-RPC request: parse error: the line is not JSON text` — exit 2. Fix: send one JSON-RPC 2.0 request object per line, carrying "jsonrpc": "2.0", an id and a method (cause `most.mcp.serve.frame-not-json`).
- `reading a JSON-RPC request: request must be a JSON object` — exit 2. Fix: send one JSON-RPC 2.0 request object per line, carrying "jsonrpc": "2.0", an id and a method (cause `most.mcp.serve.frame-not-object`).
- `reading a JSON-RPC request: a request with an id names its method as a string` — exit 2. Fix: name the method, one of initialize, ping, tools/list and tools/call (cause `most.mcp.serve.method-missing`).
- `reading a JSON-RPC request: method not found: {method}` — exit 2. Fix: call one of the methods most-mcp serves (cause `most.mcp.serve.method-unknown`).
- `reading a tools/call request: params.name must be a string` — exit 2. Fix: name the tool in params.name, one of {tools} (cause `most.mcp.serve.tool-name-missing`).
- `reading a tools/call request: params.arguments must be an object` — exit 2. Fix: send the arguments as one object keyed by the names the tool's input schema lists, or leave params.arguments out (cause `most.mcp.serve.arguments-not-object`).
- `reading a tools/call request: unknown tool: {name}` — exit 2. Fix: call one of the tools `tools/list` lists (cause `most.mcp.serve.tool-unknown`).