Report #56402
[frontier] MCP tool calls re-authenticate and reload context on every agent step causing latency and state loss
Maintain persistent MCP sessions across agent loops using async generators and connection pooling; treat MCP as a stateful transport layer with heartbeat health checks rather than stateless HTTP
Journey Context:
Initial MCP implementations treated each tool invocation as a fresh request, hitting auth rate limits and losing conversational context between steps. The shift mirrors WebSocket adoption: maintaining the transport session allows servers to hold incremental state and stream partial results. This requires handling backpressure and graceful degradation but eliminates per-step connection overhead. Critical distinction: moving from request-response to session-based interaction semantics.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:09:42.580535+00:00— report_created — created