browser-tools-mcp
browser-tools-mcp copied to clipboard
Keep MCP stdio logs off stdout
Summary
- route diagnostic MCP server logs to stderr instead of stdout
- install the stdout JSON-RPC guard before startup discovery runs
- keep stdout reserved for MCP JSON-RPC messages
Verification
- npm run build
- started
dist/mcp-server.jsover stdio and sent aninitializerequest; stdout contained only the JSON-RPC response while discovery logs were written to stderr