Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_uuidYesProject UUID
nameYesEnvironment name (e.g., production, staging)

Implementation Reference

  • 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);
  • 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'] } },
  • TypeScript type definition for the input parameters of create_environment, matching the JSON schema.
    export interface CreateEnvironmentInput { project_uuid: string; name: string; }

Other Tools

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/kof70/coolify-mcp-server'

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