---
title: "bonusFeatures.sessionRecovery support in MCP clients"
description: "Which MCP clients support bonusFeatures.sessionRecovery, and how each claim is known. It is not a protocol feature with its own lifecycle, so the registry tracks it on its own terms."
canonical: https://canimcp.io/capabilities/bonusFeatures-sessionRecovery
last-updated: 2026-11-27
---

> **Alpha: work in progress. canimcp is an alpha, built by one person and changing often. Statuses, notes and probe results may be incomplete or inaccurate, and pages, data and the API can change without notice. Check the cited source before relying on a claim, and send corrections through the [contact page](https://canimcp.io/contact).**

# `bonusFeatures.sessionRecovery` support in MCP clients

Which MCP clients support `bonusFeatures.sessionRecovery`, and how each claim is known. It is not a protocol feature with its own lifecycle, so the registry tracks it on its own terms.

## Support

| Client | Kind | Status | Known from | Revisions | Notes |
|---|---|---|---|---|---|
| [Codex CLI](/clients/openai-codex.md) | host | ● full | read | `2025-06-18` | A request that gets a 404 on a session re-initializes and is sent once more, tool calls included. In alpha releases a 404 on a reply to a server request also marks the session expired; in-flight calls then fail and the next operation re-initializes. A session left behind by a failed recovery handshake is closed with DELETE (alpha only). It applies to the handshake era only. |
| [opencode](/clients/opencode.md) | host | ● full | read | `2025-11-25` | A 404, or a 400 with body "Bad Request: Server not initialized", on a connection that holds an Mcp-Session-Id is mapped to SessionExpiredError, unless the 404 body is a JSON-RPC method-not-found error, which some servers send for a method they do not implement. opencode then reconnects and runs the request once more. This is opencode's own code; the SDK patch no longer contains it. Tool calls, prompt gets, resource reads and resource listing recover this way. At 7cde8329 the recovery was a patch to SDK 1.29.0, recorded here as patchedSdkSessionRecovery. It applies to the handshake era only: a 2026-07-28 connection carries no session id. |
| [Hermes Agent](/clients/hermes-agent.md) | host | ● full | read | `2025-11-25` | Expired HTTP sessions are detected and the transport reconnected. The call is retried once only for tools annotated readOnlyHint: true; any other tool gets the transport healed and an outcome_uncertain error instead of a replay. A connect-failure cooldown keeps a dead server from being retried in a tight loop, and a parked server first probes after 300 seconds, doubling after each failed revival up to 3600. A stdio server marked single_instance that fails its initial connect attempts parks with no timed probe until an explicit reconnect. |
| [pi](/clients/pi.md) * | host | ● full | read | `2025-11-25` | A 404 on a request that carried a session id raises McpSessionExpiredError. The connection opens a new session and retries the request once, tool calls included, on the reasoning that the server did not run it. Listing and reading resources are also retried once after a 408, 429 or 5xx; tool calls are not. |
| [Strands Agents](/clients/strands.md) | framework | ◇ opt-in | read | `2026-07-28` | auto_reconnect, off by default and not in a release tag yet: it landed after python/v1.65.0. A tool call that finds the session dropped or terminated stops the client, starts it again with up to four attempts inside one startup_timeout, and re-sends the call once. The docstring warns that a call that already reached the server may run twice. TypeScript has connect(true) and no automatic retry. |
| [deepagents](/clients/deepagents.md) * | framework | ◐ partial | read | `2025-11-25` | A FastMCP middleware on each mounted proxy catches a closed connection during tools/call, tears the session down so the next call reconnects, and returns an isError result saying the operation may have completed and was not retried. The failed call is never replayed. A failed token refresh is returned as an error result carrying the login command. |
| [Google ADK (Python)](/clients/adk-python.md) | framework | · untested | read | `2025-11-25` | The recovery path keys on the session-terminated error that the SDK raises for a dropped Mcp-Session-Id. Whether anything triggers it on a connection with no session id was not checked. |

Not recorded for [goose](/clients/goose.md), [Cline](/clients/cline.md), [fast-agent](/clients/fast-agent.md), [OpenClaw](/clients/openclaw.md), [Kilo Code](/clients/kilocode.md), [Mastra](/clients/mastra.md), [fx (native engine)](/clients/fx.md), [libfx (fx JavaScript adapter)](/clients/libfx.md), [eve](/clients/eve.md), [crewAI](/clients/crewai.md), [Microsoft Agent Framework](/clients/agent-framework.md), [Google Antigravity](/clients/antigravity.md), [Claude Code](/clients/claude-code.md), [Claude.ai](/clients/claude-ai.md), [ChatGPT](/clients/chatgpt.md), [Codex Desktop](/clients/codex-desktop.md), [Hugging Face Chat UI](/clients/huggingface-chat-ui.md), [Cursor](/clients/cursor.md), [Visual Studio Code](/clients/vscode.md), [n8n](/clients/n8n.md), [Langflow](/clients/langflow.md), [mcp-use](/clients/mcp-use.md), [Zed](/clients/zed.md), [TypeScript SDK Client](/clients/ts-sdk-client.md), [Warp](/clients/warp.md), [Reachy Mini conversation app](/clients/reachy-mini-conversation-app.md). A missing record is not the same as unsupported.

Rows describe each client on `2026-07-28`. A row marked * is for the newest revision the client speaks, because it cannot negotiate `2026-07-28`: `2025-11-25` for 2 clients.

Tiers are not ranked. `read` is a source read at a pinned commit, `verified` is a probe run, `observed` is telemetry, and `declared` is what the client or a curated list says. "Through" names the parent capability whose evidence a row rests on when it has none of its own.

## By protocol revision

On `2025-11-25` these clients record a different row. The other clients' rows above hold on `2025-11-25` as well.

| Client | On `2026-07-28` | On `2025-11-25` | Notes on `2025-11-25` |
|---|---|---|---|
| [fast-agent](/clients/fast-agent.md) | not recorded | ● full | A -32600 "Session terminated" on a handshake-era connection is turned into a typed error and, with reconnect_on_disconnect left on, the operation is replayed against a fresh connection. The check explicitly excludes modern connections, which carry no session to lose. |
| [fx (native engine)](/clients/fx.md) | not recorded | ● full | A 404 for the current session starts a new session with initialize. A 404 without a session id is a plain failure. |
| [Google ADK (Python)](/clients/adk-python.md) | · untested | ● full | When a server reports that it no longer holds the session, ADK drops the pooled session, opens a new one and retries the tool call once. It recognises the SDK's code 32600 on 1.x and INVALID_REQUEST with the message Session terminated on 2.x. A transport failure in the middle of a tool call is not retried. tools/list and session setup are retried once on any error. |
| [Microsoft Agent Framework](/clients/agent-framework.md) | not recorded | ● full | A ClosedResourceError, or an MCPError whose message contains 'session terminated', counts as connection loss. For a framework-owned connection the tool reconnects, reloads tools and prompts if needed, and retries the tools/call once. mcp 2.3.0 produces that message from an HTTP 404 on a request that carried a session id. A caller-owned Client or ClientSession is not recreated and the call fails. prompts/get retries only on ClosedResourceError. .NET: C# SDK 2.2.0 marks the transport closed on the same 404 and does not re-initialize. dotnet/src has no recovery code, and the clients the framework builds live for one invocation or one response. |
| [Hugging Face Chat UI](/clients/huggingface-chat-ui.md) | not recorded | ● full | An HTTP 404 on a call is treated as an expired session: the pooled client is evicted, a new one runs initialize, and the call is sent again, up to twice. |

[Hermes Agent](/clients/hermes-agent.md) has one set of rows for every revision it speaks, not yet split by revision.

The [matrix on `2025-11-25`](/capabilities/revision/2025-11-25.md) shows every capability on that revision.

## Evidence

[Codex CLI](/clients/openai-codex.md):

- *read* at `2025-06-18`: openai/codex at `18c09f20` `codex-rs/rmcp-client/src/rmcp_client.rs:RmcpClient.run_service_operation_with_pause_state,RmcpClient.reinitialize_after_session_expiry_inner`, 2026-11-27
- *read* at `2025-06-18`: openai/codex at `18c09f20` `codex-rs/rmcp-client/src/session_expiry_transport.rs:SessionExpiryTransport,send`, 2026-11-27. Alpha only (358e3dd0, rust-v0.174.0-alpha.6).

[opencode](/clients/opencode.md):

- *read* at `2025-11-25`: anomalyco/opencode at `5d1f7884` `packages/core/src/mcp/client.ts:connect`, 2026-11-27
- *read* at `2025-11-25`: anomalyco/opencode at `5d1f7884` `packages/core/src/mcp/connection.ts:make`, 2026-11-27
- *read* at `2025-11-25`: anomalyco/opencode at `5d1f7884` `packages/core/src/mcp/index.ts:layer`, 2026-11-27

[Hermes Agent](/clients/hermes-agent.md):

- *read* at `2025-11-25`: NousResearch/hermes-agent at `77236c4a` `tools/mcp_tool_errors.py:InvalidMcpUrlError._is_streamable_http_rejection`, 2026-11-27
- *read* at `2025-11-25`: NousResearch/hermes-agent at `77236c4a` `tools/mcp_tool_handlers.py:_acquire_call_server,_handle_session_expired_and_retry`, 2026-11-27
- *read* at `2025-11-25`: NousResearch/hermes-agent at `77236c4a` `tools/mcp_tool_server_run.py:MCPServerRunMixin._log_park,MCPServerRunMixin._on_initial_connect_error`, 2026-11-27
- *read* at `2025-11-25`: NousResearch/hermes-agent at `77236c4a` `tools/mcp_tool.py`, 2026-11-27

[pi](/clients/pi.md):

- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/mcp/src/transports/streamable-http.ts:StreamableHttpTransport.checkResponse`, 2026-11-27
- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/coding-agent/src/extensions/mcp/runtime.ts:McpServerConnection`, 2026-11-27

[Strands Agents](/clients/strands.md):

- *read* at `2026-07-28`: strands-agents/harness-sdk at `78855cad` `strands-py/src/strands/tools/mcp/mcp_client.py:MCPClient.__init__`, 2026-11-27
- *read* at `2026-07-28`: strands-agents/harness-sdk at `78855cad` `strands-py/src/strands/tools/mcp/mcp_client.py:MCPClient.call_tool_async,MCPClient`, 2026-11-27
- *read* at `2026-07-28`: strands-agents/harness-sdk at `78855cad` `strands-ts/src/mcp/client.ts:McpClient,McpClient.connect`, 2026-11-27. TypeScript binding.

[deepagents](/clients/deepagents.md):

- *read* at `2025-11-25`: langchain-ai/deepagents at `c84eb7f1` `libs/code/deepagents_code/mcp_proxy.py:MCPBackendMiddleware`, 2026-11-27

[Google ADK (Python)](/clients/adk-python.md):

- *read* at `2025-11-25`: google/adk-python at `03725e8c` `src/google/adk/tools/mcp_tool/mcp_session_manager.py:_reports_session_terminated,_is_session_terminated_error,retry_on_errors,MCPSessionManager._discard_session`, 2026-11-27
- *read* at `2025-11-25`: google/adk-python at `03725e8c` `src/google/adk/tools/mcp_tool/mcp_tool.py:McpTool._run_async_impl,McpTool._call_tool_on_session`, 2026-11-27

[fast-agent](/clients/fast-agent.md) on `2025-11-25`:

- *read* at `2025-11-25`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/mcp/client_connection.py:MCPClientConnection._request`, 2026-11-27
- *read* at `2025-11-25`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/config.py:MCPServerSettings`, 2026-11-27

[fx (native engine)](/clients/fx.md) on `2025-11-25`:

- *read* at `2025-11-25`: vercel-labs/fx at `b4502b01` `src/mcp/core/http_legacy.zig:step`, 2026-11-27

[Microsoft Agent Framework](/clients/agent-framework.md) on `2025-11-25`:

- *read* at `2025-11-25`: microsoft/agent-framework at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py:MCPTool._is_connection_loss`, 2026-11-27
- *read* at `2025-11-25`: microsoft/agent-framework at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py:MCPTool._call_tool_with_retries`, 2026-11-27
- *read* at `2025-11-25`: microsoft/agent-framework at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py:MCPTool._recover_connection_after_loss`, 2026-11-27. Caller-owned connections are not recreated.
- *read* at `2025-11-25`: modelcontextprotocol/python-sdk `mcp/client/streamable_http.py`, 2026-11-16. mcp 2.3.0 wheel. 404 with a session id becomes -32600 "Session terminated".
- *read* at `2025-11-25`: modelcontextprotocol/csharp-sdk at `6fa38259` `src/ModelContextProtocol.Core/Client/StreamableHttpClientSessionTransport.cs`, 2026-11-16. ModelContextProtocol 2.2.0 (tag v2.2.0). SetSessionExpired stores a ClientTransportClosedException and disconnects.

[Hugging Face Chat UI](/clients/huggingface-chat-ui.md) on `2025-11-25`:

- *read* at `2025-11-25`: huggingface/chat-ui at `7fc0f672` `src/lib/server/mcp/httpClient.ts:callMcpTool,isSessionExpiredError`, 2026-11-27

## Research notes

- [Codex replays a request after a session 404, and fails in-flight calls after a reply 404](/research/codex-recovers-expired-http-sessions-two-ways.md)

## Kinds

- framework: A library an application embeds. A capability row is what a default install declares, and the embedding application can change it.

## Data

This page as JSON: [`/data/capabilities/bonusFeatures-sessionRecovery.json`](/data/capabilities/bonusFeatures-sessionRecovery.json). All capabilities: [`/data/capabilities/index.json`](/data/capabilities/index.json), and the [matrix](/capabilities/index.md).

