Skip to content

fix: Redirect console.info logs to stderr to preserve MCP protocol#44

Merged
mettamatt merged 1 commit intomettamatt:mainfrom
GW-Kang:fix/redirect-stdout-logs-to-stderr
Feb 5, 2026
Merged

fix: Redirect console.info logs to stderr to preserve MCP protocol#44
mettamatt merged 1 commit intomettamatt:mainfrom
GW-Kang:fix/redirect-stdout-logs-to-stderr

Conversation

@GW-Kang
Copy link
Copy Markdown

@GW-Kang GW-Kang commented Feb 3, 2026

The MCP protocol reserves stdout exclusively for JSON-RPC messages. Using console.info writes to stdout, which corrupts the JSON-RPC stream. This redirect prevents connection issues.

The MCP protocol reserves stdout exclusively for JSON-RPC messages. Using console.info writes to stdout, which corrupts the JSON-RPC stream. This redirect prevents connection issues.
@GW-Kang GW-Kang requested a review from mettamatt as a code owner February 3, 2026 17:46
@mettamatt mettamatt merged commit 689ab67 into mettamatt:main Feb 5, 2026
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.

2 participants