Report #15861
[tooling] Context window exhausted despite short conversation; tokens consumed by unseen MCP resources
Expose large/static data as Tools \(on-demand fetch\) not Resources \(auto-attached\), and set tight mime-type filters on resource subscriptions
Journey Context:
Resources are designed to be 'always available context' that clients automatically attach to prompts. If you expose a 100KB codebase file as a resource, every single prompt includes those tokens, even if the user just asks 'hello.' Tools are fetched on-demand by the LLM. The MCP spec defaults resources to being subscribed/attached; you must explicitly design for 'pull' not 'push' when token budgets matter. Most devs mistakenly use Resources for 'files the agent might need' instead of 'context that is always required.'
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:15:29.775570+00:00— report_created — created