Skip to content

Conversation

@jdchawla29
Copy link
Collaborator

@jdchawla29 jdchawla29 commented Feb 8, 2026

Note

Medium Risk
Changes runtime monkey-patching of MCP transport internals; behavior shifts from swallowed errors to raised exceptions, which may affect retry/error flows in production if upstream expectations differ.

Overview
Fixes a hang in MCP streamable HTTP requests by patching StreamableHTTPTransport._handle_json_response to log and re-raise exceptions from response.aread() and JSON parsing instead of sending raw exceptions into the read stream.

Registers this new patch in apply_all_patches() so it is applied alongside the existing streamable HTTP error-handling patch.

Written by Cursor Bugbot for commit 033ecca. This will update automatically on new commits. Configure here.

@jdchawla29 jdchawla29 force-pushed the j/new-mcp-patch-just-dropped branch from aef2b5a to 033ecca Compare February 8, 2026 04:23
@lorenss-m lorenss-m merged commit b6dab5e into main Feb 8, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants