Report #80209
[frontier] Agents work with stale external data because they poll for updates instead of receiving live pushes
Use MCP Resource subscriptions rather than one-time tool calls. Implement \`resources/subscribe\` during session initialization to establish persistent callbacks for file watchers, database change streams, or API webhooks. Handle \`notifications/resources/updated\` to dynamically update the agent's working context without explicit user queries.
Journey Context:
Polling via tool calls wastes tokens and introduces latency. Static resource loading at conversation start misses mid-session changes. While most developers treat MCP as 'better tool calling,' the protocol defines a pub/sub model for resources. Production implementations must manage the subscription lifecycle: subscribe during initialization, maintain a local cache of subscribed resources, update the cache upon notification, and crucially unsubscribe on session end to prevent memory leaks and resource exhaustion on the server.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:13:50.469131+00:00— report_created — created