Coverage for node / src / stigmem_node / routes / mcp.py: 100%
8 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-05-25 01:49 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-05-25 01:49 +0000
1"""MCP connector discovery routes."""
3from __future__ import annotations
5from fastapi import APIRouter
7from ..cli.mcp import editor_catalog
9__all__ = ["editor_catalog", "list_mcp_connectors", "router"]
11router = APIRouter(prefix="/v1/mcp", tags=["mcp"])
14@router.get("/connectors")
15async def list_mcp_connectors() -> dict[str, object]:
16 """List supported MCP editor connectors and validation tiers."""
17 return {
18 "version": "1",
19 "connectors": editor_catalog(),
20 }