📦
Codetoolsmcp
A Model Context Protocol (MCP) server that provides AI agents with powerful file system tools including ripgrep-based search, glob pattern matching, and file read/write/edit capabilities
0 installs
1 stars
Trust: 43 — Fair
Devtools
Installation
npx codetoolsmcpAsk AI about Codetoolsmcp
Powered by Claude · Grounded in docs
I know everything about Codetoolsmcp. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
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"]
}
}
}
