About
Code Sage is a robust and efficient MCP server designed for advanced semantic code search. Built with Rust for superior performance, it intelligently indexes codebases by combining traditional BM25 keyword search with vector embeddings, reranking results using Reciprocal Rank Fusion for optimal relevance. It leverages AST-based chunking with Tree-sitter for precise semantic unit identification across over 60 languages, ensuring comprehensive analysis while respecting `.gitignore` rules. With its zero-dependency embedded storage and support for various embedding providers like OpenAI, LM Studio, and Ollama, Code Sage offers a powerful, local solution for developers seeking deep insights into their code.