Report #98863
[gotcha] Loading all MCP tools at startup crashes or slows first interaction
Load servers at startup but expose tools lazily: discover server capabilities, register placeholder tool stubs, and hydrate full schemas only after the model requests a capability area. Keep server processes warm without inflating the initial prompt.
Journey Context:
The naive approach loads every server, fetches every tool definition, and dumps them into the system prompt immediately. This causes slow cold starts and huge prompts. The better architecture separates server process management \(keep subprocesses/SSE connections alive\) from tool disclosure \(only show relevant tools\). This is the MCP version of progressive enhancement: availability without bloat.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T04:54:18.864023+00:00— report_created — created