GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Codemagic CI/CD MCP Server — manage builds, apps, artifacts, and caches from your AI
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
CODEMAGIC_API_KEY, CODEMAGIC_DEFAULT_APP_ID, CODEMAGIC_BASE_URL标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"codemagicmcp": {
"command": "uvx",
"args": [
"CodemagicMcp"
],
"env": {
"CODEMAGIC_API_KEY": "your-value",
"CODEMAGIC_DEFAULT_APP_ID": "your-value",
"CODEMAGIC_BASE_URL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add codemagicmcp --env CODEMAGIC_API_KEY=your-value --env CODEMAGIC_DEFAULT_APP_ID=your-value --env CODEMAGIC_BASE_URL=your-value -- uvx CodemagicMcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"codemagicmcp": {
"command": "uvx",
"args": [
"CodemagicMcp"
],
"env": {
"CODEMAGIC_API_KEY": "your-value",
"CODEMAGIC_DEFAULT_APP_ID": "your-value",
"CODEMAGIC_BASE_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"codemagicmcp": {
"type": "stdio",
"command": "uvx",
"args": [
"CodemagicMcp"
],
"env": {
"CODEMAGIC_API_KEY": "your-value",
"CODEMAGIC_DEFAULT_APP_ID": "your-value",
"CODEMAGIC_BASE_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
CODEMAGIC_DEFAULT_APP_ID envCODEMAGIC_BASE_URL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 AgiMaulana 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:CODEMAGIC_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.6.2)于8个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A 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.
| Tool | Description |
|---|---|
list_apps | List all applications in your Codemagic account |
get_app | Get details of a specific application |
add_app | Add a public repository to Codemagic |
add_private_app | Add a private repository using an SSH key |
delete_app ⚠️ | Delete an application from Codemagic |
| Tool | Description |
|---|---|
list_builds | List builds, optionally filtered by app |
get_build | Get build details with step count summary; pass include_steps=True for full step list |
trigger_build | Trigger a new build for an application |
cancel_build ⚠️ | Cancel a running build |
get_build_logs | Get a step-by-step status summary of a build (filterable by status) |
get_step_logs | Get raw logs inline or create/update a managed temp file for a specific build step |
get_step_log_artifact | Check whether a managed local step-log artifact still exists for a specific build step |
list_build_artifacts | List all artifacts produced by a build |
| Tool | Description |
|---|---|
get_artifact_url | Get the download URL for a build artifact |
create_artifact_public_url | Create a time-limited public URL for an artifact |
| Tool | Description |
|---|---|
list_caches | List all build caches for an application |
delete_cache ⚠️ | Delete a specific build cache |
delete_all_caches ⚠️ | Delete all build caches for an application |
| Tool | Description |
|---|---|
list_variables | List all environment variables for an application |
add_variable | Add an environment variable to an application |
update_variable | Update an existing environment variable |
delete_variable ⚠️ | Delete an environment variable |
| Tool | Description |
|---|---|
list_webhooks | List all webhooks for an application |
add_webhook | Add a webhook to an application |
delete_webhook ⚠️ | Delete a webhook |
⚠️ These tools are marked as destructive and will prompt for confirmation before executing.
The fastest way to get running with Claude Code — no separate install step needed:
# 1. Add the server (uses uvx to run it on-demand)
claude mcp add codemagic -e CODEMAGIC_API_KEY=your-api-key-here -- uvx codemagic-mcp
That's it. See Configuration for optional settings like CODEMAGIC_DEFAULT_APP_ID.
Requirements: Python 3.11+
uvx codemagic-mcp
pip install codemagic-mcp
git clone https://github.com/AgiMaulana/CodemagicMcp.git
cd CodemagicMcp python3 -m venv .venv .venv/bin/pip install -e .
Get your API token from Codemagic User Settings → Integrations → Codemagic API.
You can provide settings as environment variables or via a .env file:
# .env
CODEMAGIC_API_KEY=your-api-key-here
CODEMAGIC_DEFAULT_APP_ID=your-app-id-here
CODEMAGIC_LOG_TEMP_DIR=/tmp/codemagic-mcp CODEMAGIC_LOG_TTL_SECONDS=3600 CODEMAGIC_LOG_CLEANUP_INTERVAL_SECONDS=300 CODEMAGIC_LOG_MAX_TOTAL_BYTES=524288000 CODEMAGIC_LOG_MAX_FILE_COUNT=200
CODEMAGIC_DEFAULT_APP_ID is optional but recommended if you work primarily with one app. When set, the AI will use it automatically whenever a tool requires an app_id and none was specified. If it is not set, the AI will:
list_apps to discover available apps.get_step_logs supports two delivery modes:
delivery="file" is the default and writes the log to a managed local temp file, returning metadata such as artifact_id, file_path, bytes, line_count, and expires_at.delivery="inline" returns the raw step log text directly.The local file mode is useful when a step log is too large to comfortably return inline. Managed log files are stored under CODEMAGIC_LOG_TEMP_DIR and expired files are cleaned up opportunistically whenever a new log file is written. The default retention window is controlled by CODEMAGIC_LOG_TTL_SECONDS and defaults to 3600 seconds.
The server also runs a startup cleanup pass and a periodic background cleanup loop. The loop interval is controlled by CODEMAGIC_LOG_CLEANUP_INTERVAL_SECONDS and defaults to 300 seconds. As an additional safety backstop, the managed temp directory is capped by CODEMAGIC_LOG_MAX_TOTAL_BYTES and CODEMAGIC_LOG_MAX_FILE_COUNT; when either cap is exceeded, the oldest files are evicted first.
get_step_log_artifact(build_id, step_id) checks whether that managed artifact still exists without calling Codemagic again or returning the file contents. The artifact metadata includes a deterministic artifact_id in this format:
artifact_<build_id>_<step_id>
If the artifact is missing, the server returns status="missing" with reason not_generated_or_expired, which means the file was either never generated or it expired and was deleted.
Run the following command to add the server:
claude mcp add codemagic -- codemagic-mcp
Then set your API key in the MCP env config, or export it in your shell before starting Claude Code:
export CODEMAGIC_API_KEY=your-api-key-here
Alternatively, add it manually to ~/.claude.json:
{
"mcpServers": { "codemagic": { "command": "codemagic-mcp", "env": { "CODEMAGIC_API_KEY": "your-api-key-here", "CODEMAGIC_DEFAULT_APP_ID": "your-app-id-here" } } } }
{
"mcpServers": { "codemagic": { "command": "uvx", "args": ["codemagic-mcp"], "env": { "CODEMAGIC_API_KEY": "your-api-key-here", "CODEMAGIC_DEFAULT_APP_ID": "your-app-id-here" } } } }
Restart Claude Code — the tools will appear in /tools.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": { "codemagic": { "command": "codemagic-mcp", "env": { "CODEMAGIC_API_KEY": "your-api-key-here", "CODEMAGIC_DEFAULT_APP_ID": "your-app-id-here" } } } }
Restart Claude Desktop to pick up the changes.
codemagic_mcp/
├── config.py # pydantic-settings config (validates API key at startup) ├── client.py # httpx async client, one method per endpoint ├── server.py # FastMCP instance └── tools/ ├── apps.py ├── builds.py ├── artifacts.py ├── caches.py ├── variables.py └── webhooks.py
client.pytools/*.py fileserver.py never needs to change