Skip to main content
Glama

Productive-GET-MCP

config.py919 B
import os class Config: """Configuration for Productive MCP Server""" def __init__(self): self.api_key = os.getenv( "PRODUCTIVE_API_KEY", "" ) self.base_url = os.getenv("PRODUCTIVE_BASE_URL", "https://api.productive.io/api/v2") self.timeout = int(os.getenv("PRODUCTIVE_TIMEOUT", "30")) self.organization = int(os.getenv("PRODUCTIVE_ORGANIZATION", "")) def validate(self) -> bool: """Validate configuration""" return bool(self.api_key and self.base_url) @property def headers(self) -> dict: """Return headers for Productive API requests""" return { "X-Auth-Token": self.api_key, "X-Organization-Id": str(self.organization), "Content-Type": "application/vnd.api+json", "User-Agent": "Productive-MCP-Server/1.0" } # Global config instance config = Config()

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/Productive-GET-MCP'

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