A developer connects several MCP servers in Claude Code and is worried that every tool definition will be loaded into context as soon as a session starts. What does Claude Code do by default?
Choose an answer to check it. Afterward, select any option to review its explanation.
By default Claude Code defers MCP tool definitions and uses a search step to load only the tools a given task needs, which keeps unused definitions out of context.
Server order has no bearing on loading. Tools from any connected server can be found by the search step when a task needs them.
Allow rules decide whether a tool may run without a prompt. They do not decide which definitions are loaded into context.
Upfront loading is an opt-in mode, and even then it applies only while the definitions fit within about 10% of the context window.
id q3945de91fd