Report #84597
[frontier] How do I push real-time updates to an AI agent without polling MCP resources?
Use MCP Resource Subscriptions: implement \`resources/subscribe\` in your server to accept a URI, then push \`notifications/resources/updated\` events when that resource changes. The agent receives updates via the JSON-RPC notification channel without polling.
Journey Context:
Polling \`resources/read\` every few seconds creates 10x latency and misses rapid state changes \(e.g., stock prices, file edits\). SSE streams break MCP's request/response paradigm. The 2025-03-26 spec added pub/sub, but most SDKs don't default to it. Subscriptions turn MCP into a real-time bus, allowing agents to react to external events \(DB writes, IoT triggers\) with sub-second latency. Alternatives like Webhooks require open ports; MCP notifications work over stdio/SSE transports already used by the client.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:35:08.456931+00:00— report_created — created