CodemagicMcp
v0.6.2Codemagic 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
| Variable | What it is | |
|---|---|---|
CODEMAGIC_API_KEY | required secret | Your Codemagic API key (found in User Settings → Integrations → Codemagic API) |
CODEMAGIC_DEFAULT_APP_ID | optional | Default Codemagic app ID to use when not specified in tool calls |
CODEMAGIC_BASE_URL | optional | 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-mcpAdd 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
- Ask the user for: CODEMAGIC_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_apps, get_app, add_app, delete_app, add_private_app, list_builds, get_build, trigger_build, ….
- 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