Skip to content

Commit 64179b8

Browse files
committed
Fix tool descriptions: add moderate mode to index_repository, since param to detect_changes
1 parent 9e1e30d commit 64179b8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/mcp/mcp.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,10 @@ static const tool_def_t TOOLS[] = {
259259
{"index_repository", "Index a repository into the knowledge graph",
260260
"{\"type\":\"object\",\"properties\":{\"repo_path\":{\"type\":\"string\",\"description\":"
261261
"\"Path to the "
262-
"repository\"},\"mode\":{\"type\":\"string\",\"enum\":[\"full\",\"fast\"],\"default\":"
263-
"\"full\"}},\"required\":[\"repo_path\"]}"},
262+
"repository\"},\"mode\":{\"type\":\"string\",\"enum\":[\"full\",\"moderate\",\"fast\"],"
263+
"\"default\":\"full\",\"description\":\"full: all passes including semantic edges. "
264+
"moderate: fast discovery + SIMILAR_TO + SEMANTICALLY_RELATED. fast: structure only."
265+
"\"}},\"required\":[\"repo_path\"]}"},
264266

265267
{"search_graph",
266268
"Search the code knowledge graph for functions, classes, routes, and variables. Use INSTEAD "
@@ -368,7 +370,9 @@ static const tool_def_t TOOLS[] = {
368370
{"detect_changes", "Detect code changes and their impact",
369371
"{\"type\":\"object\",\"properties\":{\"project\":{\"type\":\"string\"},\"scope\":{\"type\":"
370372
"\"string\"},\"depth\":{\"type\":\"integer\",\"default\":2},\"base_branch\":{\"type\":"
371-
"\"string\",\"default\":\"main\"}},\"required\":[\"project\"]}"},
373+
"\"string\",\"default\":\"main\"},\"since\":{\"type\":\"string\",\"description\":"
374+
"\"Git ref or date to compare from (e.g. HEAD~5, v0.5.0, 2026-01-01)\"}},\"required\":"
375+
"[\"project\"]}"},
372376

373377
{"manage_adr", "Create or update Architecture Decision Records",
374378
"{\"type\":\"object\",\"properties\":{\"project\":{\"type\":\"string\"},\"mode\":{\"type\":"

0 commit comments

Comments
 (0)