Skip to content

Stdio Protocol Corruption via Standard Output #27

Description

@gkorland

Description: In stdio transport mode, any dependency writing to stdout (e.g., console.log) will corrupt the JSON-RPC stream used by the MCP protocol.

Impact: Immediate disconnection or protocol errors for MCP clients like Claude Desktop.

Recommended Fix: Monkey-patch console.log to redirect to console.error (stderr) when the stdio transport is active.

Affected Files: src/index.ts, src/services/logger.service.ts.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions