deploy
Deploy applications or services using tags or UUIDs to update versions and implement changes through the Coolify MCP Server.
Instructions
Deploy an application or service using a tag or UUID. This allows you to deploy new versions or updates to your applications.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag name(s). Comma separated list is accepted | |
| uuid | No | Resource UUID(s). Comma separated list is accepted | |
| force | No | Force rebuild (without cache) |
Implementation Reference
- src/index.ts:254-268 (handler)The handler function for the 'deploy' tool. It parses the input arguments using DeploySchema, builds query parameters for tag, uuid, and force, calls the Coolify API endpoint `/deploy` with those parameters, and returns the result as formatted JSON text.case "deploy": { const params = DeploySchema.parse(request.params.arguments); const queryParams = new URLSearchParams(); if (params.tag) queryParams.append('tag', params.tag); if (params.uuid) queryParams.append('uuid', params.uuid); if (params.force) queryParams.append('force', 'true'); const result = await coolifyApiCall(`/deploy?${queryParams.toString()}`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:54-58 (schema)Zod schema defining the input parameters for the 'deploy' tool: optional tag (comma-separated), uuid (comma-separated), and force boolean flag.const DeploySchema = z.object({ tag: z.string().optional().describe("Tag name(s). Comma separated list is accepted"), uuid: z.string().optional().describe("Resource UUID(s). Comma separated list is accepted"), force: z.boolean().optional().describe("Force rebuild (without cache)"), });
- src/index.ts:128-132 (registration)The registration of the 'deploy' tool in the tools list provided by the ListToolsRequestHandler. Specifies the tool name, description, and references the input schema.{ name: "deploy", description: "Deploy an application or service using a tag or UUID. This allows you to deploy new versions or updates to your applications.", inputSchema: zodToJsonSchema(DeploySchema), },