index_codebase
Index your codebase for semantic search, enabling natural language queries to find relevant code. Adds files to the indexing queue immediately and supports forced reindexing.
Instructions
Index the codebase for semantic search.
This operation adds files to the indexing queue immediately (no debounce). Use get_status() to track progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_dir | No | Root directory of the codebase. Defaults to MCP config or current directory. | |
| max_files | No | Maximum number of files to index (for testing). None for all. | |
| force_reindex | No | If True, clear existing index and reindex all files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||