Skip to main content
Glama
auth.py791 B
import os from typing import Optional from dotenv import load_dotenv from .exceptions import AuthenticationException load_dotenv() class AuthManager: """Manages ClickUp API authentication""" def __init__(self, api_token: Optional[str] = None): self.api_token = api_token or os.getenv("CLICKUP_API_TOKEN") if not self.api_token: raise AuthenticationException("ClickUp API token not provided") def get_headers(self) -> dict: """Get authentication headers for API requests""" return { "Authorization": self.api_token, "Content-Type": "application/json" } def validate_token(self) -> bool: """Validate the API token format""" return bool(self.api_token and len(self.api_token) > 0)

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/yihaoWang/clickup-mcp-server'

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