You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
StdioTransport traps ("Negative value is not representable") when stdio is a socket, e.g. spawned by Node clients #327
Since #297 (merged 2026-10-31, on main, not in 0.12.1), StdioTransport.connect() traps when stdin/stdout is a socket:
Fatal error: Negative value is not representable
Node's child_process.spawn with stdio: 'pipe' uses socketpairs on macOS, and fstat on a socket reports st_dev == -1. dev_t is signed (Int32 on Darwin), so UInt64(status.st_dev) traps. Every Node-based MCP client hits this: Claude Desktop and Claude Code both report "Connection closed" right after initialize.
Hi, I've opened #334 fixing this with the bit-pattern conversion suggested above, plus a socketpair regression test. Happy to adjust if maintainers prefer a different approach.
Activity
NayanBhut commentedon Nov 23, 2026
Hi, I've opened #334 fixing this with the bit-pattern conversion suggested above, plus a socketpair regression test. Happy to adjust if maintainers prefer a different approach.