About Code Context Engine
Code Context Engine is an MCP server published by elara-labs in the Blockchain category: save 94% on AI coding tokens. Index your codebase, agents search instead of reading files. Works with Claude Code, Codex, Copilot, Cursor, Gemini CLI. Local MCP server, free, open source. Conduid read 11 tools from its source: context_search, expand_chunk, index_status, record_code_area, record_decision, reindex and 5 more. It is published to PyPI as code-context-engine and runs with uvx.
The repository has 471 stars and 68 forks, is licensed MIT, and its last commit was on 23 Aug 2026. The latest release is v0.4.26 (12 Aug 2026). It follows v0.4.25 (1 Jul 2026), and the 5 most recent releases go back to v0.4.22 (19 May 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include code-search, devtools and sqlite.
Install
uvx code-context-enginepip install code-context-enginegit clone https://github.com/elara-labs/code-context-engineTools (11)
context_searchHybrid vector + BM25 search with graph expansion| Parameter | Type | Description |
|---|---|---|
| max_tokens | integer | |
| query * | string | |
| top_k | integer |
expand_chunkFull source for a compressed result| Parameter | Type | Description |
|---|---|---|
| chunk_id * | string |
index_statusCheck index freshnessrecord_code_areaRecord which files were worked in| Parameter | Type | Description |
|---|---|---|
| description * | string | |
| file_path * | string |
record_decisionSave a decision for future sessions| Parameter | Type | Description |
|---|---|---|
| decision * | string | |
| reason * | string |
reindexRe-index a file or the full project| Parameter | Type | Description |
|---|---|---|
| path | string |
related_contextFind code via graph edges (calls, imports)| Parameter | Type | Description |
|---|---|---|
| chunk_id * | string |
session_eventInspect raw tool input/output for a specific event| Parameter | Type | Description |
|---|---|---|
| event_id * | integer |
session_recallRecall decisions from past sessions| Parameter | Type | Description |
|---|---|---|
| topic * | string |
session_timelineWalk turn summaries for a session (drill into recall hits)| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| session_id * | string |
set_output_compressionAdjust response verbosity (`off` / `lite` / `standard` / `max`)| Parameter | Type | Description |
|---|---|---|
| level * | string | off=normal, lite=no filler, standard=fragments ~65% savings, max=telegraphic ~75% savings |
Security checks
Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock and docs-src/package-lock.json.
- ✓No dynamic code executionScanned 62 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiosrc/context_engine/cli.py:3703
- Starts other programs
- 11 callssrc/context_engine/cli.py:2761, src/context_engine/cli.py:2779, src/context_engine/indexer/git_hooks.py:115
- Outbound network calls
- 26 callssrc/context_engine/cli.py:119, src/context_engine/cli.py:520, src/context_engine/cli.py:726
- Writes or deletes files
- 42 callssrc/context_engine/cli.py:132, src/context_engine/cli.py:453, src/context_engine/cli.py:926
- Lockfile
- uv.lock and docs-src/package-lock.json
Pattern matches on the source text of 62 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.5K words, fetched 3 days ago. The original in the repository is authoritative.
Read full README