How it changes initialization
WithuseServerManager: 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
PassuseServerManager: 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 ondisallowedTools, exposeResourcesAsTools, and exposePromptsAsTools to control scope.