Skip to main content

fastmcp.cli.deploy.credentials

Restricted Horizon credential storage and resolution.

Functions

resolve_credential

Resolve environment, stored, then interactive credentials.

revoke_and_clear_credential

Attempt remote revocation and always remove the stored credential.

Classes

AuthenticationRequiredError

No Horizon credential is available without interactive authorization.

AuthState

Methods:

require_nonempty_api_key

ResolvedCredential

CredentialStore

Persist the active personal Horizon API key. Methods:

load

save

save_for_origin

Save a key only while its issuing Horizon origin is active.

clear_if_matches

Clear a key only while its Horizon origin and value are active.

clear