Skip to main content
Glama
config.py934 B
import os from typing import Optional class Config: """Configuration for Document360 MCP Server""" def __init__(self): self.api_key = os.getenv("DOCUMENT360_API_KEY", "") self.base_url = os.getenv("DOCUMENT360_BASE_URL", "https://apihub.document360.io") self.timeout = int(os.getenv("DOCUMENT360_TIMEOUT", "30")) self.langcode = os.getenv("DOCUMENT360_LANGCODE", "en") self.only_published = os.getenv("DOCUMENT360_ONLYPUBLISHED", "true") def validate(self) -> bool: """Validate configuration""" return bool(self.api_key and self.base_url) @property def headers(self) -> dict: """Return headers for Document360 API requests""" return { "api_token": self.api_key, "Content-Type": "application/json", "User-Agent": "Document360-MCP-Server/1.0" } # Global config instance config = Config()

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/druellan/document360-mcp'

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