Skip to main content
Glama
config.py829 B
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()

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/Jayleonc/weather-mcp'

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