Skip to main content
Glama

get_build

Retrieve details and status of a specific Codemagic CI/CD build, including step summary counts and optional full step lists for log access.

Instructions

Get details and status of a specific Codemagic build.

Always includes a step summary (total, success, failed, skipped counts). Set include_steps=True to also get the full list of steps with their IDs, which can then be used with get_step_logs.

Args: build_id: The Codemagic build ID. include_steps: If True, include full step list with IDs. Default False.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
build_idYes
include_stepsNo

Implementation Reference

  • The 'get_build' tool handler, defined using the FastMCP decorator, which calls the CodemagicClient's get_build method.
    @mcp.tool()
    async def get_build(build_id: str, include_steps: bool = False) -> Any:
        """Get details and status of a specific Codemagic build.
    
        Always includes a step summary (total, success, failed, skipped counts).
        Set include_steps=True to also get the full list of steps with their IDs,
        which can then be used with get_step_logs.
    
        Args:
            build_id: The Codemagic build ID.
            include_steps: If True, include full step list with IDs. Default False.
        """
        async with CodemagicClient() as client:
            return await client.get_build(build_id, include_steps=include_steps)
  • The tool is registered by the 'register' function which takes an MCP instance and decorates the tool handlers with '@mcp.tool()'.
    def register(mcp: FastMCP) -> None:

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