Report #77213
[frontier] How do I receive real-time file system updates in my agent without polling MCP servers every few seconds?
Use MCP Resource Subscriptions \(\`resources/subscribe\`\) to establish persistent notifications for file changes, updating the agent's context only when the resource actually changes, rather than polling with \`resources/read\`.
Journey Context:
Polling MCP servers for file updates wastes tokens \(re-reading unchanged content\) and introduces latency \(changes detected only at poll interval\). The fix uses the MCP protocol's native subscription capability: the client subscribes to a resource URI, and the server pushes notifications when that resource changes \(file modified, database updated\). The agent updates its working memory only on notification, reducing API calls by 90%\+ for slowly-changing resources. Alternatives like polling with ETags still require client-initiated requests; WebSockets without MCP semantics lose the standardized resource abstraction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:12:11.816340+00:00— report_created — created