reindex
Force full re-index (rarely needed — incremental updates happen automatically in git repos)
How to use it
reindex is exposed by the MCP Codebase Index MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the reindex tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Codebase Index
pip install "mcp-codebase-index[mcp]"Other tools in MCP Codebase Index (17)
Find where a symbol is defined (file, line, type)
Shortest dependency path (BFS)
Direct + transitive dependents
Full source of a class
List classes with name, lines, methods, bases
What a symbol calls/uses
What calls/uses a symbol
Files imported by a given file
Files that import from a given file
Full source of a function/method
List functions with name, lines, params
List imports with module, names, line
File count, packages, top classes/functions
Structure of a file or the whole project
Session efficiency stats: tool calls, characters returned vs total source, estimated token savings
List indexed files with optional glob filter
Regex search across all files (max 100 results)