from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(
env_prefix="WEATHER_MCP_", env_file=".env", extra="ignore")
auth_enabled: bool = False
auth_mode: str = "local_jwt" # local_jwt | admin_introspect
secret_key: str = ""
admin_base_url: str = "http://localhost:8000"
admin_me_path: str = "/api/v1/auth/me"
admin_timeout_seconds: float = 3.0
# QWeather Web API configuration.
# Security: keep API key in environment variables (e.g. .env in local dev, secret manager in prod).
# Example host: https://abcxyz.qweatherapi.com (check QWeather Console -> Setting -> API Host).
qweather_api_host: str = ""
qweather_api_key: str = ""
qweather_timeout_seconds: float = 5.0
settings = Settings()