Skip to main content
Glama

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
NameRequiredDescriptionDefault
descriptionNoOptional description of the environment
nameYesName of the environment
project_uuidYesUUID of the project where this environment will be created

Implementation Reference

  • 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' }
        ]
      }
    },
  • 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' }
      ]
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wrediam/coolify-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server