MCPVault

index_codebase

MCP tool from Code Memory by kapillamba4

Indexes or re-indexes source files and documentation in the given directory. Run this before using searchcode or searchdocs to ensure the database is up to date. Uses tree-sitter for language-agnostic structural extraction and generates dense vector embeddings using sentence-transformers (runs local

How to use it

index_codebase is exposed by the Code Memory MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the index_codebase tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Code Memory

$uvx code-memory
FULL CODE MEMORY LISTING