Fix indenting

This commit is contained in:
2025-11-14 00:12:53 +00:00
parent 6a1d5438df
commit 33d1229d52
+6 -1
View File
@@ -3007,12 +3007,13 @@ 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.
When not to use - After you already know the server is healthy; it adds no value.
Example - health_check() → { "status":"ready","total_chunks":11234,"graph_nodes":4567,"graph_edges":12345,"index_age_hours":4.7 }"""
try:
try:
with _startup_lock:
# Check if we have a git repo in working_repo
repo_info = "No repository loaded"
@@ -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),