codemcp logo

codemcp

by ezyang

codemcp makes Claude Desktop a pair programming assistant, allowing it to directly implement features, fix bugs, and refactor code on your computer. It eliminates the need for copying code in and out of Claude's chat window.

View on GitHub

Last updated: N/A

What is codemcp?

codemcp is a tool that integrates with Claude Desktop to enable AI-powered code editing, bug fixing, and refactoring directly within your codebase. It leverages Claude Pro and offers a safe agentic AI approach with Git version control for code change management.

How to use codemcp?

  1. Install uv and git. 2. Configure claude_desktop_config.json with the codemcp server details. 3. Restart Claude Desktop. 4. Create a codemcp.toml file in your project repository to configure commands like formatting and testing. 5. Initialize codemcp in Claude Desktop with the project directory. 6. Chat with Claude to request code changes.

Key features of codemcp

  • Integration with Claude Pro

  • Safe agentic AI with Git version control

  • IDE agnostic

  • Configurable commands for formatting and testing

  • Commit-based code changes

Use cases of codemcp

  • Implementing new features

  • Fixing failing tests

  • Refactoring code

  • Automating code formatting

  • Generating initial code structure

FAQ from codemcp

How do I debug codemcp if the server fails to load?

Go to Settings > Developer > codemcp > Logs in Claude Desktop to view the MCP logs.

What do I do if the logs say 'Git executable not found' on Windows?

Reboot your machine after installing Git to ensure the PATH update propagates. If it still doesn't work, check System Properties > Environment Variables > System variables > Path for a Git entry.

How can I update codemcp?

If you used the global pip install method, use pip install --upgrade git+https://github.com/ezyang/codemcp@prod.

Can I use a specific version of codemcp?

Yes, you can replace prod in the installation command with a specific release version like 0.3.0.

Where are the logs stored on Windows?

The logs are located in C:\Users\<user_name>\AppData\Roaming\Claude\logs (replace <user_name> with your username).