diff --git a/mcp_codebase.py b/mcp_codebase.py index 0604b81..2a52c3c 100644 --- a/mcp_codebase.py +++ b/mcp_codebase.py @@ -3024,7 +3024,6 @@ def find_brace_block_end(lines: List[str], start_idx: int) -> Optional[int]: # MCP Tools # ----------------------------- @mcp.tool() -@mcp.tool() def health_check() -> str: """What it does - Quick JSON status of the RAG server (ready, indexed path, chunk count, age, graph stats). When to use - Before any other query, to confirm the index is current and see codebase structure. @@ -3045,7 +3044,7 @@ Example - health_check() → { "status":"ready","total_chunks":11234,"graph_node repo_info = "Git repository (no branch info)" # Load graph to check if it exists - graph = LocalGraph(CODEBASE_PATH) + graph = LocalGraph(str(CODEBASE_PATH)) graph_loaded = graph.load() status = {