added mcp

This commit is contained in:
2026-01-19 22:44:54 +05:30
parent 32c2c07aa2
commit 9d1635c043
2 changed files with 177 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ def index():
def nav():
return read_json(MCP_ROOT / "nav.json")
@mcp.resource("docs://{module}")
@mcp.resource("docs://module/{module}")
def module(module: str):
return read_json(MCP_ROOT / "modules" / f"{module}.json")