mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-26 07:44:05 +00:00
The ruvector-mcp binary initializes its tracing subscriber without specifying a writer, defaulting to stdout. Under the stdio MCP transport this contaminates the JSON-RPC frame stream with log lines, causing every @modelcontextprotocol/sdk client to throw a Zod parse error on the very first frame. Add .with_writer(std::io::stderr) to both the debug and release tracing subscriber builders in crates/ruvector-cli/src/mcp_server.rs. Verified by stdio smoke test: first line of stdout is now a valid JSON-RPC initialize response with serverInfo.name == "ruvector-mcp", and tracing output appears exclusively on stderr as required by the MCP stdio transport spec. |
||
|---|---|---|
| .. | ||
| cli | ||
| mcp | ||
| config.rs | ||
| main.rs | ||
| mcp_server.rs | ||