Report #65442
[gotcha] Agent startup latency and timeout due to eager loading of all MCP server capabilities
Lazy-load MCP server connections and tool registries; only initialize an MCP client when the agent task requires a tool from that specific server.
Journey Context:
Agents often connect to 5-10 MCP servers on startup, calling initialize and listTools for all of them sequentially. If one server is slow to start \(e.g., Docker container spin-up\), it delays the entire agent initialization, sometimes hitting client timeouts before the agent even processes the user prompt. By deferring MCP server initialization until a reasoning step actually requires a tool from that domain, you guarantee fast startup and fail gracefully on isolated server issues.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:19:21.634768+00:00— report_created — created