Skip to main content
Glama

get_application_envs

Retrieve environment variables for a specific application in Coolify to configure deployment settings and manage application behavior.

Instructions

Get environment variables for an application

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesApplication UUID

Implementation Reference

  • The core handler logic for the 'get_application_envs' tool within the handleTool function's switch statement. It validates the required 'uuid' parameter and fetches the application's environment variables from the Coolify API.
    case 'get_application_envs': requireParam(args, 'uuid'); return client.get(`/applications/${args.uuid}/envs`);
  • The JSON schema definition for the 'get_application_envs' tool, specifying the input parameters and validation rules.
    { name: 'get_application_envs', description: 'Get environment variables for an application', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' } }, required: ['uuid'] } },
  • src/index.ts:36-38 (registration)
    Registration of tool list handler in MCP server, which returns all tool definitions including 'get_application_envs' via getToolDefinitions().
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
  • src/index.ts:41-67 (registration)
    MCP server request handler for tool calls, which dispatches to handleTool including execution of 'get_application_envs'.
    this.server.setRequestHandler(CallToolRequestSchema, async (request) => { if (!this.client) { throw new McpError(ErrorCode.InternalError, 'Client not initialized'); } const { name, arguments: args } = request.params; // Block write operations in read-only mode if (isReadOnlyMode() && !READ_ONLY_TOOLS.includes(name)) { throw new McpError( ErrorCode.InvalidRequest, `Operation '${name}' is not allowed in read-only mode. Set COOLIFY_READONLY=false to enable write operations.` ); } try { const result = await handleTool(this.client, name, args || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { if (error instanceof McpError) throw error; const message = error instanceof Error ? error.message : 'Unknown error'; throw new McpError(ErrorCode.InternalError, `Tool execution failed: ${message}`); } });
  • Inclusion of 'get_application_envs' in READ_ONLY_TOOLS array, ensuring it's available in read-only mode.
    'get_application_envs',
Install Server

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