/ Annuaire / Playground / codemcp
● Communauté ezyang ⚡ Instantané

codemcp

par ezyang · ezyang/codemcp

Minimal MCP coding agent for Claude Desktop — read/write/run, nothing else.

codemcp turns Claude Desktop into a usable coding agent without paying for Claude Code. It exposes just enough to be productive: a file reader/writer, a shell runner, and a project init step. Designed to be small, auditable, and easy to bring your own restrictions.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

codemcp.replay ▶ prêt
0/0

Installer

Choisissez votre client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "codemcp": {
      "command": "uvx",
      "args": [
        "codemcp"
      ]
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "codemcp": {
      "command": "uvx",
      "args": [
        "codemcp"
      ]
    }
  }
}

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "codemcp": {
      "command": "uvx",
      "args": [
        "codemcp"
      ]
    }
  }
}

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "codemcp": {
      "command": "uvx",
      "args": [
        "codemcp"
      ]
    }
  }
}

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "codemcp",
      "command": "uvx",
      "args": [
        "codemcp"
      ]
    }
  ]
}

Continue utilise un tableau d'objets serveur plutôt qu'une map.

~/.config/zed/settings.json
{
  "context_servers": {
    "codemcp": {
      "command": {
        "path": "uvx",
        "args": [
          "codemcp"
        ]
      }
    }
  }
}

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

claude mcp add codemcp -- uvx codemcp

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : codemcp

Use Claude Desktop as a free Claude Code replacement

👤 Devs on Claude Pro (not Max) who want agentic coding ⏱ ~15 min intermediate

Quand l'utiliser : You don't want to pay for Claude Code but want the same loop in Desktop.

Prérequis
  • Server/skill installed and authenticated — See repo README
Déroulement
  1. Init a project
    Initialize codemcp in /repos/my-project. Whitelist pytest and ruff only.✓ Copié
    → codemcp.toml written with those two commands
  2. Iterate
    Add a /healthz endpoint and a test for it. Run pytest after.✓ Copié
    → File edits + green test output, auto-committed

Résultat : Coding-agent workflow in plain Claude Desktop — every step a git commit.

Pièges
  • RunCommand only runs what's whitelisted in codemcp.toml — RunCommand only runs what's whitelisted in codemcp.toml — list every command you'll need upfront.
Combiner avec : github · filesystem

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

codemcp + github

Pair with github for complementary capabilities

Use this server together with github to complete a multi-step task.✓ Copié
codemcp + filesystem

Pair with filesystem for complementary capabilities

Use this server together with filesystem to complete a multi-step task.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
ReadFile path: str Inspect code before editing free
EditFile path, old, new Make a surgical change free
RunCommand command: str Run tests or scripts whitelisted in codemcp.toml free

Coût et limites

Coût d'exécution

Quota d'API
See provider docs for rate limits
Tokens par appel
Varies by tool
Monétaire
See repo README for pricing details
Astuce
Cache tool results and avoid repeated identical calls.

Sécurité

Permissions, secrets, portée

Stockage des identifiants : Use environment variables; never commit secrets
Sortie de données : Tool calls go to the provider's API as documented

Dépannage

Erreurs courantes et correctifs

command not in allowlist

Add the command to codemcp.toml under [commands] before asking Claude to run it.

Vérifier : cat codemcp.toml
edit didn't match

EditFile uses exact match. Read the file first and copy the exact old string including whitespace.

Vérifier : ReadFile and compare

Alternatives

codemcp vs autres

AlternativeQuand l'utiliserCompromis
Claude CodeYou're on Claude Max and want first-party integrationPaid; codemcp is free + open source

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills