MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / _run_mcp

Function _run_mcp

src/cocoindex_code/cli.py:996–1001  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

994 project_root = str(require_project_root())
995
996 async def _run_mcp() -> None:
997 from .server import create_mcp_server
998
999 mcp_server = create_mcp_server(project_root)
1000 asyncio.create_task(_bg_index(project_root))
1001 await mcp_server.run_stdio_async()
1002
1003 asyncio.run(_run_mcp())
1004

Callers 1

mcpFunction · 0.85

Calls 2

create_mcp_serverFunction · 0.85
_bg_indexFunction · 0.85

Tested by

no test coverage detected