Skip to main content

fastmcp.cli.deploy.horizon_client

Typed HTTP client for the Horizon control plane.

Functions

normalize_api_origin

Validate and normalize a Horizon API origin.

Classes

HorizonError

A safe Horizon client error.

HorizonUnavailableError

The Horizon API could not be reached.

HorizonUnauthorizedError

The Horizon credential was rejected.

HorizonResponseError

Horizon returned an unexpected response.

DeviceAuthorization

DeviceAccessToken

Methods:

require_nonempty_access_token

HorizonUser

HorizonOrganization

DeviceMetadata

DeviceTokenPoll

HorizonClient

Call the Horizon routes used by FastMCP CLI authentication. Methods:

aclose

create_device_authorization

exchange_device_authorization

get_current_user

list_organizations

revoke_current_api_key