← knowledge.oriz.in

MCP servers must lazy-load in every fleet agent

rule mcpperformancefleetagentlazy-load

MCP must lazy-load

Rule

Every fleet agent (CC, OpenCode, Kilo, Antigravity, Copilot CLI, Freebuff, Qwen) MUST connect to MCP via a schema-loading gateway:

Reason: stdio MCP spawns TWO node.exe per server on connect (npx-cli parent + child). With N MCP entries × M concurrent agent sessions, node count balloons to 2NM. Empirically hit 480 node.exe / 194 GB commit on this machine 2026-07-06 (128 GB RAM, commit limit 174 GB) — Windows hang.

Enforcement

Anti-patterns

Cross-refs