Your MCP Server “Won’t Connect”? Stop Printing to Stdout.

A stdio MCP server that runs fine in a terminal but 'won't connect' to the client is almost always writing logs to stdout. Stdout is reserved for JSON-RPC. Here's why one log line corrupts the protocol, and the one-line structlog fix.