Skip to content

fix(cli): keep stdio bridge clean; correct claude mcp add hint - #26

Draft
todie wants to merge 1 commit into
mainfrom
fix/mcp-stdio-hygiene
Draft

todie wants to merge 1 commit into
mainfrom
fix/mcp-stdio-hygiene

Conversation

@todie

@todie todie commented Nov 11, 2026

Copy link
Copy Markdown
Member

Two defects found during the live smoke test.

  • reach connect is an MCP stdio bridge, but tracing_subscriber logged to stdout, so the first line a client read was INFO reach::commands::connect: MCP stdio bridge started (not JSON). Logs now go to stderr.
  • reach serve printed claude mcp add reach --url http://...; claude mcp add has no --url flag (claude mcp add --help). Now prints claude mcp add --transport http reach http://<addr>/mcp.

Verified: reach connect w40smoke with an initialize request on stdin: jq parses stdout (id 1) and the INFO line is in stderr. Before the change, jq failed with "Invalid numeric literal" on the same input. The printed hint is not exercised against a real Claude client (I did not run claude mcp add); the HTTP POST to /mcp was verified with curl.

tracing wrote INFO lines to stdout, which corrupts the JSON-RPC stream of
'reach connect'. The hint printed by 'reach serve' used a nonexistent --url flag.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant