codemagic_mcp
MCP server for the Codemagic CI/CD API, enabling app management, build operations, artifact handling, cache control, and team management through natural language.
README
codemagic_mcp
MCP server for the Codemagic CI/CD API. Bun + TypeScript, stdio transport.
Tools
Apps
codemagic_get_all_applicationscodemagic_get_applicationcodemagic_add_applicationcodemagic_add_application_private
Builds
codemagic_start_buildcodemagic_get_buildscodemagic_get_build_statuscodemagic_cancel_build
Artifacts
codemagic_get_artifact(returns metadata + base64 preview; use the public URL tool for full downloads)codemagic_create_public_artifact_url
Caches
codemagic_get_app_cachescodemagic_delete_all_app_cachescodemagic_delete_app_cache
Teams
codemagic_invite_team_membercodemagic_delete_team_member
Configuration
Environment variables:
| Variable | Required | Default | Notes |
|---|---|---|---|
CODEMAGIC_API_KEY |
yes | — | From Teams settings → Personal Account → API |
CODEMAGIC_BASE_URL |
no | https://api.codemagic.io |
Override for self-hosted/staging |
CODEMAGIC_TIMEOUT_MS |
no | 30000 |
Per-request timeout |
CODEMAGIC_MAX_RETRIES |
no | 3 |
Retries on 408/425/429/5xx and network errors (exponential backoff with jitter, honors Retry-After) |
Run
bun install
CODEMAGIC_API_KEY=... bun run start
Watch mode:
CODEMAGIC_API_KEY=... bun run dev
Inspect with the official MCP inspector:
CODEMAGIC_API_KEY=... bun run inspect
Claude Code / Claude Desktop config
One-line setup:
claude mcp add codemagic --scope user \
-e CODEMAGIC_API_KEY=<your_key> \
-- bunx codemagic_mcp
Or manually in claude_desktop_config.json:
{
"mcpServers": {
"codemagic": {
"command": "bunx",
"args": ["codemagic_mcp"],
"env": { "CODEMAGIC_API_KEY": "..." }
}
}
}
Security notes
- API key is read from env only.
- Outgoing requests send the key via
x-auth-token; it is never logged. - All tool output (text and structured) is run through a redactor that masks the key value and any object keys matching
authorization,x-auth-token,api[-_]?key,password,passphrase,ssh[-_]?key,secret, ortoken. - Errors are mapped to typed classes (
CodemagicAuthError,CodemagicNotFoundError,CodemagicValidationError,CodemagicRateLimitError,CodemagicServerError,CodemagicNetworkError) and surfaced as actionable messages — internal stack traces are not exposed to the client.
Layout
src/
index.ts stdio entrypoint
schemas.ts Zod input schemas
lib/
config.ts env loading + validation
client.ts fetch wrapper: timeouts, retries, status mapping
errors.ts typed error classes + user-facing formatter
redact.ts secret/string + key-pattern redaction
response.ts jsonResult / textResult / errorResult helpers
tools/
apps.ts builds.ts artifacts.ts caches.ts teams.ts
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.