We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ai-debugger/aidb'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
wiring.py•974 B
"""Explicit wiring for MCP handlers and registries.
Import order here ensures the central tool registry is populated in a deterministic way,
without relying on lazy side-effects elsewhere.
"""
from __future__ import annotations
from typing import TYPE_CHECKING
from aidb_mcp.registry import get_tool_names
if TYPE_CHECKING:
from collections.abc import Sequence
_wired = False
def wire_handlers() -> Sequence[str]:
"""Import handlers to populate the central registry.
Returns
-------
Sequence[str]
The list of registered tool names after wiring.
"""
global _wired
if not _wired:
# Importing handlers.registry builds the mapping and loads it into the
# central registry via load_tool_mapping(). Order here can be extended
# if we later need to import other groups before tools.
from aidb_mcp.handlers import registry as _ # noqa: F401
_wired = True
return tuple(get_tool_names())