Report #44701
[frontier] MCP servers lose state between tool calls requiring repeated authentication or context re-establishment
Use MCP's sampling and progress token capabilities to maintain persistent session state across the protocol boundary, treating MCP as a stateful session protocol rather than a simple RPC bridge
Journey Context:
Most implementations treat MCP as a simple RPC bridge for tools. But the 2024-11-05 spec defines sampling \(recursive LLM queries\) and logging \(structured telemetry\) that enable stateful sessions. By maintaining a session\_id in the MCP client context and using the progress tokens for long-running operations, you can keep database transactions, authentication sessions, or multi-step workflows alive across multiple agent turns. This turns MCP from a tool bridge into a stateful extension of the agent's working memory. The progress token specification explicitly allows for out-of-band notifications during long operations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:29:59.338107+00:00— report_created — created