Skip to main content
Glama

cancel_build

Stop a running Codemagic CI/CD build by providing its build ID. This tool helps manage active builds and control resource usage.

Instructions

Cancel a running Codemagic build.

Args: build_id: The build ID to cancel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
build_idYes

Implementation Reference

  • The 'cancel_build' MCP tool handler, which uses the CodemagicClient to perform the cancellation.
    @mcp.tool(annotations=ToolAnnotations(destructiveHint=True))
    async def cancel_build(build_id: str) -> Any:
        """Cancel a running Codemagic build.
    
        Args:
            build_id: The build ID to cancel.
        """
        async with CodemagicClient() as client:
            return await client.cancel_build(build_id)

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/AgiMaulana/CodemagicMcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server