Fix indenting
This commit is contained in:
@@ -3007,6 +3007,7 @@ 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.
|
||||
@@ -3026,6 +3027,10 @@ try:
|
||||
except:
|
||||
repo_info = "Git repository (no branch info)"
|
||||
|
||||
# Load graph to check if it exists
|
||||
graph = LocalGraph(CODEBASE_PATH)
|
||||
graph_loaded = graph.load()
|
||||
|
||||
status = {
|
||||
"status": "ready" if vectorstore is not None else "no_index",
|
||||
"working_repository": str(CODEBASE_PATH),
|
||||
|
||||
Reference in New Issue
Block a user