codemagic_mcp
codemagic_mcp
MCP-сервер для API CI/CD Codemagic. Bun + TypeScript, транспорт stdio.
Инструменты
Приложения
codemagic_get_all_applicationscodemagic_get_applicationcodemagic_add_applicationcodemagic_add_application_private
Сборки
codemagic_start_buildcodemagic_get_buildscodemagic_get_build_statuscodemagic_cancel_build
Артефакты
codemagic_get_artifact(возвращает метаданные + превью в base64; для полной загрузки используйте инструмент получения публичного URL)codemagic_create_public_artifact_url
Кэши
codemagic_get_app_cachescodemagic_delete_all_app_cachescodemagic_delete_app_cache
Команды
codemagic_invite_team_membercodemagic_delete_team_member
Related MCP server: xcode-cloud-mcp
Конфигурация
Переменные окружения:
Переменная | Обязательно | По умолчанию | Примечания |
| да | — | Из настроек команд → Личный аккаунт → API |
| нет |
| Переопределение для self-hosted/staging |
| нет |
| Тайм-аут для каждого запроса |
| нет |
| Повторные попытки при 408/425/429/5xx и сетевых ошибках (экспоненциальная задержка с джиттером, учитывает |
Запуск
bun install
CODEMAGIC_API_KEY=... bun run startРежим отслеживания:
CODEMAGIC_API_KEY=... bun run devПроверка с помощью официального инспектора MCP:
CODEMAGIC_API_KEY=... bun run inspectКонфигурация Claude Code / Claude Desktop
Настройка одной командой:
claude mcp add codemagic --scope user \
-e CODEMAGIC_API_KEY=<your_key> \
-- bunx codemagic_mcpИли вручную в claude_desktop_config.json:
{
"mcpServers": {
"codemagic": {
"command": "bunx",
"args": ["codemagic_mcp"],
"env": { "CODEMAGIC_API_KEY": "..." }
}
}
}Заметки о безопасности
API-ключ считывается только из переменных окружения.
Исходящие запросы отправляют ключ через
x-auth-token; он никогда не логируется.Весь вывод инструментов (текстовый и структурированный) проходит через фильтр, который маскирует значение ключа и любые ключи объектов, соответствующие
authorization,x-auth-token,api[-_]?key,password,passphrase,ssh[-_]?key,secretилиtoken.Ошибки сопоставляются с типизированными классами (
CodemagicAuthError,CodemagicNotFoundError,CodemagicValidationError,CodemagicRateLimitError,CodemagicServerError,CodemagicNetworkError) и отображаются как понятные сообщения — внутренние трассировки стека не передаются клиенту.
Макет
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.tsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Appcircle mobile CI/CD platform.
Trigger and inspect Codemagic CI builds, apps and artifacts.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseAqualityCmaintenanceA local Python MCP server that exposes the Codemagic CI/CD REST API as Claude-callable tools. Trigger builds, manage apps, download artifacts, and clear caches — all from Claude Code or Claude Desktop without leaving the chat.252MIT
- AlicenseBqualityBmaintenanceMCP server for managing Xcode Cloud workflows, builds, and test artifacts via the App Store Connect API.1742 npm1MIT
- AlicenseAqualityDmaintenanceA lightweight MCP server that provides seamless access to Codemagic CI/CD APIs, enabling natural language interaction with applications, builds, artifacts, caches, and teams.1616MIT
- AlicenseAqualityDmaintenanceThis MCP server enables users to manage Codemagic CI/CD builds directly from Claude Code, including listing apps, triggering builds, checking status, and canceling builds.6MIT