get_app
Retrieve details of a specific application using its unique ID. Provide the app ID to access build status, configuration, and metadata.
Instructions
Get details of a specific application by its ID.
Args: app_id: The Codemagic application ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes |
Implementation Reference
- codemagic_mcp/tools/apps.py:16-24 (handler)The MCP tool handler for 'get_app' - registers the tool with FastMCP, accepts an app_id, and delegates to the client layer.
@mcp.tool() async def get_app(app_id: str) -> Any: """Get details of a specific application by its ID. Args: app_id: The Codemagic application ID. """ async with CodemagicClient() as client: return await client.get_app(app_id) - codemagic_mcp/client.py:73-76 (helper)The API client method that performs the actual HTTP GET request to /apps/{app_id}, extracts the application data, and trims it via _trim_app.
async def get_app(self, app_id: str) -> Any: data = await self._get(f"/apps/{app_id}") app = data.get("application", data) if isinstance(data, dict) else data return self._trim_app(app) - codemagic_mcp/tools/__init__.py:6-8 (registration)Registration entry point - calls apps.register(mcp) which registers the get_app tool along with other app tools.
def register_all_tools(mcp: FastMCP) -> None: apps.register(mcp) builds.register(mcp) - codemagic_mcp/server.py:32-43 (registration)Server initialization - creates the FastMCP instance and calls register_all_tools to register all tools including get_app.
mcp = FastMCP( name="Codemagic MCP", instructions=( "Codemagic CI/CD REST API: manage builds, apps, artifacts, caches, variables, and webhooks.\n\n" "Destructive ops (delete_app, cancel_build, delete_cache, delete_all_caches, delete_variable, delete_webhook): confirm before executing.\n\n" "App ID resolution: (1) use explicit app_id; (2) use CODEMAGIC_DEFAULT_APP_ID if set (exposed as `default_app_id`); " "(3) call list_apps — auto-select if one result, else ask user." ), lifespan=lifespan, ) register_all_tools(mcp)