Skip to main content
Glama
settings.py1.42 kB
"""Application settings loaded from environment variables.""" from functools import lru_cache from typing import Optional from pydantic_settings import BaseSettings class Settings(BaseSettings): """ Application settings loaded from environment variables. """ # Server Configuration SERVER_NAME: str = "kyc-mcp-server" SERVER_VERSION: str = "1.0.0" LOG_LEVEL: str = "INFO" # KYC API Configuration KYC_API_BASE_URL: str KYC_API_KEY: str KYC_JWT_SECRET: str KYC_JWT_ALGORITHM: str = "HS256" KYC_JWT_EXPIRY: int = 3600 # Redis Configuration REDIS_HOST: str = "localhost" REDIS_PORT: int = 6379 REDIS_DB: int = 0 REDIS_PASSWORD: Optional[str] = None REDIS_SSL: bool = False # Cache Configuration CACHE_ENABLED: bool = True CACHE_DEFAULT_TTL: int = 3600 CACHE_MAX_SIZE: int = 1000 # Rate Limiting RATE_LIMIT_ENABLED: bool = True RATE_LIMIT_PER_MINUTE: int = 60 RATE_LIMIT_PER_HOUR: int = 1000 # Retry Configuration MAX_RETRIES: int = 3 RETRY_BACKOFF_MULTIPLIER: int = 2 REQUEST_TIMEOUT: int = 30 # Monitoring ENABLE_METRICS: bool = True METRICS_PORT: int = 9090 class Config: """Pydantic config.""" env_file = ".env" case_sensitive = True @lru_cache() def get_settings() -> Settings: """Get cached settings instance.""" return Settings()

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/CTD-Techs/CTD-MCP'

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