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

1"""MCP connector discovery routes.""" 

2 

3from __future__ import annotations 

4 

5from fastapi import APIRouter 

6 

7from ..cli.mcp import editor_catalog 

8 

9__all__ = ["editor_catalog", "list_mcp_connectors", "router"] 

10 

11router = APIRouter(prefix="/v1/mcp", tags=["mcp"]) 

12 

13 

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 }