add_webhook
Configure automated notifications for Codemagic CI/CD workflows by subscribing to specific build events and sending payloads to a designated URL.
Instructions
Add a webhook to a Codemagic application.
Args: app_id: The Codemagic application ID. url: The URL to send webhook payloads to. events: List of events to subscribe to (e.g. ["build.finished", "build.started"]).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | ||
| url | Yes | ||
| events | Yes |
Implementation Reference
- codemagic_mcp/tools/webhooks.py:20-30 (handler)The tool handler for "add_webhook" which is registered via FastMCP and calls the underlying CodemagicClient.
@mcp.tool() async def add_webhook(app_id: str, url: str, events: list[str]) -> Any: """Add a webhook to a Codemagic application. Args: app_id: The Codemagic application ID. url: The URL to send webhook payloads to. events: List of events to subscribe to (e.g. ["build.finished", "build.started"]). """ async with CodemagicClient() as client: return await client.add_webhook(app_id=app_id, url=url, events=events) - codemagic_mcp/tools/webhooks.py:20-30 (registration)Registration of the "add_webhook" tool using the FastMCP decorator.
@mcp.tool() async def add_webhook(app_id: str, url: str, events: list[str]) -> Any: """Add a webhook to a Codemagic application. Args: app_id: The Codemagic application ID. url: The URL to send webhook payloads to. events: List of events to subscribe to (e.g. ["build.finished", "build.started"]). """ async with CodemagicClient() as client: return await client.add_webhook(app_id=app_id, url=url, events=events)