Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_uuidYesProject UUID

Implementation Reference

  • 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`);
  • 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 || {});
  • 'list_environments' is included in READ_ONLY_TOOLS array, making it available in read-only mode.
    'list_environments',

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