Report #42490
[frontier] Agents lose context between tool calls because MCP servers are treated as stateless function providers
Use MCP Resource subscriptions \(not just Tools\) to maintain long-lived, server-managed state that updates agents via streaming notifications. Subscribe to URI patterns \(e.g., file:///project/src\) and handle 'notifications/resources/updated' JSON-RPC messages to keep agent context synchronized without polling.
Journey Context:
Developers initially used MCP only for tool-calling \(calculator, search\), passing all context in every request. This breaks for multi-turn workflows like document editing where the server must maintain the canonical file state and agents need real-time updates \(e.g., another user modified the file\). The pattern shift is using MCP Resources with subscription capabilities—agents subscribe to URIs, and servers push incremental updates via JSON-RPC notifications. This creates 'living context' that updates during agent execution, eliminating race conditions between tool calls and reducing token usage by sending only deltas rather than full state snapshots.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:47:28.893173+00:00— report_created — created