list_environments
Retrieve all environments within a Coolify project to manage deployments, databases, and server operations. Provide the project UUID to view available environments.
Instructions
List environments in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_uuid | Yes | Project UUID |
Implementation Reference
- src/tools/handlers.ts:116-118 (handler)The core handler logic for the 'list_environments' tool. It requires a 'project_uuid' parameter and makes a GET request to the Coolify API endpoint `/projects/{project_uuid}/environments` to fetch the list of environments.case 'list_environments': requireParam(args, 'project_uuid'); return client.get(`/projects/${args.project_uuid}/environments`);
- src/tools/definitions.ts:233-239 (schema)The input schema and metadata definition for the 'list_environments' tool, specifying that it requires a 'project_uuid' string parameter.name: 'list_environments', description: 'List environments in a project', inputSchema: { type: 'object', properties: { project_uuid: { type: 'string', description: 'Project UUID' } }, required: ['project_uuid'] }
- src/index.ts:36-38 (registration)MCP server registration for listing tools: returns getToolDefinitions() which includes the 'list_environments' tool schema.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:57-57 (registration)Tool execution registration: the MCP CallTool handler dispatches to handleTool, which routes 'list_environments' to its specific case.const result = await handleTool(this.client, name, args || {});
- src/tools/definitions.ts:18-18 (helper)'list_environments' is included in READ_ONLY_TOOLS array, making it available in read-only mode.'list_environments',