Skip to main content
Glama
config_handler.py602 B
import json from pathlib import Path from typing import Any, Dict # Absolute path to config.json at the repo root (two levels up from src/utils) CONFIG_PATH = Path(__file__).resolve().parents[2] / "config.json" def load_config() -> Dict[str, Any]: try: with CONFIG_PATH.open("r", encoding="utf-8") as f: data = json.load(f) return data if isinstance(data, dict) else {} except Exception: return {} def has_integration(name: str) -> bool: return bool(load_config().get(name)) def is_slack_enabled() -> bool: return has_integration("slack")

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/bernerspace/bernerspace'

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