Skip to content

fix: only stream server stderr in debug mode#214

Open
haosenwang1018 wants to merge 3 commits intophilschmid:mainfrom
haosenwang1018:fix/quiet-server-stderr-by-default
Open

fix: only stream server stderr in debug mode#214
haosenwang1018 wants to merge 3 commits intophilschmid:mainfrom
haosenwang1018:fix/quiet-server-stderr-by-default

Conversation

@haosenwang1018
Copy link

Summary

  • add shouldStreamServerStderr() helper that returns true only when MCP_DEBUG is set
  • update connectToServer to only stream server stderr live in debug mode
  • keep capturing stderr for error messages on connection failure (always)
  • reduce noise from LSP/MCP server startup banners in normal usage (fixes noisy output reported in Errors with this config #3 and only show STDERR with -v or -debug #17)

Testing

  • Added tests for shouldStreamServerStderr() behavior
  • All existing tests pass

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