list_deployments
Retrieve a list of all application deployments managed through Coolify's self-hosted PaaS platform for monitoring and operational oversight.
Instructions
List all deployments
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/handlers.ts:424-425 (handler)The handler for the list_deployments tool. It makes a GET request to '/deployments' endpoint of the Coolify API to retrieve all deployments.case 'list_deployments': return client.get('/deployments');
- src/tools/definitions.ts:604-607 (schema)The schema definition for the list_deployments tool, including name, description, and empty input schema (no parameters required). It is part of the allToolDefinitions array exported by getToolDefinitions() for MCP tool registration.name: 'list_deployments', description: 'List all deployments', inputSchema: { type: 'object', properties: {}, required: [] } },
- src/index.ts:36-38 (registration)Generic registration of all tools via ListToolsRequestHandler, which returns getToolDefinitions() including the list_deployments schema.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:57-67 (registration)Generic tool call handler registration that dispatches to handleTool based on tool name, handling list_deployments case.const result = await handleTool(this.client, name, args || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { if (error instanceof McpError) throw error; const message = error instanceof Error ? error.message : 'Unknown error'; throw new McpError(ErrorCode.InternalError, `Tool execution failed: ${message}`); } });