Report #75380
[tooling] Agent burns tokens polling MCP resources every turn to check for updates
Implement the \`resources/subscribe\` capability and emit \`notifications/resources/updated\` to push changes to the agent, eliminating polling loops
Journey Context:
Developers often expose dynamic data \(logs, prices, queue status\) as Resources, but agents then \`resources/read\` every step to check freshness. MCP supports a pub-sub model: the server declares \`resources.subscribe: true\` in capabilities. When the agent calls \`resources/subscribe\` with a URI, the server later pushes \`notifications/resources/updated\`. The agent caches the resource and only re-reads on notification. This cuts token usage by 10x on chatty workflows. Many SDK examples omit subscriptions because they require async notification handling, but for stateful agents it's essential.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:07:33.475976+00:00— report_created — created