• EXECUTION
  • RESOURCES
  • OVERRIDE
  • HUMAN

How to trigger and manage mobile builds with your AI

Connect Codemagic to your AI client to run builds and kill stuck processes using natural language.

Ask AI about this page

Short answer

How can I use AI to control my Codemagic builds?

You can tell your AI to start new builds with specific branch overrides or stop active builds that are wasting resources. This gives you direct control over your CI/CD pipeline without leaving your chat interface.

Build control outcomes

What you get

The direct results of your AI commands.

EXECUTION

New builds start

Your AI triggers a fresh build on the specific branch you requested. You get a build running without touching the Codemagic dashboard.

RESOURCES

Wasted minutes saved

The AI stops builds that are hanging or no longer needed. This keeps your build minute usage under control.

OVERRIDE

Branch control

You can specify exactly which branch to build. The AI handles the branch override logic for you.

HUMAN

Manual oversight

The AI doesn't change your Codemagic project settings or billing. You still own the core configuration and account management.

The workflow

What your AI does when <the thing arrives>.

Your AI acts as the bridge between your chat and the Codemagic API.

  1. Identify the target

    Your AI looks at your request to figure out which repository and branch you are talking about.

    start_build
  2. Launch the build

    The AI sends the command to start a new build, applying any branch overrides you mentioned.

    start_build
  3. Monitor status

    The AI tracks the build progress so you can ask for updates in the chat.

    start_build
  4. Kill runaway builds

    If a build is stuck or you changed your mind, the AI sends a command to stop the process immediately.

    cancel_build

Try it

Copy these to start.

Use these prompts to interact with Codemagic.

Starting points

Swap out the repo names and branch names with your actual Codemagic project details.

Codemagic Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_pNfm2lX2WqmSzosnLxFoxsMQehesV2YsKzeaN0sV/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Codemagic capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "codemagic-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_pNfm2lX2WqmSzosnLxFoxsMQehesV2YsKzeaN0sV/mcp"
    }
  }
}
Copy into chat04
  • Start a new build for my mobile app in the 'production' branch.

  • Stop the current build running on the 'develop' branch.

  • Trigger a build for the 'feature/login-fix' branch in my main repo.

  • Cancel the build that just started on the 'staging' branch.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Codemagic once, then ask.

Just link your account once. Your credentials stay encrypted, and you can start managing builds immediately.

Connect Codemagic to your AI

FAQ

How this task behaves

  • 01

    Can the AI change my Codemagic environment variables?

    No. The AI only has permission to start and cancel builds.

  • 02

    Will the AI delete my repositories?

    No. There are no tools available to the AI for deleting repositories or projects.

  • 03

    How do I specify a branch override?

    Just tell your AI which branch you want to use when you ask it to start a build.

  • 04

    Can I see the build logs in my AI chat?

    The AI can interact with the build process, but it doesn't pull full log files unless you ask it to check status.

  • 05

    Does the AI handle my billing?

    No. All billing and subscription management stays within your Codemagic account.

  • More questions about Codemagic? The Connector page answers them. See everything the Codemagic Connector can do

Connect Codemagic to Claude, Cursor, ChatGPT & more