Skip to main content
Glama
by cycodehq
handle_auth_errors.pyโ€ข597 B
import typer from cycode.cli.exceptions.custom_exceptions import ( KNOWN_USER_FRIENDLY_REQUEST_ERRORS, AuthProcessError, ) from cycode.cli.exceptions.handle_errors import handle_errors from cycode.cli.models import CliError, CliErrors def handle_auth_exception(ctx: typer.Context, err: Exception) -> None: errors: CliErrors = { **KNOWN_USER_FRIENDLY_REQUEST_ERRORS, AuthProcessError: CliError( code='auth_error', message='Authentication failed. Please try again later using the command `cycode auth`' ), } handle_errors(ctx, err, errors)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cycodehq/cycode-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server