AbdelilahOu/CodeToolsMcp
3.2
If you are the rightful owner of CodeToolsMcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Code Tools MCP Server provides AI agents with advanced code manipulation capabilities similar to those used by Claude Code.
Tools
5
Resources
0
Prompts
0
Code Tools MCP Server
A Model Context Protocol (MCP) server that provides the same powerful code manipulation tools that Claude Code uses internally. This enables any AI agent to have the same level of code search, reading, editing, and file operations capabilities.
Features
The server exposes 17 core tools that mirror Claude Code's functionality:
- grep - Fast regex-based code search using ripgrep
- glob - File pattern matching with support for
**/*.extpatterns - read - Read files with line numbers and optional range selection
- edit - Perform exact string replacements in files
- write - Create or overwrite files
- git_status - Show working tree changes in porcelain format
- git_log - Query commit history with filtering options
- git_diff - Compare revisions, staged changes, or specific paths
- git_show - Display commit details or object contents
- git_branch - List branches with filters and sorting
- list_dir - Enumerate directory contents
- delete - Delete a single file
- remove - Remove files or directories (supports recursive deletion)
- copy - Copy files or directories
- move - Move or rename files and directories
- tree - Visualise directory structures in ASCII form
- run - Execute shell commands and capture output
Installation
Prerequisites
- Go 1.21 or higher
- ripgrep installed and available in PATH
Building
make build
Configuration
Create a config.json file:
{
"logging": {
"level": "INFO",
"output_file": "code-tools-mcp.log",
"max_size_mb": 10,
"console": true
}
}
Configuration Options
- logging.level: Log level (DEBUG, INFO, WARN, ERROR)
- logging.output_file: Path to log file
- logging.max_size_mb: Maximum log file size in MB before rotation
- logging.console: Whether to also log to console
Usage
With Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"code-tools": {
"command": "/path/to/code-tools-mcp",
"args": ["stdio", "--config", "/path/to/config.json"]
}
}
}