mirror of
https://github.com/instructkr/claude-code.git
synced 2026-04-07 03:38:46 +03:00
feat(mcp): add toolCallTimeoutMs, timeout/reconnect/error handling
- Add toolCallTimeoutMs to stdio MCP config with 60s default - tools/call runs under timeout with dedicated Timeout error - Handle malformed JSON/broken protocol as InvalidResponse - Reset/reconnect stdio state on child exit or transport drop - Add tests: slow timeout, invalid JSON response, stdio reconnect - Verified: cargo test -p runtime 113 passed, clippy clean
This commit is contained in: