list_build_artifacts
Retrieve all artifacts generated by a specific Codemagic build by providing its build ID.
Instructions
List all artifacts produced by a Codemagic build.
Args: build_id: The Codemagic build ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build_id | Yes |
Implementation Reference
- codemagic_mcp/client.py:395-409 (handler)Core handler that calls the Codemagic API to GET /builds/{build_id}, extracts 'artefacts' from the response, and returns a filtered list of artifact metadata (name, type, url, size, version, versionCode, minOsVersion).
async def list_build_artifacts(self, build_id: str) -> Any: build = await self._get(f"/builds/{build_id}") artifacts = build.get("build", {}).get("artefacts", []) return [ { "name": a.get("name"), "type": a.get("type"), "url": a.get("url"), "size": a.get("size"), "version": a.get("versionName") or a.get("version"), "versionCode": a.get("versionCode"), "minOsVersion": a.get("minOsVersion"), } for a in artifacts ] - codemagic_mcp/tools/builds.py:143-151 (handler)MCP tool handler function decorated with @mcp.tool(). Receives build_id, creates a CodemagicClient, and delegates to client.list_build_artifacts. Includes docstring and Args section.
@mcp.tool() async def list_build_artifacts(build_id: str) -> Any: """List all artifacts produced by a Codemagic build. Args: build_id: The Codemagic build ID. """ async with CodemagicClient() as client: return await client.list_build_artifacts(build_id) - codemagic_mcp/server.py:43-43 (registration)Top-level registration: register_all_tools(mcp) called during server setup, which in turn registers builds module including list_build_artifacts.
register_all_tools(mcp) - codemagic_mcp/tools/__init__.py:6-8 (registration)The register_all_tools function calls builds.register(mcp), which registers all build-related tools including list_build_artifacts via the @mcp.tool() decorator.
def register_all_tools(mcp: FastMCP) -> None: apps.register(mcp) builds.register(mcp) - codemagic_mcp/tools/builds.py:143-144 (registration)The @mcp.tool() decorator on line 143 registers list_build_artifacts as an MCP tool.
@mcp.tool() async def list_build_artifacts(build_id: str) -> Any: