Report #91316
[frontier] Tool calling overhead explodes when retrieving large codebases or file trees via MCP
Use MCP Resources with subscriptions to stream context \(file trees, git state\) as persistent connections, treating them as 'mountable context' rather than one-shot tool calls
Journey Context:
Developers initially treat MCP as a fancy tool-calling API, invoking 'read\_file' for every context need. This creates N\+1 latency problems and huge token overhead. The frontier pattern uses MCP Resources \(URI-based\) with subscription capabilities to maintain persistent streams of context \(e.g., 'subscribe to ./src changes'\). This shifts the paradigm from 'pull' tool calls to 'push' context synchronization, eliminating the 'retrieval then process' latency. Tradeoff: requires maintaining persistent connections and handling subscription lifecycle complexity versus stateless simplicity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:52:04.604491+00:00— report_created — created