create_environment
Create a new environment within a Coolify project to organize deployments, applications, and services for different stages like development, staging, or production.
Instructions
Create a new environment within a project.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | Optional description of the environment | |
| name | Yes | Name of the environment | |
| project_uuid | Yes | UUID of the project where this environment will be created |
Implementation Reference
- src/index.ts:1349-1353 (handler)The handler function that executes the create_environment tool logic by sending a POST request to the Coolify '/environments' API endpoint with the provided arguments and returning the formatted JSON response.case 'create_environment': const createEnvironmentResponse = await this.axiosInstance.post('/environments', request.params.arguments); return { content: [{ type: 'text', text: JSON.stringify(createEnvironmentResponse.data, null, 2) }] };
- src/index.ts:504-532 (registration)Registration of the 'create_environment' tool in the ListTools response, including its name, description, and detailed input schema with properties, requirements, and examples.{ name: 'create_environment', description: 'Create a new environment within a project.', inputSchema: { type: 'object', properties: { project_uuid: { type: 'string', description: 'UUID of the project where this environment will be created', pattern: '^[a-zA-Z0-9]+$', examples: ['sg4gsws44wksg040o4ok80ww'] }, name: { type: 'string', description: 'Name of the environment', examples: ['staging', 'production', 'development'] }, description: { type: 'string', description: 'Optional description of the environment', examples: ['Staging environment for testing'] } }, required: ['project_uuid', 'name'], examples: [ { project_uuid: 'sg4gsws44wksg040o4ok80ww', name: 'staging', description: 'Staging environment for testing' } ] } },
- src/index.ts:507-531 (schema)Input schema definition for the create_environment tool, specifying parameters like project_uuid (required), name (required), and optional description.inputSchema: { type: 'object', properties: { project_uuid: { type: 'string', description: 'UUID of the project where this environment will be created', pattern: '^[a-zA-Z0-9]+$', examples: ['sg4gsws44wksg040o4ok80ww'] }, name: { type: 'string', description: 'Name of the environment', examples: ['staging', 'production', 'development'] }, description: { type: 'string', description: 'Optional description of the environment', examples: ['Staging environment for testing'] } }, required: ['project_uuid', 'name'], examples: [ { project_uuid: 'sg4gsws44wksg040o4ok80ww', name: 'staging', description: 'Staging environment for testing' } ] }