codemcp logo

Codemcp

by ezyang

37 forks
361 stars
Free

What is codemcp

codemcp is a tool developed by ezyang that transforms Claude Desktop into your personal pair programming assistant. This server enables you to interact with Claude, an AI, to implement features, fix bugs, and refactor a codebase directly on your computer. By installing codemcp, you can seamlessly have Claude edit your files and run tests without the hassle of copying and pasting code in and out of Claude's chat window. codemcp is designed to work with Claude Pro, Anthropic's subscription service, ensuring cost-effective usage with time-based rate limits. It emphasizes safe AI practices by using tools that prevent misuse and integrates with Git for easy rollback of changes.

How to Use codemcp

To get started with codemcp, you need to have certain prerequisites installed on your system, such as uv and git. Once these are set up, configure your claude_desktop_config.json to include codemcp with the appropriate command and arguments for your system. On Windows, be sure to use double backslashes in the path.

Create a codemcp.toml file in the Git repository you wish Claude to work on. This file will contain any commands necessary for formatting or running tests, allowing Claude to execute them as needed. In Claude Desktop, initialize codemcp with your project directory, and then simply chat with Claude about the changes you want. Each modification made by codemcp results in a commit, which you can review and amend.

If you encounter any issues during setup, detailed logs can be accessed through the settings in Claude Desktop, which can provide valuable debugging information. Remember, codemcp is not an autonomous agent; you need to review and approve changes after each interaction.

Key Features of codemcp

  • Cost Efficiency: Designed for use with Claude Pro, it avoids high API costs by operating under time-based rate limits.

  • Safe Agentic AI: Implements a limited set of tools that ensure safe interaction with AI, coupled with Git version control for easy rollback of changes.

  • IDE Agnostic: Works independently of specific IDEs, allowing you to review and edit code in your preferred setup.

  • Commit Generation: Each code change is automatically committed, providing a clear history of modifications.

  • Customizable Commands: Configure specific commands in the codemcp.toml file to tailor how Claude interacts with your codebase.

  • Troubleshooting Support: Access to logs and configuration settings helps diagnose and resolve any setup issues.

With codemcp, you can confidently harness AI's capabilities to enhance your coding workflow, ensuring seamless and efficient development processes.

How to Use

To use the codemcp, follow these steps:

  1. Visit https://github.com/ezyang/codemcp
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using codemcp capabilities within your Claude conversations

Additional Information

Created

March 9, 2025

Company

ezyang

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More