list_webhooks
Retrieve all webhooks configured for a specific Codemagic application by providing its application ID.
Instructions
List all webhooks configured for a Codemagic application.
Args: app_id: The Codemagic application ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes |
Implementation Reference
- codemagic_mcp/tools/webhooks.py:11-18 (handler)The MCP tool handler for list_webhooks. It accepts an app_id string and calls the client's list_webhooks method.
async def list_webhooks(app_id: str) -> Any: """List all webhooks configured for a Codemagic application. Args: app_id: The Codemagic application ID. """ async with CodemagicClient() as client: return await client.list_webhooks(app_id) - codemagic_mcp/client.py:461-462 (helper)The underlying HTTP client method that performs a GET request to /apps/{app_id}/webhooks.
async def list_webhooks(self, app_id: str) -> Any: return await self._get(f"/apps/{app_id}/webhooks") - codemagic_mcp/tools/webhooks.py:9-18 (registration)The register function that decorates and registers list_webhooks as an MCP tool via @mcp.tool().
def register(mcp: FastMCP) -> None: @mcp.tool() async def list_webhooks(app_id: str) -> Any: """List all webhooks configured for a Codemagic application. Args: app_id: The Codemagic application ID. """ async with CodemagicClient() as client: return await client.list_webhooks(app_id) - codemagic_mcp/tools/__init__.py:6-12 (registration)Top-level registration orchestrator that calls webhooks.register(mcp) along with other tool modules.
def register_all_tools(mcp: FastMCP) -> None: apps.register(mcp) builds.register(mcp) artifacts.register(mcp) caches.register(mcp) variables.register(mcp) webhooks.register(mcp)