Repository navigation
Releases
Releases · chelslava/mcp-context-tree
v0.5.0 — Multi-Repository Indexing, Embedding Quantization & LSP Bridge
Release v0.5.0 — Multi-Repository Indexing, Embedding Quantization & LSP Bridge
Version 0.5.0 introduces three major architectural milestones: cross-repository unified workspace indexing and search, memory-efficient embedding quantization, and a native Language Server Protocol (LSP) bridge for compiler-grade code navigation.
🏢 Multi-Repository Unified Workspace Indexing (Issue #26)
- Unified Multi-Root Indexing: Seamlessly index, track, and search across multiple repositories or multi-root workspaces in a single MCP server session.
- Repository Metadata Isolation: All chunks are tagged with their repository of origin (
repo), enabling both broad cross-repository hybrid discovery and targeted search withrepo="my-repo". - Cross-Repo Navigation:
find_ast_usagesandgo_to_definitionresolve real AST call sites and symbol declarations across multiple repositories with live snippet extraction. - Multi-Directory Watch Mode:
context-tree --watch dir1 dir2 ...monitors multiple repositories concurrently with debounced incremental updates.
🗜️ Embedding Quantization (Issue #27)
- Configurable Precision (
float32,int8,binary,ubinary): Compress vector representations with minimal accuracy loss. - Up to 32x RAM & Storage Reduction:
int8delivers 4x memory savings, whileubinarypacks 384 dimensions into 48 bytes (32x compression) for ultra-compact storage. - Flexible Configuration: Set precision via CLI
--precision int8, environment variableCONTEXT_TREE_EMBEDDING_PRECISION, or Python API parameterEmbedder(precision="int8").
🔌 Language Server Protocol (LSP) Bridge (Issue #28)
- Compiler-Grade Precision: Asynchronous JSON-RPC 2.0 client (
LSPClientandLSPManager) connecting over stdio to local language servers (pyright,typescript-language-server,gopls,rust-analyzer,clangd,csharp-ls). - Rich LSP Features: Supports
textDocument/definition,textDocument/references, andtextDocument/hoverfor exact types, compiler docs, and symbol references. - 100% Graceful Fallback: If no LSP server binary is detected in
PATH, the system transparently falls back to instant tree-sitter AST parsing without errors.
🧪 Test Suite & Quality
- Test suite expanded to 83 tests (100% pass across Ubuntu, Windows, and macOS on Python 3.12 and 3.13).
- Strict code style with
ruffformatting and linting. - Automated multi-platform CI packaging builds (sdist and wheel).
v0.4.1 — Stabilization & Performance Improvements
Release v0.4.1 — Stabilization & Performance Improvements
This release brings major performance optimizations and reliability fixes across hybrid search, AST call site detection, gitignore handling, definition lookups, and filesystem watcher concurrency:
⚡ Performance & Scalability
-
Single-Pass Call-Graph Ranking (Issue #21): Replaced redundant
$O(C \times N)$ sequential file scans and tree-sitter parses in hybrid search with a single$O(N)$ batch pass (batch_count_ast_usages), dramatically reducing search latency on larger repositories. -
Instant
$O(1)$ Definition Resolution (Issue #24): Acceleratedgo_to_definitionby querying ChromaDB metadata index directly (where={"name": ...}), delivering sub-millisecond lookup latency with transparent fallback to live AST extraction for unindexed workspaces.
🐛 Bug Fixes & Reliability
- Pointer Dereferences & Constructor Instantiations (Issue #22): Added
->member normalization and support fornew_expression(TypeScript/JavaScript/C++) andobject_creation_expression(Java/C#) infind_ast_usages. - .gitignore Rule Ordering & Negations (Issue #23): Fixed premature return in
_is_gitignored. Pattern evaluation is now sequential so trailing override and negation rules (!pattern) properly restore files. - Watcher Mutex & Gitignore Filtering (Issue #25): Prevented spurious re-indexing on gitignored file modifications and added optional
asyncio.Locksynchronization for race-free background watcher operation.
🧪 Test Suite & Quality
- Test suite expanded to 69 tests (100% pass across Ubuntu, Windows, and macOS on Python 3.12 and 3.13).
- Full compliance with
ruffstrict linter and formatter.
v0.4.0 — go_to_definition, SSE Network Transport & Cross-Encoder Re-ranking
Changes in v0.4.0
- Cross-File Symbol Definition Jump (\go_to_definition): Added a new dedicated MCP tool \go_to_definition\ to resolve the exact AST declaration/definition location of functions, methods, classes, structs, traits, and interfaces with qualified and bare name resolution.
- Server-Sent Events (SSE) & Streamable HTTP Transports: Added support for running the MCP server over SSE HTTP network transport via \context-tree --transport sse --port 8000\ or \streamable-http\ for remote and containerized client architectures.
- Cross-Encoder Re-ranker: Implemented an optional 2nd-stage neural re-ranker (\cross-encoder/ms-marco-MiniLM-L-6-v2) via \semantic_search(..., rerank=True)\ for precision re-ordering of top candidate chunks.
- Test Suite: Expanded to 60 comprehensive unit and integration tests (100% pass rate) with strict Ruff linting.
v0.3.0 — 12 Language AST Support, Call-Graph Ranking & Packaging
Changes in v0.3.0
- Multi-Language Expansion (12 Languages): Added tree-sitter AST support for C (.c, .h), C++ (.cpp, .hpp, .cc, .cxx, .hh, .hxx), Kotlin (.kt, .kts), and Swift (.swift). Functions, methods, structs, classes, namespaces, objects, KDoc, and Swift documentation are now cleanly parsed and indexed.
- Call-Graph Aware Ranking: Extended Reciprocal Rank Fusion (RRF) to a 3-layer architecture ({vec}$, {bm25}$, {graph}$) incorporating symbol in-degree / call frequency to boost heavily used architectural components.
- Packaging & PyPI CI/CD: Added automated GitHub Actions release workflow to build wheels and source distributions on tag releases.
- Test Suite: Expanded to 53 comprehensive unit and integration tests (100% pass rate) with strict Ruff linting.
v0.2.1 — AST Usages, Arrow Functions, Ignore Rules & BM25 Cache
Changes in v0.2.1
- AST Multi-Language Usages (#13): Added support for Java (\method_invocation), C# (\invocation_expression), and Rust scoped calls in \ind_ast_usages. Fixed dotted query matching to preserve class qualifiers and eliminate false positives.
- Dependency & Version Sync (#14): Declared \watchfiles>=1.0.0\ in \pyproject.toml\ dependencies and synchronized
equirements.txt\ with all 8 supported language grammars. - Compiler Output & .gitignore Filtering (#15): Added standard build artifact directories (\ arget/, \�in/, \obj/, \�endor/, .next/, \out/, \coverage/, etc.) to default ignore lists and added native .gitignore\ support in file discovery.
- Arrow Functions & Function Expressions Extraction (#16): Implemented AST extraction of \const fn = () => ...\ in TypeScript, TSX, and JavaScript with JSDoc preservation.
- In-Memory BM25 Search Caching (#17): Implemented fast in-memory BM25 caching with \mtime-based state validation and automated cache invalidation on workspace re-indexing.