repo-mcp
Repo MCP is an MCP server that allows AI clients to access your repository, enabling them to read, write, and navigate your codebase. It supports file and directory operations, text searching, and retrieving file information, all while ensuring security measures are in place. The setup is straightforward, requiring configuration tailored to specific clients.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
119
Forks
0
Issues
0
Repo MCP Server
An MCP (Model Context Protocol) server that exposes your repository to AI clients that support MCP, allowing them to read, write, and navigate your codebase.
Features
- File Operations: Read, write, delete files
- Directory Operations: List contents, create directories
- Search: Find text within files with optional file pattern filtering
- File Information: Get metadata about files and directories
- Security: Path traversal protection to keep operations within the repository
Setup
1. Clone this repo:
git clone https://github.com/Centinol-alt/repo-mcp
2. Install and Build
In this repo's root, run:
chmod +x setup.sh
./setup.sh
3. Configure Your MCP Client
For Claude Desktop
Add this configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"repo": {
"command": "node",
"args": ["/path/to/your/repo/mcp-server/dist/index.js"],
"env": {
"REPO_PATH": "/path/to/your/repo"
}
}
}
}
Replace /path/to/your/repo with the actual path to your repository.
For Other MCP Clients
Use the server command: node /path/to/your/repo/mcp-server/dist/index.js
Available Tools
read_file- Read file contentswrite_file- Write content to a filelist_directory- List directory contentscreate_directory- Create a new directorydelete_file- Delete a filesearch_files- Search for text within filesget_file_info- Get file/directory metadata
Environment Variables
REPO_PATH- Path to your repository (defaults to parent directory of the server)
Security
The server includes path traversal protection to ensure all operations stay within your repository boundaries. Files outside the repository cannot be accessed.
Usage Examples
Once connected to an MCP client, you can ask the AI to:
- "Show me the structure of this project"
- "Read the main application file"
- "Find all TODO comments in the codebase"
- "Create a new component file with this functionality"
- "Refactor this function across multiple files"
- "Add error handling to all API endpoints"
Troubleshooting
- Server won't start: Check that Node.js is installed and the build completed successfully
- Client can't connect: Verify the path in your MCP client configuration is correct
- Permission errors: Ensure the server has read/write permissions to your repository
- Path not found errors: Check that
REPO_PATHis set correctly
Development
To modify the server:
- Edit
src/index.ts - Run
npm run build - Restart your MCP client
claude_autoapprove is a library designed to implement an automated approval process using JavaScript. This tool provides functionality to automatically approve requests that meet specific conditions, reducing the need for manual approval work. Users can easily configure settings to build efficient workflows.
Unity Editor MCP is a protocol that allows AI assistants to interact directly with the Unity Editor, enabling AI-assisted game development and automation. Key features include GameObject management, a component system, and prefab workflow editing. The project is currently in beta and under heavy development, meaning features and APIs may change.