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
| Name | Required | Description | Default |
|---|---|---|---|
| build_id | Yes | ||
| include_steps | No |
Implementation Reference
- codemagic_mcp/tools/builds.py:32-45 (handler)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) - codemagic_mcp/tools/builds.py:9-9 (registration)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: