get_artifact_url
Retrieve the download URL for a build artifact using its secure filename from Codemagic CI/CD results.
Instructions
Get the download URL for a build artifact.
Args: secure_filename: The secure filename of the artifact (from build results).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secure_filename | Yes |
Implementation Reference
- codemagic_mcp/tools/artifacts.py:10-17 (handler)The MCP tool definition and handler for get_artifact_url.
async def get_artifact_url(secure_filename: str) -> Any: """Get the download URL for a build artifact. Args: secure_filename: The secure filename of the artifact (from build results). """ async with CodemagicClient() as client: return await client.get_artifact_url(secure_filename) - codemagic_mcp/client.py:272-273 (handler)The actual API client method that performs the network request for get_artifact_url.
async def get_artifact_url(self, secure_filename: str) -> Any: return await self._get(f"/artifacts/{secure_filename}") - codemagic_mcp/tools/artifacts.py:8-8 (registration)Registration of the get_artifact_url tool with the MCP server.
def register(mcp: FastMCP) -> None: