delete_server
Remove a server from Coolify's self-hosted PaaS platform using its UUID, with optional confirmation for safety when required.
Instructions
Delete a server. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Server UUID | |
| confirm | No | Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true) |
Implementation Reference
- src/tools/handlers.ts:99-101 (handler)The core handler logic for the 'delete_server' tool. It requires a 'uuid' parameter and issues a DELETE request to the Coolify API endpoint `/servers/${uuid}` using the CoolifyClient.case 'delete_server': requireParam(args, 'uuid'); return client.delete(`/servers/${args.uuid}`);
- src/tools/definitions.ts:783-794 (schema)The tool schema definition including name, description, and input schema (requires 'uuid'; optional 'confirm' for dangerous ops). Part of the allToolDefinitions array exported via getToolDefinitions().{ name: 'delete_server', description: 'Delete a server. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Server UUID' }, confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' } }, required: ['uuid'] } },
- src/index.ts:36-38 (registration)Registration of all tools (including 'delete_server') via the MCP server's listTools handler, which returns getToolDefinitions() containing the schema.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/tools/definitions.ts:45-64 (helper)'delete_server' is listed as a dangerous operation, triggering confirmation checks in handleTool.export const DANGEROUS_OPERATIONS = [ 'stop_application', 'restart_application', 'stop_service', 'restart_service', 'stop_database', 'restart_database', 'deploy_application', 'deploy', 'execute_command', 'delete_server', 'delete_project', 'delete_environment', 'delete_application', 'delete_service', 'delete_database', 'delete_private_key', 'delete_github_app', 'cancel_deployment' ];
- src/tools/definitions.ts:77-77 (helper)Warning message for the 'delete_server' tool, used when confirmation is required.delete_server: 'This will permanently delete the server and all its resources.',