> ## 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.

# Get Active Server

> Get Active Server 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/tools/get\_active\_server.py](https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/managers/tools/get_active_server.py)](https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/managers/tools/get_active_server.py)

## CurrentServerInput

`class` CurrentServerInput

Empty input for checking current server

```python theme={null}
from mcp_use.agents.managers.tools.get_active_server import CurrentServerInput
```

> [card]
>
> ### `method` **init**
>
> Create a new model by parsing and validating input data from keyword arguments.
>
> Raises \[`ValidationError`]\[pydantic\_core.ValidationError] if the input data cannot be
> validated to form a valid model.
>
> `self` is explicitly positional-only to allow `self` as a field name.
>
> **Parameters**
>
> > **data** `Any` *required*
> >
> > Parameter value
>
> **Signature**
>
> ```python wrap theme={null}
> def __init__(data: Any):
> ```

## GetActiveServerTool

`class` GetActiveServerTool

Tool for getting the currently active MCP server.

```python theme={null}
from mcp_use.agents.managers.tools.get_active_server import GetActiveServerTool
```

> [card]
>
> **Attributes**
>
> >
>
> **name** `ClassVar` *required*
>
> Name identifier
>
> **description** `ClassVar` *required*
>
> Parameter value
>
> **args\_schema** `ClassVar` *required*
>
> Parameter value

> [card]
>
> ### `method` **init**
>
> Initialize with server manager.
>
> **Parameters**
>
> > **server\_manager** *required*
> >
> > Server name or configuration
>
> **Signature**
>
> ```python wrap theme={null}
> def __init__(server_manager):
> ```


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