Initial Checks
Description
When an MCP server returns HTTP 5xx errors (e.g., when the server is down) after initial connection, these errors are not being propagated to the caller. This makes it impossible for client applications to detect and handle server failures appropriately. More than that, clients which are waiting for response stream, like Strands SDK, are hanging forever since no response is returned
Example Code
Python & MCP Python SDK
Initial Checks
Description
When an MCP server returns HTTP 5xx errors (e.g., when the server is down) after initial connection, these errors are not being propagated to the caller. This makes it impossible for client applications to detect and handle server failures appropriately. More than that, clients which are waiting for response stream, like Strands SDK, are hanging forever since no response is returned
Example Code
Python & MCP Python SDK