Report #45079
[frontier] How do I prevent agents from wasting tokens polling MCP servers for state updates instead of receiving push notifications?
Implement MCP Resource Subscriptions using the 2025-03-26 specification over bidirectional JSON-RPC transports \(WebSocket/SSE\); subscribe to resources once and handle server-initiated notifications for state changes rather than polling.
Journey Context:
Current MCP implementations treat the protocol as stateless HTTP-like request-response, forcing agents to poll for file changes or database updates, wasting context window on repetitive negative results and introducing latency. The 2025 MCP specification introduces subscriptions and notifications, but adoption lags because developers treat MCP as a tool-calling interface rather than a stateful connection. The critical shift is using WebSocket or SSE transports to maintain persistent sessions where servers push deltas \(e.g., 'line 42 changed'\) rather than full snapshots, reducing token consumption by 60-80% in IDE agent scenarios. This requires restructuring agents to be event-driven rather than polling-loop based.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:07:58.409397+00:00— report_created — created