Back to MCP Directory
Codemcp
Model Context Protocol high risk

Codemcp

codemcp allows Claude to directly edit code, run commands, and manage Git commits in a local repository, offering auto-accept and versioning.

Connections & Capabilities

Connects To

GitHub

Capabilities

readwriteexecadmin

Quickstart

Install

uvx --from

Exposed MCP Tools (2)

moderate
format

Runs a code formatter on the codebase.

Modifies code files, but typically in a non-destructive way.

moderate
test

Runs tests on the codebase.

Executes code, but typically within a testing environment.

Safety Assessment

codemcp offers convenience by allowing Claude to directly modify code, but it comes with significant risks. It is safe if the user carefully configures allowed commands and closely monitors changes. It is risky if the configuration is lax, potentially leading to unintended or malicious code execution.

  • Git versioning of all LLM edits allows for rollback.
  • Commands are pre-declared in `codemcp.toml`, restricting shell access.
  • Focus on reviewing changes in an IDE after agent actions.
  • Requires user intervention after each chat for review.
  • Unrestricted code execution on the user's machine if misconfigured.
  • Relies on user-defined scripts, which could introduce vulnerabilities.
  • Auto-accept by default can lead to unintended changes if not carefully monitored.
  • Requires careful configuration of allowed commands to prevent abuse.
  • Access to the local filesystem.