Codemagic MCP by usefulapi

v1.43.1
io.usefulapi/codemagic Checked 2 days ago Published 1 day ago

Trigger 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}.

ParameterTypeDescription
id *stringThe application id.

codemagic_list_builds List builds

List builds, optionally filtered by application, workflow, and/or branch. Codemagic REST: GET /builds.

ParameterTypeDescription
appIdstringRestrict to builds for this application id.
branchstringRestrict to builds for this branch.
workflowIdstringRestrict 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}.

ParameterTypeDescription
buildId *stringThe 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.

ParameterTypeDescription
appId *stringThe 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}.

ParameterTypeDescription
secureFilename *stringThe 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.

ParameterTypeDescription
pageintegerPage number, starting at 1.
pageSizeintegerItems 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}.

ParameterTypeDescription
teamId *stringThe 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.

ParameterTypeDescription
appId *stringThe application id.
pageintegerPage number, starting at 1.
pageSizeintegerItems 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.

ParameterTypeDescription
variableGroupId *stringThe variable group id (from codemagic_list_variable_groups).
pageintegerPage number, starting at 1.
pageSizeintegerItems per page (1-100, default 30).
searchstringSearch 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.

ParameterTypeDescription
teamId *stringThe team id (from codemagic_list_teams).
periodFromstringStart of the period, ISO 8601 date-time, e.g. 2026-11-01T00:00:00Z (default: 30 days before now).
periodTostringEnd 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.

ParameterTypeDescription
appId *stringThe application id to build (required).
workflowId *stringThe workflow id to run (required).
branchstringThe branch to build.
environmentobjectEnvironment overrides for this build (variables, groups, etc.).
instanceTypestringThe build machine instance type (e.g. mac_mini_m2, linux_x2).
labelsarrayLabels to attach to this build.
tagstringThe tag to build (alternative to branch).

codemagic_cancel_build Cancel build

Cancel a running build by id. Codemagic REST: POST /builds/{id}/cancel.

ParameterTypeDescription
buildId *stringThe 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.

ParameterTypeDescription
expiresAt *integerWhen the public URL should expire, as a UNIX timestamp in SECONDS.
secureFilename *stringThe 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.

ParameterTypeDescription
appId *stringThe application id.
name *stringName 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}.

ParameterTypeDescription
variableGroupId *stringThe variable group id (from codemagic_list_variable_groups).
variableId *stringThe variable id (from codemagic_list_variables).
namestringNew variable name.
securebooleanMark the variable as secure (secret) or not.
valuestringNew variable value.