get_environment
Retrieve environment configuration details from Coolify PaaS for a specific project and environment to manage deployments and operations.
Instructions
Get environment details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_uuid | Yes | Project UUID | |
| environment_name_or_uuid | Yes | Environment name or UUID |
Implementation Reference
- src/tools/handlers.ts:125-128 (handler)The core handler logic for the 'get_environment' tool. Validates the required input parameters (project_uuid and environment_name_or_uuid) and makes a GET request to the Coolify API endpoint `/projects/{project_uuid}/{environment_name_or_uuid}` to fetch the environment details.case 'get_environment': requireParam(args, 'project_uuid'); requireParam(args, 'environment_name_or_uuid'); return client.get(`/projects/${args.project_uuid}/${args.environment_name_or_uuid}`);
- src/tools/definitions.ts:820-831 (schema)The schema definition for the 'get_environment' tool, including name, description, and inputSchema specifying the required parameters and their types. This is part of the allToolDefinitions array used by MCP to list available tools.{ name: 'get_environment', description: 'Get environment details', inputSchema: { type: 'object', properties: { project_uuid: { type: 'string', description: 'Project UUID' }, environment_name_or_uuid: { type: 'string', description: 'Environment name or UUID' } }, required: ['project_uuid', 'environment_name_or_uuid'] } },
- src/index.ts:36-37 (registration)The MCP server registers all tools, including 'get_environment', by providing the list from getToolDefinitions() in response to ListToolsRequest. This makes the tool discoverable by MCP clients.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions()
- src/index.ts:56-57 (registration)The MCP server handles tool calls by dispatching to handleTool, which contains the specific case for 'get_environment'. This completes the tool execution path.try { const result = await handleTool(this.client, name, args || {});