Report #50969
[frontier] MCP tools fail to maintain state across agent turns
Treat MCP Resources as the source of truth for agent memory and MCP Tools as stateless idempotent operations, reading state via Resources on every turn to reconstruct context.
Journey Context:
Developers initially implement MCP like function calling, storing state in the agent's context window. This fails when context overflows or when agents crash because tool results are ephemeral. The insight is that MCP's Resources primitive is designed for durable state exposure, not just data retrieval. By writing state changes via Tools and reading current state via Resources on every turn, agents become stateless processes with durable memory, similar to React Server Components. This pattern requires shifting from a 'tool call' mental model to a 'resource synchronization' model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:01:59.321147+00:00— report_created — created