If a Model Context Protocol Streamable HTTP connection drops while a tool call is outstanding, use a resume GET with the last received SSE event ID when you have one. Preserve the original call as pending until its response or an authoritative destination read settles the outcome. When replay is unavailable and the tool may have changed state, reconcile the effect before considering a new call.
This guidance applies to MCP revision 2025-11-25. In Streamable HTTP, resumption uses an HTTP GET to the MCP endpoint with Last-Event-ID, whether the stream originally started with POST or GET. Official source
Servers may assign SSE event IDs and replay messages after the supplied ID, but replay must stay within the disconnected stream. Official source
Keep three identifiers with the pending call
Store the original JSON-RPC request ID so the client can correlate a replayed response. Keep a separate cursor for each SSE stream, including a cursor from an empty-data priming event when the server provides one. Store the logical operation key separately so your workflow can query the destination for a concrete effect. If local processing requires a durable checkpoint, persist the handled event or response before moving that checkpoint past it. Treat a session ID as sensitive state.
Send the resume GET with Accept allowing text/event-stream and include the negotiated MCP protocol version header. When a server assigned an MCP session ID, the client must include it on subsequent HTTP requests. Official source
If the server supplied an SSE retry delay for reopening the POST-originated stream, respect it. When a GET carrying a session ID receives HTTP 404, initialize a new session without that ID. Session renewal restores a connection for future work. Keep the earlier business operation pending until you can account for it. Official source
Choose the next step from the evidence
| What the client observes | What to do |
|---|---|
| Matching JSON-RPC response replays | Apply the response once to the original call and check the destination when the action requires it |
| GET reconnects but yields no matching response within your recovery budget | Read the destination or an authoritative operation status using the original operation key |
| No cursor, expired session or unsupported resume path | Record the delivery gap and reconcile the operation through an independent read |
| Destination confirms the intended effect | Mark the effect complete and retain its receipt |
| Destination evidence is missing or ambiguous | Hold the effectful retry unless a verified idempotency contract covers it |
A disconnect should not be treated as cancellation under the MCP Streamable HTTP transport rules. Official source
HTTP semantics advise against automatically repeating a non-idempotent request unless the client knows the request is effectively idempotent or can determine that the original was never applied. Official source
A dropped stream after a write
In an illustrative test, a tool starts a document export for a unique operation key. The connection drops after the destination commits the export and before the JSON-RPC response reaches the client. In one run, the resume GET returns no answer within the test budget. In a second, the old session returns HTTP 404 and the client initializes a new session for subsequent requests. Both outcomes leave the export eligible for a read by the original operation key. An authoritative lookup finds the export under the original key. The workflow records the destination receipt and closes the pending operation without creating a second export. If the lookup instead returns no row from a delayed index, the workflow keeps the operation unknown until it has a definitive read or a supported same-key retry.
Build that case into a transport fixture. Drop the stream just before the response and verify from captured traffic that recovery sends a GET with the correct stream cursor and no second POST. Add a replayed response and confirm that the original pending record advances once. Then repeat with replay disabled and confirm that the authoritative destination lookup, or an explicit unknown state, is what settles the workflow’s next action. Designing replay-safe agent checkpoints
sinc-LLM