Codemagic MCP server for AI agents

Live

API KEY

MOBILE CI/CD

Developer Tools

Codemagic gives your agent CI/CD control in your Codemagic account: list apps, workflows, and builds, start and cancel builds, read build analytics, manage variable groups, tester groups, and app previews, and administer team members.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Codemagic
agent · Acme Q3
Run
Start a build of the release workflow on the main branch of my iOS app.
S
codemagic_build_start
520ms
Build agent
Started a build of the release workflow on main. The build is queued and I can check its status when you want.
Sources: Codemagic iOS app, 1 build
codemagic
1 build
18:29
Message Claude...

Tools your mobile CI/CD agent reaches for on Codemagic, scoped per user.

CALL ANY TOOL
60 tools for mobile CI/CD in Codemagic: list apps, workflows, and builds, start and cancel builds, read build analytics, manage variable groups and tester groups, run app previews, and administer teams.
codemagic_app_cache_delete
Delete app cache
Delete one stored build cache of a Codemagic application. Returns the cache ID queued for deletion; deletion finishes asynchronously. Use List App Caches to find the cache ID. Use Delete All App Caches to clear every cache.
Parameters
Name
Type
Required
Description
app_id
string
Required
Codemagic application ID. Find it with List Apps or List Team Apps. Example: 5c9c064185dd2310123b8e96.
cache_id
string
Required
Cache ID, from List App Caches. Example: 620f9f218ab90da6b1b22e0e.
codemagic_app_caches_list
List app caches
codemagic_app_create
Create app
codemagic_app_create_from_private_repo
App create from private repo
codemagic_app_get
Get app
codemagic_app_variable_group_create
Create app variable group
codemagic_app_variable_groups_list
List app variable groups
codemagic_apps_list
List apps
codemagic_build_cancel
Cancel build
codemagic_build_preview_start
Start build preview
codemagic_preview_get
Get preview
codemagic_preview_share
Share preview
codemagic_preview_stop
Stop preview
codemagic_team_allowed_email_domains_update
Update team allowed email domains
codemagic_team_apps_list
List team apps
codemagic_team_build_analytics_get
Get team build analytics
codemagic_team_builds_by_status_get
Get team builds by status
codemagic_team_external_recipient_delete
Delete team external recipient
codemagic_team_external_recipients_add
Add team external recipients
codemagic_team_invitation_create
Create team invitation
codemagic_team_invitations_list
List team invitations
codemagic_team_member_remove
Remove team member
codemagic_team_previews_list
List team previews
codemagic_team_variable_groups_list
List team variable groups
codemagic_tester_group_contacts_import
Import tester group contacts
codemagic_tester_group_get
Get tester group
codemagic_tester_group_update
Update tester group
codemagic_user_apps_list
List user apps
codemagic_user_team_permissions_get
Get user team permissions
codemagic_variable_group_delete
Delete variable group

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Codemagic tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["codemagic"], toolNames: [
    "codemagic_apps_list",
    "codemagic_build_start",
    "codemagic_build_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find my iOS app, start a release build on main, and show me the status of that build" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["codemagic"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find my iOS app, start a release build on main, and show me the status of that build" }],
  tools,
});

// Execute the tool call with the user's vaulted Codemagic API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["codemagic"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find my iOS app, start a release build on main, and show me the status of that build" }],
  tools,
});

// Tool call runs with the user's vaulted Codemagic API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["codemagic"] }, pageSize: 100,
});

const agent = new Agent({
  name: "mobile_cicd_agent",
  model: "gemini-2.5-pro",
  instruction: "Codemagic tools scoped to this user",
  tools,
});

await agent.run("Find my iOS app, start a release build on main, and show me the status of that build");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Codemagic tool. Click to copy, paste into your agent, done.
Apps and builds
Copy the prompt
Copied
List the apps I can access in Codemagic.
Copy the prompt
Copied
List the latest failed builds for this team.
Copy the prompt
Copied
Show the steps and timings of this build.
Run and preview
Copy the prompt
Copied
Start a build of the release workflow on main.
Copy the prompt
Copied
Cancel the build that is running on this branch.
Copy the prompt
Copied
Start an in-browser preview from this build's artifact.
Teams and variables
Copy the prompt
Copied
Show build counts per status for my team over the last 30 days.
Copy the prompt
Copied
List the variables in the staging variable group.
Copy the prompt
Copied
Invite a teammate to my team with the developer role.
SEE HOW AUTH WORKS
Each user connects their own Codemagic API key once; Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Codemagic
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Codemagic
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Codemagic
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Codemagic
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Engineering Teams
Auto release notes agent
Reads merged GitHub PRs, groups them into structured release notes, publishes the page to Notion, and announces the release in Slack. Every call runs on the engineer's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other developer tools connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
ENGINEERING
Auto-release notes agent
Group merged GitHub PRs into structured release notes, publish the page to Notion, and announce the release in Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Codemagic API key looks fine in a demo. In production every build start and team change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Codemagic today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Codemagic as the user or through a shared key?
As the user. Each user connects their own Codemagic API key once, and Scalekit sends it with every call. Audit logs attribute every build start and team change to that user, not a shared service account.
Where is the Codemagic API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Codemagic?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the build and analytics tools without codemagic_app_caches_delete_all, codemagic_team_member_remove, or codemagic_variable_group_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Codemagic access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent read and change environment variables?
Yes, if you expose the tools. codemagic_variable_group_variables_list and codemagic_variable_group_variable_get read variables in a group, and codemagic_variable_group_variables_import and codemagic_variable_group_variable_update add or change them. Leave the write tools out to keep variable access read-only.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""codemagic"": {
""url"": ""https://mcp.scalekit.com/codemagic"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.codemagic]
url = ""https://mcp.scalekit.com/codemagic""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""codemagic"": {
""url"": ""https://mcp.scalekit.com/codemagic"",
""type"": ""http""
}
}
}