# Repository Briefing: zilliztech/claude-context
> Source: https://repoforai.com/repo/zilliztech/claude-context (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/zilliztech/claude-context
- **Official Docs / Website**: https://github.com/zilliztech/claude-context/tree/master/docs
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A (84/100 · Maintenance 35/35 · Adoption 18/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 12,753 ★ total (+4 24h / +18 7d) · 944 forks
- **Topics**: `agent`, `agentic-rag`, `ai-coding`, `claude-code`, `code-generation`, `code-search`, `cursor`, `embedding`, `gemini-cli`, `mcp`, `merkle-tree`, `nodejs`
- **When to Use**: Best for: Teams repeatedly navigating large or unfamiliar repositories with an MCP coding agent, especially when they can describe the behavior but don't know the symbol names. Skip if: Exact search and symbol navigation already cover the job, you cannot operate or approve an embedding service and vector store, or you need exhaustive references rather than ranked snippets.

## Overview
```text
### Architecture & Core Mechanics
Claude Context is a TypeScript pnpm monorepo with three main components: `@zilliz/claude-context-core`, the `@zilliz/claude-context-mcp` server, and the VS Code Semantic Code Search extension. The core owns the indexing and retrieval pipeline. It selects files, splits them into searchable chunks, generates embeddings through a configured provider, and uses a Milvus-compatible backend to store and query the index.

The core `Context` API exposes `indexCodebase()` with a progress callback and `semanticSearch()` for retrieval. The direct API example returns snippet content, relative paths, line ranges, and scores. The MCP server exposes indexing, hybrid search, status, and clearing to coding agents. The agent receives relevant snippets rather than the entire checkout, while the VS Code extension offers a separate search and navigation interface.

### Key Capabilities & Differentiators
The MCP `searchcode` tool combines BM25 with dense-vector search. Lexical matching is useful when a query contains identifiers or distinctive terms; vector similarity helps when a developer describes behavior without knowing the implementation's vocabulary. The indexer uses Merkle trees to limit re-indexing to changed files. An AST-based splitter with automatic fallback gives the pipeline a syntax-aware option, and a LangChain character-based splitter is also available.

Indexable languages include TypeScript, JavaScript, Python, Java, C++, C#, Go, Rust, PHP, Ruby, Swift, Kotlin, Scala, and Markdown, with configurable extensions and ignore patterns. Embeddings can come from OpenAI, VoyageAI, Ollama, or Gemini; concrete model examples include `text-embedding-3-small`, `text-embedding-3-large`, and `voyage-code-3`. Milvus and Zilliz Cloud are the listed vector backends. A controlled evaluation reports roughly 40% lower token use at equivalent retrieval quality; use `evaluation/` to assess whether the comparison applies to your workload rather than treating it as a general savings estimate.

### Trade-offs & Limitations
Compared with ripgrep or an IDE's symbol navigation, Claude Context is most useful when the developer knows what the code does but not what it is called. Exact search remains the simpler choice for known symbols, and syntax-aware navigation is the better fit for verifying references. Search hits are ranked snippets, not a call graph. The gain in discovery comes with an initial indexing pass, an embedding service, a maintained vector index, and results that depend on file scope and chunking.

OpenAI embeddings and Zilliz Cloud avoid running those services yourself, but put code text on the remote embedding path and the index on a hosted backend. Ollama and self-hosted Milvus give operators more control over those paths at the cost of running and sizing both services. Neither setup determines where the MCP client sends retrieved snippets. For proprietary repositories, verify exclusion rules before indexing, and plan to validate retrieval quality and rebuild the index when changing embedding models.

### Hardware & Deployment Guide
The MCP server requires Node.js 20 or newer, an embedding provider, and a vector database. The Claude Code setup registers `npx @zilliz/claude-context-mcp@latest` with `claude mcp add`; the OpenAI and Zilliz Cloud example passes `OPENAI_API_KEY`, `MILVUS_ADDRESS`, and `MILVUS_TOKEN`. For repeatable rollouts, pin a tested package version instead of tracking `@latest`. The source workspace requires pnpm 10 or newer and includes `pnpm build:mcp`, `pnpm build:core`, and `pnpm build:vscode`.

Ollama and self-hosted Milvus can keep the embedding and index services on infrastructure you control. An offline rollout still needs local access to the npm package and model artifacts, plus a separate check of the MCP client's model traffic. Managed services reduce local compute and storage needs but add network dependencies and credential management. No GitHub release entry is listed, so there is no release-based timeline to use for tracking recent changes.
```

## Key Capabilities
```text
- Package boundaries: TypeScript indexing core, a Node.js MCP server, and a VS Code search extension.
- Retrieval: `searchcode` combines BM25 lexical matching with dense-vector similarity on indexed code.
- Index lifecycle: Merkle trees limit re-indexing to changed files; MCP exposes progress and per-codebase clearing.
- Chunking: AST-based splitting with automatic fallback, plus a LangChain character-based splitter and configurable file scope.
- Infrastructure: OpenAI, VoyageAI, Ollama, or Gemini for embeddings; Milvus or Zilliz Cloud for vector storage.
- Integration: CLI registration for Claude Code, TOML for Codex CLI, and JSON configurations for clients including Gemini CLI and Cursor.
```

## Quick Start / Clone
```bash
npx @zilliz/claude-context-mcp@latest
```
