One console.log disconnects your MCP server: the stdout bug every stdio server author hits
This story is from 2026-09-28. It is preserved in the archive; the latest stories are on the live feed.
You add a tool to your MCP server, restart the client, and instead of an answer you get: MCP error -32000: Connection closed Nine times out of ten, the cause is one debug line: server . registerTool ( " add " , { /* ... */ }, async ({ a , b }) => { console . log ( " adding numbers " , a , b ); // r…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-09-28 03:46 · DEV Community — AI
One console.log disconnects your MCP server: the stdout bug every stdio server author hits