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.

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

File metadata

  • Download URL: codebase_retrieval_context_engine-2.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 065f633600d0244960a923b927ac734beef108de3efaf8a660975462e0906c25
MD5 cbf8ee09c1df965be35e2c5400cd197f
BLAKE2b-256 b4b6ffd56e7ba42baf2f23c92606ccaa0caffb17782b8321ea79150c7464d70b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codebase_retrieval_context_engine-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 102.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7fc5ca1d9d07df55fbaf82c3fa58771981f789f2841645ad55dd98bd0652d9c1
MD5 5f61d94491738c57322f94bbf080c605
BLAKE2b-256 fe057efe900a9d01003cc4f6f1d4f49983cb4556d732c8b0d549f6d137ee74e4

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