The Reachy Mini conversation app opens a new MCP connection for every tool call

Kind: idiosyncrasy · Status: current · Last verified: 2026-11-26 · Clients: reachy-mini-conversation-app · Revisions: 2025-11-25, 2026-07-28

At 622a3a67, RemoteMcpToolClient._connected_client builds a new httpx2.AsyncClient, a new streamable_http_client and a new mcp.Client each time it is entered, and closes all three on exit. list_tool_specs and call_tool each enter it once. Client is built from the transport alone, so mode is the SDK default auto.

What a server sees for one model tool call

This order is read from the code and mcp 2.2.0. No probe run has captured it.

  1. server/discover at 2026-07-28. A server that answers with a modern version gets the rest of the exchange in the per-request _meta envelope. Any other answer leads to initialize offering 2025-11-25, then notifications/initialized.
  2. tools/call.
  3. tools/list, one page with no cursor, when the result is not an error. ClientSession.call_tool validates structuredContent against the tool's outputSchema and lists tools first when the session has no cached schema. A per-call session never has one. A tool that is not on the first page is logged and left unvalidated.
  4. A DELETE when the transport closes, if a handshake-era server issued a session id. streamable_http_client defaults to terminate_on_close=True.

What follows from it

crewAI's native route has the same shape on mcp 1.30.0 ([[crewai-opens-a-new-mcp-session-for-every-tool-call]]). This client adds the discover probe in front of each call because it runs on the 2.x SDK in auto mode.

Sources