A semantic search and context engine for codebases. Indexes source files with vector + keyword search, exposes an MCP server for AI tool integration, and keeps large file content out of the LLM context window.
bpcontext is a Rust CLI and MCP server that solves a specific problem in agentic development: keeping codebases searchable without bloating the AI context window. Instead of reading every file, the agent indexes the codebase once and queries it semantically.
The tool combines BM25 keyword ranking with vector similarity (sentence embeddings) using reciprocal rank fusion to merge results. It exposes a full MCP (Model Context Protocol) server so Claude Code and other MCP-aware tools can call it directly.