Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

1.9 KB
Raw Blame
---
title: configuration
sidebarTitle: configuration
---

# `fastmcp.cli.deploy.configuration`


Global non-secret configuration for the FastMCP CLI.

## Classes

### `HorizonConfiguration` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/cli/deploy/configuration.py#L18" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

**Methods:**

#### `validate_api_origin` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/cli/deploy/configuration.py#L26" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
validate_api_origin(cls, value: str) -> str
```

### `ConfigurationStore` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/cli/deploy/configuration.py#L30" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>


Persist the Horizon API origin without organization state.


**Methods:**

#### `load` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/cli/deploy/configuration.py#L40" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
load(self) -> HorizonConfiguration
```

#### `save` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/cli/deploy/configuration.py#L49" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
save(self, configuration: HorizonConfiguration) -> None
```

#### `set_api_origin` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/cli/deploy/configuration.py#L55" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
set_api_origin(self, api_origin: str) -> HorizonConfiguration
```

Set the origin and clear credentials before an origin change.