Found during cdidx code-search audit. Evidence: src/CodeIndex/Mcp/McpToolHandlers.cs allows db, parallelism, files, commits, changedBetween, dryRun, and optimize for the index tool, but ExecuteIndexAsync only reads path, rebuild, and maxFileBytes. The advertised MCP schema only documents the implemented subset. Impact: clients can send accepted arguments and receive a normal index result while their intended scoped update, dry run, alternate DB, or optimize choice is silently ignored. Suggested fix: reject unimplemented index arguments, or implement the same semantics as the CLI and update the tool schema/tests.
Found during cdidx code-search audit. Evidence:
src/CodeIndex/Mcp/McpToolHandlers.csallowsdb,parallelism,files,commits,changedBetween,dryRun, andoptimizefor theindextool, butExecuteIndexAsynconly readspath,rebuild, andmaxFileBytes. The advertised MCP schema only documents the implemented subset. Impact: clients can send accepted arguments and receive a normal index result while their intended scoped update, dry run, alternate DB, or optimize choice is silently ignored. Suggested fix: reject unimplemented index arguments, or implement the same semantics as the CLI and update the tool schema/tests.