Skip to main content

Code retrieval engine — hybrid embedding + graph search for LLM context injection.

Project description

codebase-retrieval-context-engine

Code retrieval engine for LLM context via MCP.

License


Add to Claude Code

claude mcp add codebase-retrieval -e CORBELL_LLM_PROVIDER=google -e GOOGLE_API_KEY=your-google-api-key -e GOOGLE_MODEL=gemini-3.1-flash-lite -e CORBELL_EMBEDDING_MODEL=voyage-4-lite -e VOYAGE_API_KEY=your-voyage-api-key -- uvx codebase-retrieval-context-engine

That's it. The AI agent passes workspace path and triggers index builds automatically.


Build index manually (optional)

uvx codebase-retrieval-context-engine index build

Run from your project root. Env vars (CORBELL_LLM_PROVIDER, GOOGLE_API_KEY, etc.) must be set in your shell.


Environment variables

Variable Description
CORBELL_LLM_PROVIDER LLM provider for reranking (google, anthropic, openai)
GOOGLE_API_KEY Google AI API key (supports multiple: key1,key2,key3)
GOOGLE_MODEL e.g. gemini-3.1-flash-lite
CORBELL_EMBEDDING_MODEL voyage-4-lite, voyage-code-3, or gemini-embedding-001
VOYAGE_API_KEY Voyage AI API key (supports multiple: key1,key2,key3). Add a card to billing to unlock rate limits.

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codebase_retrieval_context_engine-2.0.3.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file codebase_retrieval_context_engine-2.0.3.tar.gz.

File metadata

  • Download URL: codebase_retrieval_context_engine-2.0.3.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for codebase_retrieval_context_engine-2.0.3.tar.gz
Algorithm Hash digest
SHA256 68fe533439f8c66a52245c236c0a7c8585fdee9239e9c24ab7c262577ef48345
MD5 8a4a309b435d6afa655b8efcb1cf199a
BLAKE2b-256 840551c6585c2fa0c58c5a7f2fb7231feba72d1013a96a9b25d77b853c1c2ac0

See more details on using hashes here.

File details

Details for the file codebase_retrieval_context_engine-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: codebase_retrieval_context_engine-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 101.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for codebase_retrieval_context_engine-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dbe23389b6852d5cc2ff03faf1b65555f8a50be0a26b12f36f1b89e54ac488b4
MD5 6237c88f936b14a0b5d1fbbd3e1de6bd
BLAKE2b-256 f8d1d1c020cec8ed2a7a9aeda787cb49d54b1c25fe53e71d76578777b2ab9029

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page