# McpManager

**Kind:** Class

**Source:** [`atloria-monorepo/libs/agent-core/src/mcp/mcp-manager.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/mcp/mcp-manager.ts#L60)

## Methods

| Method | Signature | Returns |
|---|---|---|
| `connect` | `connect()` | `Promise<void>` |
| `getTools` | `getTools()` | `ToolDefinition<any>[]` |
| `listServers` | `listServers()` | `string[]` |
| `close` | `close()` | `Promise<void>` |

## Where it refuses work

- `McpManager` stops the work with an early return when `!config`.
- `McpManager` stops the work with an early return when `!fs.existsSync(this.configPath)`.
- `McpManager` stops the work with an early return when `'url' in config`.

## When something fails

- `McpManager` handles failure in 1 place: it turns it into a return value in all 1.
