execute_command
Execute commands directly within application containers on Coolify self-hosted PaaS instances to manage deployments, perform operations, and troubleshoot applications.
Instructions
Execute a command in an application container. NOTE: This endpoint is not available in Coolify API and will return an error.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Application UUID | |
| command | Yes | Command to execute | |
| confirm | No | Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true) |
Implementation Reference
- src/tools/handlers.ts:247-251 (handler)The handler implementation for the 'execute_command' tool. It validates required parameters 'uuid' and 'command', but returns an error message indicating that this feature is not supported by the Coolify API.case 'execute_command': requireParam(args, 'uuid'); requireParam(args, 'command'); // This endpoint doesn't exist in Coolify API return { error: 'Execute command endpoint is not available in Coolify API. This feature is not supported via the API.' };
- src/tools/definitions.ts:475-487 (schema)MCP tool definition for 'execute_command' including name, description, and detailed inputSchema used for validation and tool listing.{ name: 'execute_command', description: 'Execute a command in an application container. NOTE: This endpoint is not available in Coolify API and will return an error.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' }, command: { type: 'string', description: 'Command to execute' }, confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' } }, required: ['uuid', 'command'] } },
- src/types.ts:164-167 (schema)TypeScript interface defining the input parameters for the execute_command tool.export interface ExecuteCommandInput { uuid: string; command: string; }
- src/tools/definitions.ts:53-54 (helper)'execute_command' is listed as a dangerous operation requiring confirmation.'deploy', 'execute_command',
- src/tools/definitions.ts:76-76 (helper)Danger warning message for the execute_command tool.execute_command: 'This will execute a command inside the application container.',
- src/index.ts:36-38 (registration)Registration of tool listing handler which includes 'execute_command' via getToolDefinitions() from definitions.ts.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));