"""
Shared context variables for the MCP server.
This module contains context variables that need to be shared across modules
to avoid circular import issues.
"""
from contextvars import ContextVar
# Context variable to store HTTP headers for MCP middleware access
# Avoid mutable default for ContextVar (ruff B039)
http_headers_context: ContextVar[dict | None] = ContextVar("http_headers", default=None)
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/deslicer/mcp-for-splunk'
If you have feedback or need assistance with the MCP directory API, please join our Discord server