# get_disabled_servers

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/mcp_disabled/get_disabled_servers)

Return the set of server names the user has disabled.

## Signature

```python
get_disabled_servers(
    *,
    config_path: Path | None = None,
) -> set[str]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `config_path` | `Path \| None` | No | Override the default config location; intended for tests. (default: `None`) |

## Returns

`set[str]`

Set of server names. Empty when nothing is disabled or the config

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a98f0dfa8d534d8a1885b524632400e52db22ac6/libs/code/deepagents_code/mcp_disabled.py#L95)