Skip to main content
Glama

create_artifact_public_url

Generate temporary public URLs for Codemagic build artifacts to share files securely with time-limited access.

Instructions

Create a time-limited public URL for a build artifact.

Args: secure_filename: The secure filename of the artifact (from build results). expires_at: Expiry time as a UNIX timestamp (seconds since epoch).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
secure_filenameYes
expires_atYes

Implementation Reference

  • Tool definition and registration of `create_artifact_public_url` in the MCP server.
    @mcp.tool()
    async def create_artifact_public_url(
        secure_filename: str, expires_at: int
    ) -> Any:
        """Create a time-limited public URL for a build artifact.
    
        Args:
            secure_filename: The secure filename of the artifact (from build results).
            expires_at: Expiry time as a UNIX timestamp (seconds since epoch).
        """
        async with CodemagicClient() as client:
            return await client.create_artifact_public_url(secure_filename, expires_at)
  • Actual API implementation of `create_artifact_public_url` in the CodemagicClient.
    async def create_artifact_public_url(
        self, secure_filename: str, expires_at: int
    ) -> Any:
        return await self._post(
            f"/artifacts/{secure_filename}/public-url",
            json={"expiresAt": expires_at},
        )

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