Empowers AI agents to efficiently navigate and search codebases semantically, significantly reducing token consumption.
Sourcerer is an MCP server designed to optimize how AI agents interact with codebases. It builds a comprehensive semantic search index of your project, allowing agents to perform conceptual searches and directly access specific functions, classes, or code chunks, rather than processing entire files. This dramatically reduces costly token usage by providing a targeted and intelligent approach to code access. It leverages Tree-sitter for robust code parsing, OpenAI for generating embeddings, and a persistent vector database for efficient storage and retrieval.