Skip to content

MCP index accepts arguments that it ignores #2848

Description

@Widthdom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions