Fix indenting
This commit is contained in:
+6
-1
@@ -3007,12 +3007,13 @@ def find_brace_block_end(lines: List[str], start_idx: int) -> Optional[int]:
|
|||||||
# MCP Tools
|
# MCP Tools
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
@mcp.tool()
|
@mcp.tool()
|
||||||
|
@mcp.tool()
|
||||||
def health_check() -> str:
|
def health_check() -> str:
|
||||||
"""What it does - Quick JSON status of the RAG server (ready, indexed path, chunk count, age, graph stats).
|
"""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 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.
|
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 }"""
|
Example - health_check() → { "status":"ready","total_chunks":11234,"graph_nodes":4567,"graph_edges":12345,"index_age_hours":4.7 }"""
|
||||||
try:
|
try:
|
||||||
with _startup_lock:
|
with _startup_lock:
|
||||||
# Check if we have a git repo in working_repo
|
# Check if we have a git repo in working_repo
|
||||||
repo_info = "No repository loaded"
|
repo_info = "No repository loaded"
|
||||||
@@ -3026,6 +3027,10 @@ try:
|
|||||||
except:
|
except:
|
||||||
repo_info = "Git repository (no branch info)"
|
repo_info = "Git repository (no branch info)"
|
||||||
|
|
||||||
|
# Load graph to check if it exists
|
||||||
|
graph = LocalGraph(CODEBASE_PATH)
|
||||||
|
graph_loaded = graph.load()
|
||||||
|
|
||||||
status = {
|
status = {
|
||||||
"status": "ready" if vectorstore is not None else "no_index",
|
"status": "ready" if vectorstore is not None else "no_index",
|
||||||
"working_repository": str(CODEBASE_PATH),
|
"working_repository": str(CODEBASE_PATH),
|
||||||
|
|||||||
Reference in New Issue
Block a user