Skip to main content
Glama
logging.py529 B
from __future__ import annotations import logging import os def configure_logging(level: str | None = None) -> None: """Best-effort logging configuration for the MCP server and adapters.""" level_name = level or os.getenv("SPICE_LOG_LEVEL", "WARNING") try: log_level = getattr(logging, level_name.upper(), logging.WARNING) except Exception: log_level = logging.WARNING logging.basicConfig( level=log_level, format="%(asctime)s [%(levelname)s] %(name)s: %(message)s", )

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/Evan-Kim2028/spice-mcp'

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