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-json codebase-retrieval --scope user '{"type":"stdio","command":"uvx","args":["codebase-retrieval-context-engine"],"env":{"CORBELL_LLM_PROVIDER":"google","GOOGLE_API_KEY":"your-google-api-key","GOOGLE_MODEL":"gemini-3.1-flash-lite","CORBELL_EMBEDDING_MODEL":"voyage-4-lite","VOYAGE_API_KEY":"your-voyage-api-key"}}'

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

Update

uv tool upgrade codebase-retrieval-context-engine

Or if installed via uvx (auto-managed):

uvx --upgrade codebase-retrieval-context-engine

Remove from Claude Code

claude mcp remove codebase-retrieval --scope user

After adding, you can also edit or remove the MCP config directly in ~/.claude.json.


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.7.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.7.tar.gz.

File metadata

  • Download URL: codebase_retrieval_context_engine-2.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 d9af5836377b5f9be524c2bb98eaa22f1ca42bc951e8ca35bc737a34f3892226
MD5 f1c8d32291f90235b67312dcf3d1aad8
BLAKE2b-256 c2b29b5102a2bd2d17ecebc3e1ccfcbf0ce5b9990ee7127f9856cc72bcc39dc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codebase_retrieval_context_engine-2.0.7-py3-none-any.whl
  • Upload date:
  • Size: 103.2 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d33643a7962fd8f8d956778b6907151f182f604369e5a33b8c58a7f82c8252c4
MD5 662150e3cb7cf88b9e2b5bf38c3019f9
BLAKE2b-256 5cd5c5854e0596b1816611d1995c53152400a8294eff289d41c5a625652e63d5

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