Codemagic MCP by usefulapi
v1.43.1Trigger and inspect Codemagic CI builds, apps and artifacts.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
codemagic_list_applications List applications
List all applications (apps) in the Codemagic account, with their ids, names, and workflow ids. Codemagic REST: GET /apps.
codemagic_get_application Get application
Get a single application (app) by id. Codemagic REST: GET /apps/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The application id. |
codemagic_list_builds List builds
List builds, optionally filtered by application, workflow, and/or branch. Codemagic REST: GET /builds.
| Parameter | Type | Description |
|---|---|---|
appId | string | Restrict to builds for this application id. |
branch | string | Restrict to builds for this branch. |
workflowId | string | Restrict to builds for this workflow id. |
codemagic_get_build Get build
Get a single build by id, including its status. Codemagic REST: GET /builds/{id}.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | The build id. |
codemagic_list_caches List caches
List the build caches for an application (id, size, last used, workflow). Codemagic REST: GET /apps/{appId}/caches.
| Parameter | Type | Description |
|---|---|---|
appId * | string | The application id. |
codemagic_get_artifact_download_url Get artifact download URL
Return the authenticated download URL of a build artifact, from its secure filename or URL in a build's artifacts list. It does not download the file. Downloading from this URL needs the Codemagic API token in the x-auth-token header; for a link that works without the token, use codemagic_create_artifact_public_url. Codemagic REST: GET /artifacts/{secureFilename}.
| Parameter | Type | Description |
|---|---|---|
secureFilename * | string | The secure filename/path of the artifact, or its https://api.codemagic.io/artifacts/... URL (from a build's artifacts list). |
codemagic_list_teams List teams
List the teams that the API token's user belongs to, with their ids. Codemagic REST: GET /api/v3/user/teams.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1. |
pageSize | integer | Items per page (1-100, default 30). |
codemagic_get_team Get team
Get one team's settings: name, id, whether it is a personal team, and its creation date. Codemagic REST: GET /api/v3/teams/{team_id}.
| Parameter | Type | Description |
|---|---|---|
teamId * | string | The team id (from codemagic_list_teams). |
codemagic_list_variable_groups List variable groups
List the environment variable groups of an application, with their ids and names. Codemagic REST: GET /api/v3/apps/{app_id}/variable-groups.
| Parameter | Type | Description |
|---|---|---|
appId * | string | The application id. |
page | integer | Page number, starting at 1. |
pageSize | integer | Items per page (1-100, default 30). |
codemagic_list_variables List variables
List the variables of one variable group (ids, names, values as the API returns them, secure flag). Codemagic REST: GET /api/v3/variable-groups/{variable_group_id}/variables.
| Parameter | Type | Description |
|---|---|---|
variableGroupId * | string | The variable group id (from codemagic_list_variable_groups). |
page | integer | Page number, starting at 1. |
pageSize | integer | Items per page (1-100, default 30). |
search | string | Search text, passed to the API's search filter. |
codemagic_get_team_analytics_summary Get team build usage summary
Get a team's build usage for a period: build count, total build duration and apps built. Dates are ISO 8601 date-times. Codemagic REST: GET /api/v3/teams/{team_id}/analytics/summary.
| Parameter | Type | Description |
|---|---|---|
teamId * | string | The team id (from codemagic_list_teams). |
periodFrom | string | Start of the period, ISO 8601 date-time, e.g. 2026-11-01T00:00:00Z (default: 30 days before now). |
periodTo | string | End of the period, ISO 8601 date-time, e.g. 2026-11-30T23:59:59Z (default: now). |
codemagic_start_build Start build
Start a new build for an application workflow. `appId` and `workflowId` are required; optionally target a branch or tag and pass environment/labels/instanceType. Codemagic REST: POST /builds.
| Parameter | Type | Description |
|---|---|---|
appId * | string | The application id to build (required). |
workflowId * | string | The workflow id to run (required). |
branch | string | The branch to build. |
environment | object | Environment overrides for this build (variables, groups, etc.). |
instanceType | string | The build machine instance type (e.g. mac_mini_m2, linux_x2). |
labels | array | Labels to attach to this build. |
tag | string | The tag to build (alternative to branch). |
codemagic_cancel_build Cancel build
Cancel a running build by id. Codemagic REST: POST /builds/{id}/cancel.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | The build id to cancel. |
codemagic_create_artifact_public_url Create artifact public URL
Create a public (shareable, time-limited) download URL for a build artifact by its secure filename. Codemagic REST: POST /artifacts/{secureFilename}/public-url.
| Parameter | Type | Description |
|---|---|---|
expiresAt * | integer | When the public URL should expire, as a UNIX timestamp in SECONDS. |
secureFilename * | string | The secure filename/path of the artifact, or its https://api.codemagic.io/artifacts/... URL (from a build's artifacts list). |
codemagic_create_tester_group Create tester group
WRITE: create a tester group for an application. Ask the user before creating one. A name that already exists on the app is refused, and nothing is created. The group starts with no testers. Codemagic REST: POST /api/v3/apps/{app_id}/tester-groups.
| Parameter | Type | Description |
|---|---|---|
appId * | string | The application id. |
name * | string | Name of the new tester group. Must not already exist on the app. |
codemagic_update_variable Update variable
WRITE: change one build variable's name, value and/or secure flag. Ask the user before changing a value: every build that uses the variable changes too. Returns the variable before and after the change; a secure variable's value is replaced by valueRedacted: true. Codemagic REST: PATCH /api/v3/variable-groups/{variable_group_id}/variables/{variable_id}.
| Parameter | Type | Description |
|---|---|---|
variableGroupId * | string | The variable group id (from codemagic_list_variable_groups). |
variableId * | string | The variable id (from codemagic_list_variables). |
name | string | New variable name. |
secure | boolean | Mark the variable as secure (secret) or not. |
value | string | New variable value. |