add_app
Add a new public repository to Codemagic by providing its HTTPS URL. Start building and managing apps from that repository.
Instructions
Add a new public repository to Codemagic.
Args: repository_url: The HTTPS URL of the public Git repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository_url | Yes |
Implementation Reference
- codemagic_mcp/tools/apps.py:27-34 (handler)MCP tool handler for 'add_app' that accepts a repository_url and delegates to the CodemagicClient.
async def add_app(repository_url: str) -> Any: """Add a new public repository to Codemagic. Args: repository_url: The HTTPS URL of the public Git repository. """ async with CodemagicClient() as client: return await client.add_app(repository_url) - codemagic_mcp/tools/apps.py:28-31 (schema)Docstring serving as the schema/description for the add_app tool, defining the repository_url parameter.
"""Add a new public repository to Codemagic. Args: repository_url: The HTTPS URL of the public Git repository. - codemagic_mcp/client.py:78-79 (helper)CodemagicClient.add_app helper that POSTs to /apps with {'repositoryUrl': repository_url}.
async def add_app(self, repository_url: str) -> Any: return await self._post("/apps", json={"repositoryUrl": repository_url}) - codemagic_mcp/tools/__init__.py:6-12 (registration)Registration entry point: register_all_tools() calls apps.register(mcp) which registers add_app via @mcp.tool().
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) - codemagic_mcp/server.py:43-43 (registration)Server calls register_all_tools(mcp) to register all tools including add_app on the FastMCP instance.
register_all_tools(mcp)