1. Conduid
  2. Developer Tools
  3. code-context
MCP server · Developer Tools

code-context

Model Context Protocol integration for Code Context

70Good

Scored 19 hours ago · breakdown

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

From source
git clone git+https://github.com/tan-yong-sheng/code-context

Tools (9)

clear_indexClear the search index. IMPORTANT: You MUST provide an absolute path.
ParameterTypeDescription
path *stringABSOLUTE path to the codebase directory to clear.
directory_treeGenerates a tree structure of a directory.
ParameterTypeDescription
max_depthintegerOptional: Maximum depth to traverse (default: 3).
path *stringThe absolute path to the directory to generate tree for.
editEdits the specified file with the given modifications.
ParameterTypeDescription
file_path *stringThe absolute path to the file to modify.
new_string *stringThe exact literal text to replace old_string with.
old_string *stringThe 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.
ParameterTypeDescription
path *stringABSOLUTE 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).
ParameterTypeDescription
customExtensionsarrayOptional: Additional file extensions to include beyond defaults (e.g., ['.vue', '.svelte', '.astro']). Extensions should include the dot prefix or will be automatically added
forcebooleanForce re-indexing even if already indexed
ignorePatternsarrayOptional: 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 *stringABSOLUTE path to the codebase directory to index.
splitterstringCode splitter to use: 'ast' for syntax-aware splitting with automatic fallback, 'langchain' for character-based splitting
list_directoryLists the contents of a directory.
ParameterTypeDescription
path *stringThe absolute path to the directory to list.
read_fileReads the content of a text file at the specified path.
ParameterTypeDescription
limitintegerOptional: The maximum number of lines to read.
offsetintegerOptional: The line number to start reading from (0-based).
path *stringThe 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.
ParameterTypeDescription
extensionFilterarrayOptional: List of file extensions to filter results. (e.g., ['.ts','.py']).
limitnumberMaximum number of results to return
path *stringABSOLUTE path to the codebase directory to search in.
query *stringNatural 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.
ParameterTypeDescription
includestringOptional: A glob pattern to filter which files are searched (e.g., '*.js', '*.{ts,tsx}', 'src/**'). If omitted, searches all files (respecting potential global ignores).
pathstringOptional: The absolute path to the directory to search within. If omitted, searches the current working directory.
pattern *stringThe 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
Questions

About code-context

How do I install code-context?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is code-context safe to use with an AI agent?

Its trust score is 70 out of 100 (good). It passes 1 of the 2 static checks Conduid ran on the repository; it does not pass Scoped permissions. It has no ConduID identity yet, so agent calls to it are not receipted.

Is code-context still maintained?

Yes — the last commit was 4 months ago. The repository has 13K stars and 0 forks.

What tools does code-context provide?

Conduid read 9 tools from the source: clear_index, directory_tree, edit, get_indexing_status, index_codebase, list_directory, read_file, search_code and 1 more. 9 of them publish their parameters, listed under Tools above.