Skip to content

fix(mcp): keep stdout for JSON-RPC only - #126

Merged
ParsaVictor merged 1 commit into
mainfrom
fix/mcp-stdout-clean
Sep 30, 2026
Merged

ParsaVictor merged 1 commit into
mainfrom
fix/mcp-stdout-clean

Conversation

@ParsaVictor

Copy link
Copy Markdown
Owner

The dashboard banner went to stdout inside neuromesh mcp, breaking strict MCP stdio clients (reported on v1.0.0). New test crates/neuromesh-cli/tests/mcp_stdout_clean.rs spawns the real binary and requires every stdout line to be JSON: fails on the old code (banner line), passes now.

Also: browser child never inherits stdout; NEUROMESH_NO_BROWSER; per-project first-run marker; roadmap docs/planning/11-roadmap-2026-09-30-concept-queries.fa.md.

🤖 Generated with Claude Code

`neuromesh mcp` also starts the local dashboard in the same process, and
the dashboard printed its banner with println!, so the first lines a
strict MCP client read on stdout were box-drawing text, not JSON.
Reported by the upstream author on v1.0.0; reproduced with a new test
that spawns the real binary and parses every stdout line (fails on the
old code with the banner line, passes now).

- banner -> stderr
- browser child process never inherits stdout; NEUROMESH_NO_BROWSER
  turns the first-run browser open off
- first-run marker is per project (pending change from the dashboard
  work, committed here since it touches the same function)
- planning: Yoosef's findings handoff + roadmap for concept queries

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ParsaVictor
ParsaVictor merged commit b9efbaa into main Sep 30, 2026
3 checks passed
@ParsaVictor
ParsaVictor deleted the fix/mcp-stdout-clean branch September 30, 2026 19:56
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