About Claude Context
Claude Context is an MCP server published by zilliztech in the Developer Tools category: code search MCP for Claude Code. Make entire codebase the context for any coding agent. Conduid read 9 tools from its source: clear_index, directory_tree, edit, get_indexing_status, index_codebase, list_directory and 3 more. No package is published for it, so it installs from a source checkout.
The repository has 13K stars and 942 forks, is licensed MIT, and its last commit was on 24 Nov 2026. The latest release is v0.1.9. It follows v0.1.8, and the 5 most recent releases go back to v0.1.11. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions.
Install
git clone https://github.com/zilliztech/claude-contextTools (9)
clear_indexClear the search index. IMPORTANT: You MUST provide an absolute path.| Parameter | Type | Description |
|---|---|---|
| path * | string | ABSOLUTE path to the codebase directory to clear. |
directory_treeGenerates a tree structure of a directory.| Parameter | Type | Description |
|---|---|---|
| max_depth | integer | Optional: Maximum depth to traverse (default: 3). |
| path * | string | The absolute path to the directory to generate tree for. |
editEdits the specified file with the given modifications.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | The absolute path to the file to modify. |
| new_string * | string | The exact literal text to replace old_string with. |
| old_string * | string | The exact literal text to replace. Must uniquely identify the single instance to change. Should include at least 3 lines of context before and after the target text, matching whitespace and indentation precisely. If old_string is empty, the tool attempts to create a new file at file_path with new_string as content. |
get_indexing_statusGet the current indexing status of a codebase. Shows progress percentage for actively indexing codebases and completion status for indexed codebases.| Parameter | Type | Description |
|---|---|---|
| path * | string | ABSOLUTE path to the codebase directory to check status for. |
index_codebaseIndex a codebase directory to enable semantic search using a configurable code splitter. ⚠️ **IMPORTANT**: - You MUST provide an absolute path to the target codebase. ✨ **Usage Guidance**: - This tool is typically used when search fails due to an unindexed codebase. - If indexing is attempted on an already indexed path, and a conflict is detected, you MUST prompt the user to confirm whether to proceed with a force index (i.e., re-indexing and overwriting the previous index).| Parameter | Type | Description |
|---|---|---|
| customExtensions | array | Optional: Additional file extensions to include beyond defaults (e.g., ['.vue', '.svelte', '.astro']). Extensions should include the dot prefix or will be automatically added |
| force | boolean | Force re-indexing even if already indexed |
| ignorePatterns | array | Optional: Additional ignore patterns to exclude specific files/directories beyond defaults. Only include this parameter if the user explicitly requests custom ignore patterns (e.g., ['static/**', '*.tmp', 'private/**']) |
| path * | string | ABSOLUTE path to the codebase directory to index. |
| splitter | string | Code splitter to use: 'ast' for syntax-aware splitting with automatic fallback, 'langchain' for character-based splitting |
list_directoryLists the contents of a directory.| Parameter | Type | Description |
|---|---|---|
| path * | string | The absolute path to the directory to list. |
read_fileReads the content of a text file at the specified path.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Optional: The maximum number of lines to read. |
| offset | integer | Optional: The line number to start reading from (0-based). |
| path * | string | The absolute path to the file to read. |
search_codeSearch the indexed codebase using natural language queries within a specified absolute path. ⚠️ **IMPORTANT**: - You MUST provide an absolute path. 🎯 **When to Use**: This tool is versatile and can be used before completing various tasks to retrieve relevant context: - **Code search**: Find specific functions, classes, or implementations - **Context-aware assistance**: Gather relevant code context before making changes - **Issue identification**: Locate problematic code sections or bugs - **Code review**: Understand existing implementations and patterns - **Refactoring**: Find all related code pieces that need to be updated - **Feature development**: Understand existing architecture and similar implementations - **Duplicate detection**: Identify redundant or duplicated code patterns across the codebase ✨ **Usage Guidance**: - If the codebase is not indexed, this tool will return a clear error message indicating that indexing is required first. - You can then use the index_codebase tool to index the codebase before searching again.| Parameter | Type | Description |
|---|---|---|
| extensionFilter | array | Optional: List of file extensions to filter results. (e.g., ['.ts','.py']). |
| limit | number | Maximum number of results to return |
| path * | string | ABSOLUTE path to the codebase directory to search in. |
| query * | string | Natural language query to search for in the codebase |
search_textSearches for a regular expression pattern within the content of files in a specified directory (or current working directory). Can filter files by a glob pattern. Returns the lines containing matches, along with their file paths and line numbers.| Parameter | Type | Description |
|---|---|---|
| include | string | Optional: A glob pattern to filter which files are searched (e.g., '*.js', '*.{ts,tsx}', 'src/**'). If omitted, searches all files (respecting potential global ignores). |
| path | string | Optional: The absolute path to the directory to search within. If omitted, searches the current working directory. |
| pattern * | string | The regular expression (regex) pattern to search for within file contents (e.g., 'function\\s+myFunction', 'import\\s+\\{.*\\}\\s+from\\s+.*'). |
Security checks
Static checks derived from the repository 8 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml and evaluation/uv.lock.
- ✓No dynamic code executionScanned 70 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdioevaluation/servers/edit_server.py:38
- Starts other programs
- 4 callsevaluation/servers/grep_server.py:23, evaluation/servers/grep_server.py:73, evaluation/servers/grep_server.py:172
- Outbound network calls
- 9 callspackages/chrome-extension/src/background.ts:49, packages/chrome-extension/src/background.ts:216, packages/chrome-extension/src/background.ts:268
- Writes or deletes files
- 35 callsevaluation/generate_subset_json.py:72, evaluation/retrieval/base.py:201, evaluation/retrieval/custom.py:337
- Lockfile
- pnpm-lock.yaml and evaluation/uv.lock
Pattern matches on the source text of 70 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.4K words, fetched 8 hours ago. The original in the repository is authoritative.
Read full README