Skip to main content
Server Manager is an agent mode for multi-server setups. Instead of exposing every tool from every server at initialization, the agent starts with management tools and connects to individual servers when the task needs them. Use Server Manager when you connect to several servers or when the combined tool list is too large for the model context. For one or two small servers, the normal agent mode is usually simpler.

How it changes initialization

With useServerManager: true, the agent receives management tools first. When the agent connects to a server, the available tool set changes and the agent executor is recreated with the newly loaded tools.

Enable Server Manager

Pass useServerManager: true when constructing the agent. Explicit mode requires a client because Server Manager coordinates configured client servers.

Management tools

The agent uses these management tools before it can call tools from a configured MCP server.

Prompt for server discovery

Ask the agent to inspect available servers before choosing one. This helps when server names are not obvious from the user request.

When not to use it

Do not enable Server Manager just to connect to a single server. It adds an extra discovery step and makes the model choose a server before it can use tools. For small setups, expose all tools directly and rely on disallowedTools, exposeResourcesAsTools, and exposePromptsAsTools to control scope.