get_environment
Retrieve environment details for a specific project in Coolify, including configuration and deployment information.
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 switch case handler for the 'get_environment' tool within the handleTool function. It validates required parameters and makes a GET request to the Coolify API to retrieve environment details using the provided project_uuid and environment_name_or_uuid.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-830 (schema)The schema definition for the 'get_environment' tool, including name, description, and inputSchema specifying the required parameters: project_uuid and environment_name_or_uuid.{ 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 tool list registration in the MCP server, which includes the get_environment tool via getToolDefinitions() that sources from definitions.ts.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions()
- src/tools/definitions.ts:19-19 (helper)The get_environment tool is listed in the READ_ONLY_TOOLS array, indicating it is a read-only operation available even in read-only mode.'get_environment',