create_environment
Create a new environment like production or staging within a project to deploy and manage applications on Coolify self-hosted PaaS.
Instructions
Create a new environment in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_uuid | Yes | Project UUID | |
| name | Yes | Environment name (e.g., production, staging) |
Implementation Reference
- src/tools/handlers.ts:120-123 (handler)Handler implementation for the 'create_environment' tool. Validates required parameters (project_uuid, name) and sends a POST request to the Coolify API to create a new environment in the specified project.case 'create_environment': requireParam(args, 'project_uuid'); requireParam(args, 'name'); return client.post(`/projects/${args.project_uuid}/environments`, args);
- src/tools/definitions.ts:241-252 (registration)Tool registration in the definitions array, including name, description, and input JSON schema used by MCP server for tool listing and validation.{ name: 'create_environment', description: 'Create a new environment in a project', inputSchema: { type: 'object', properties: { project_uuid: { type: 'string', description: 'Project UUID' }, name: { type: 'string', description: 'Environment name (e.g., production, staging)' } }, required: ['project_uuid', 'name'] } },
- src/types.ts:127-130 (schema)TypeScript type definition for the input parameters of create_environment, matching the JSON schema.export interface CreateEnvironmentInput { project_uuid: string; name: string; }