Skip to content

Keep MCP stdio logs off stdout#235

Open
mirageN1349 wants to merge 1 commit into
AgentDeskAI:mainfrom
mirageN1349:fix/mcp-stdio-logging
Open

Keep MCP stdio logs off stdout#235
mirageN1349 wants to merge 1 commit into
AgentDeskAI:mainfrom
mirageN1349:fix/mcp-stdio-logging

Conversation

@mirageN1349

Copy link
Copy Markdown

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.js over stdio and sent an initialize request; stdout contained only the JSON-RPC response while discovery logs were written to stderr

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