CodemagicMcp

v0.6.2
io.github.AgiMaulana/CodemagicMcp Checked 14 hours ago Published 8 months ago

Codemagic CI/CD MCP Server — manage builds, apps, artifacts, and caches from your AI

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
CODEMAGIC_API_KEYrequired secret Your Codemagic API key (found in User Settings → Integrations → Codemagic API)
CODEMAGIC_DEFAULT_APP_IDoptional Default Codemagic app ID to use when not specified in tool calls
CODEMAGIC_BASE_URLoptional Codemagic API base URL (default: https://api.codemagic.io)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add codemagicmcp -e 'CODEMAGIC_API_KEY=<CODEMAGIC_API_KEY>' -- uvx --with 'mcp<2' --from CodemagicMcp==0.6.2 codemagic-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "codemagicmcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "CodemagicMcp==0.6.2",
        "codemagic-mcp"
      ],
      "command": "uvx",
      "env": {
        "CODEMAGIC_API_KEY": "<CODEMAGIC_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "codemagicmcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "CodemagicMcp==0.6.2",
        "codemagic-mcp"
      ],
      "command": "uvx",
      "env": {
        "CODEMAGIC_API_KEY": "<CODEMAGIC_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CODEMAGIC_API_KEY",
      "id": "codemagic-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "codemagicmcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "CodemagicMcp==0.6.2",
        "codemagic-mcp"
      ],
      "command": "uvx",
      "env": {
        "CODEMAGIC_API_KEY": "${input:codemagic-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.codemagicmcp]
command = "uvx"
args = ["--with", "mcp<2", "--from", "CodemagicMcp==0.6.2", "codemagic-mcp"]
env = { "CODEMAGIC_API_KEY" = "<CODEMAGIC_API_KEY>" }

For AI agents

  1. Ask the user for: CODEMAGIC_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_apps, get_app, add_app, delete_app, add_private_app, list_builds, get_build, trigger_build, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json