> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Base

> Base API Documentation

**Source Code**

View the source code for this module on GitHub: [[https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp\_use/agents/managers/base.py](https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/managers/base.py)](https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/managers/base.py)

## BaseServerManager

`class` BaseServerManager

Abstract base class for server managers.

This class defines the interface for server managers that can be used with MCPAgent.
Custom server managers should inherit from this class and implement the required methods.

```python theme={null}
from mcp_use.agents.managers.base import BaseServerManager
```

> [card]
>
> ### `method` has\_tool\_changes
>
> Check if the available tools have changed.
>
> **Parameters**
>
> > **current\_tool\_names** `set[str]` *required*
> >
> > Set of currently known tool names
>
> **Returns**
>
> > **returns** `bool`
> >
> > True if tools have changed, False otherwise
>
> **Signature**
>
> ```python wrap theme={null}
> def has_tool_changes(current_tool_names: set[str]):
> ```

> [card]
>
> ### `method` initialize
>
> Initialize the server manager.
>
> **Signature**
>
> ```python wrap theme={null}
> def initialize():
> ```

> [card]
>
> ### `property` tools
>
> Get all server management tools and tools from the active server.
>
> **Returns**
>
> > **returns** `list[langchain_core.tools.base.BaseTool]`
>
> **Signature**
>
> ```python wrap theme={null}
> def tools():
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.