Exception: MCPClient::Errors::ResponseStreamClosedError

Inherits:
TransportError show all
Defined in:
lib/mcp_client/errors.rb

Overview

Raised on the modern (2026-07-28) Streamable HTTP transport when an SSE response stream ends before delivering the JSON-RPC response. There is no resumption: "a broken response stream loses the in-flight request; clients MUST re-issue it as a new request with a new request ID". The transport makes that one replacement request itself — for every method, tools/call included, since the broken stream is also the cancellation signal the server MUST act on — and raises this when it too is lost.

Instance Method Summary collapse

Methods inherited from TransportError

#modern_protocol_error_for_probe?

Instance Method Details

#era_inconclusive? ⇒ Boolean

Returns the response was lost in transit, so the exchange revealed nothing about the server's protocol era.

Returns:

  • (Boolean) —

    the response was lost in transit, so the exchange revealed nothing about the server's protocol era



529
530
531
# File 'lib/mcp_client/errors.rb', line 529

def era_inconclusive?
  true
end