Skip to content

[Bug]: CLI bootstrap leaks initialization diagnostic logs to stdout on Windows #49

@AsifpMulla123

Description

@AsifpMulla123

Chrome version

N/A (CLI / MCP protocol backend issue)

Extension version

@nhonh/react-debugger@latest

React version

N/A (CLI issue)

Page URL

N/A (CLI issue)

Steps to reproduce

  1. Install an MCP client (such as the Cline VS Code extension) on a Windows environment.
  2. Add the React Debugger MCP configuration block using npx @nhonh/react-debugger@latest mcp as the command server arguments.
  3. Attempt to initialize or launch the server connection from the host client.
  4. Observe the connection dropping immediately with strict JSON parsing stream crashes.

Expected behavior

The MCP server should communicate strictly using pure JSON-RPC over the standard stdout channel. Any human-readable diagnostic messages, installer telemetry text, or bootstrap logging should be isolated completely to stderr so it does not corrupt the strict client-side JSON input stream parser.

Actual behavior

The CLI bootstrap layer leaks raw installation and initialization diagnostic text logs directly into the stdout pipe on Windows environments. This passes raw, unformatted text strings to the client stream listener, triggering JSON parser exceptions and abruptly dropping the connection. ### Environment Info

  • OS: Windows
  • Node.js Version: v22.18.0

Console errors

Unexpected token 'R', " React Debu"... is not valid JSON
Unexpected token 'R', "Running in"... is not valid JSON
Unexpected token 'I', "Installing"... is not valid JSON
Unexpected token 'D', "Downloadin"... is not valid JSON
Unexpected token 'D', "Download complete!" is not valid JSON
Unexpected token '✓', "✓ Installa"... is not valid JSON
MCP error -32000: Connection closed

Screenshot of the extension panel

No response

Pre-submission checklist

  • I searched existing issues and did not find a duplicate
  • I am running the latest version of the extension
  • I read SUPPORT.md and this is a bug, not a usage question

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions