We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kanta-Inc/docdocdoc-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
settings.py•763 B
# config/settings.py
"""Configuration settings for the DocDocDoc MCP server."""
import os
from typing import Optional
class Settings:
"""Configuration settings loaded from environment variables."""
def __init__(self):
self.api_key: Optional[str] = os.getenv("API_KEY")
self.base_url: str = os.getenv("BASE_URL", "https://staging.docdocdoc.fr")
def validate(self) -> None:
"""Validate required settings."""
if not self.api_key:
raise ValueError("API_KEY environment variable is required")
@property
def is_configured(self) -> bool:
"""Check if all required settings are configured."""
return self.api_key is not None
# Global settings instance
settings = Settings()