list_caches
Retrieve all build caches for a Codemagic application to manage storage and optimize CI/CD workflows.
Instructions
List all build caches for a Codemagic application.
Args: app_id: The Codemagic application ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes |
Implementation Reference
- codemagic_mcp/tools/caches.py:10-18 (handler)The MCP tool handler for list_caches, which delegates to the CodemagicClient.
@mcp.tool() async def list_caches(app_id: str) -> Any: """List all build caches for a Codemagic application. Args: app_id: The Codemagic application ID. """ async with CodemagicClient() as client: return await client.list_caches(app_id) - codemagic_mcp/client.py:334-335 (handler)The actual API implementation of list_caches within the CodemagicClient.
async def list_caches(self, app_id: str) -> Any: return await self._get(f"/apps/{app_id}/caches")