Skip to main content
Glama

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
NameRequiredDescriptionDefault
app_idYes
urlYes
eventsYes

Implementation Reference

  • 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)
  • 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)

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