Codemagic MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODEMAGIC_API_KEY | Yes | Your Codemagic API key |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_all_applicationsB | Retrieve all applications from Codemagic. Returns: Dictionary containing the applications |
| get_applicationB | Retrieve a specific application from Codemagic by ID. Args: app_id: Application ID Returns: Dictionary containing the application details |
| add_applicationA | Add a new application to Codemagic. Args: repository_url: SSH or HTTPS URL for cloning the repository team_id: Optional team ID to add the app directly to a team (must be admin) Returns: Dictionary containing the created application details |
| add_application_privateA | Add a new application from a private repository to Codemagic. Args: repository_url: SSH or HTTPS URL for cloning the repository ssh_key_data: base64-encoded private key file ssh_key_passphrase: SSH key passphrase or None if the SSH key is without a passphrase project_type: Set to "flutter-app" when adding Flutter application team_id: Optional team ID to add the app directly to a team (must be admin) Returns: Dictionary containing the created application details |
| get_artifactB | Get authenticated download URL for a build artifact. Args: secure_filename: The secure filename of the artifact (from Builds API or Codemagic UI) Format: uuid1/uuid2/filename.ext Returns: The artifact file content as bytes |
| create_public_artifact_urlA | Create a public download URL for a build artifact. Args: secure_filename: The secure filename of the artifact (from Builds API or Codemagic UI) Format: uuid1/uuid2/filename.ext expires_at: URL expiration UNIX timestamp in seconds Returns: Dictionary containing the public artifact URL and expiration timestamp |
| start_buildA | Start a new build on Codemagic. Args: app_id: The application identifier workflow_id: The workflow identifier branch: The branch name (either branch or tag is required) tag: The tag name (either branch or tag is required) environment: Dictionary with environment variables, variable groups, and software versions labels: List of labels to include for the build instance_type: Type of instance to use for the build (e.g. 'mac_mini_m2') Returns: Dictionary with the build ID |
| get_buildsA | Get a list of builds from Codemagic build history. Args: app_id: Optional filter by application identifier workflow_id: Optional filter by workflow identifier branch: Optional filter by branch name tag: Optional filter by tag name Returns: Dictionary containing applications and builds information |
| get_build_statusB | Get the status of a build on Codemagic. Args: build_id: The build identifier Returns: Dictionary containing the application and build information |
| cancel_buildC | Cancel a running build on Codemagic. Args: build_id: The build identifier Returns: Response from the API (empty if successful) |
| get_build_step_logA | Get the raw log output for a specific build step on Codemagic. Calls the undocumented endpoint that the Codemagic web dashboard uses internally (GET /builds/{build_id}/step/{step_id}), which returns the step's stdout/stderr as text/plain. Use this to diagnose failed builds without manual dashboard access. The step_id is the Args: build_id: The build identifier step_id: The build step identifier Returns: The step log as plain text |
| get_app_cachesC | Retrieve a list of caches for an application. Args: app_id: The application identifier Returns: Dictionary containing the list of caches for the application |
| delete_all_app_cachesC | Delete all stored caches for an application. Args: app_id: The application identifier Returns: Dictionary with the list of cache IDs that will be deleted and a message |
| delete_app_cacheA | Delete a specific cache from an application. Args: app_id: The application identifier cache_id: The cache identifier to delete Returns: Dictionary with the deleted cache ID and a message |
| invite_team_memberA | Invite a new team member to your team. Args: team_id: The team identifier email: User email to invite role: User role, can be 'owner' (Admin) or 'developer' (Member) Returns: Full team object |
| delete_team_memberA | Remove a team member from the team. Args: team_id: The team identifier user_id: The user identifier to remove Returns: Response from the API (empty if successful) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/stefanoamorelli/codemagic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server