fix: expose local index rebuild command

This commit is contained in:
HumbleTurtle
2026-08-27 00:41:28 -03:00
parent 35acd72e4e
commit 7eace14042
4 changed files with 55 additions and 1 deletions
+11
View File
@@ -17760,6 +17760,17 @@ class McpRequestRuntime:
def cli_main(argv):
command = argv[1] if len(argv) > 1 else ""
if command == "reindex":
args = argv[2:]
validate_cli_options(
args,
value_options={"--limit"},
command_label="nap reindex",
)
print(json.dumps(reindex_project({
"limit": int(cli_option(args, "--limit", default="200")),
}), indent=2))
return
if command == "configure":
print(json.dumps(cli_configure_status(), indent=2))
return