add_application
Add Application
Add a new application to Codemagic from a Git repository URL. Supports both public and private repositories. For private repos, provide an SSH key for authentication.
Ask your agent in plain language. Each of these maps to a real tool on the server.
add_application
Add a new application to Codemagic from a Git repository URL. Supports both public and private repositories. For private repos, provide an SSH key for authentication.
add_variables
Add environment variables to an existing variable group. Variables can be marked as secret for encrypted storage. This is for apps configured using codemagic.yaml.
start_build
Trigger a new build for a Codemagic application. Specify the application, workflow, and branch or tag to build. Optionally override environment variables, software versions (Xcode, Flutter), and machine type.
cancel_build
Cancel a running build. If the build has already finished, the API will indicate it was already completed.
get_application
Retrieve detailed information about a specific Codemagic application including branches, workflows, and repository details.
get_build
Retrieve detailed status and information about a specific build, including its current status, commit details, artifacts, and build actions.
list_applications
List all applications connected to your Codemagic account. Returns application IDs, names, workflows, and repository information. Use this to discover available apps before triggering builds.
create_artifact_url
Generate a public download URL for a build artifact. The URL can be shared and has a configurable expiration time. Use the artifact URL from a build's artifacts list.
manage_caches
List, delete all, or delete a specific build cache for an application. Caches are associated with workflows and include metadata like size and last usage time.
list_builds
List builds across all applications or filtered to a specific application. Returns build IDs, statuses, branches, and timestamps.
list_variable_groups
List environment variable groups for an application, including IDs usable with add_variables. Call list_applications to discover application IDs.
get_current_user
Retrieve the authenticated Codemagic user ID, avatar, and permissions by resource.
download_artifact
Prepare a build artifact for download using its authenticated artifact URL from get_build.
Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.
{"mcpServers": {"metorial": {"url": "<your-magic-mcp-url>"}}}
claude mcp add --transport http metorial <your-magic-mcp-url>
codex mcp add metorial --url <your-magic-mcp-url>codex mcp login metorial
One governed layer for every app your agents reach, not a separate connector per tool.
Manage CI/CD pipelines for mobile applications. Add and list applications, trigger and cancel builds, retrieve build status, and download build artifacts. Manage build caches, environment variables, and secrets. Supports Flutter, React Native, native iOS/Android, Unity, and other mobile frameworks. Configure builds with custom environment variables, software version overrides, labels, and machine types.
Common questions about connecting Codemagic to AI agents with Metorial.