About code-context
code-context is an MCP server published by git+tan-yong-sheng in the Developer Tools category: model Context Protocol integration for Code Context. 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 0 forks, and its last commit was on 14 Jul 2026. Conduid has no tagged release on record for it. It passes 1 of the 2 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include agentic-rag, ai-coding, code-generation, code-search, embedding and merkle-tree.
Install
git clone git+https://github.com/tan-yong-sheng/code-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
- ✓README presentThe repository's README runs to about 2.1K words.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
4 checks have not been run yet.
README
The repository's README runs to about 2.1K words. The original in the repository is authoritative.
Read full README