get_private_key
Retrieve a private key using its UUID to manage Coolify PaaS instances, enabling secure access for application deployment and server operations.
Instructions
Get a private key by UUID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Private key UUID |
Implementation Reference
- src/tools/handlers.ts:448-450 (handler)The core handler logic for the 'get_private_key' tool. It validates the presence of the 'uuid' parameter and calls the CoolifyClient to fetch the private key details from the API endpoint `/security/keys/{uuid}`.case 'get_private_key': requireParam(args, 'uuid'); return client.get(`/security/keys/${args.uuid}`);
- src/tools/definitions.ts:637-645 (schema)The input schema definition and metadata for the 'get_private_key' tool, specifying that a 'uuid' string parameter is required.{ name: 'get_private_key', description: 'Get a private key by UUID', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Private key UUID' } }, required: ['uuid'] } },
- src/index.ts:37-37 (registration)The MCP server registers all tools, including 'get_private_key', by returning the tool definitions (schemas) in response to ListTools requests.tools: getToolDefinitions()
- src/index.ts:57-57 (registration)The MCP server dispatches tool calls to the shared handleTool function, which routes 'get_private_key' to its specific case handler.const result = await handleTool(this.client, name, args || {});
- src/tools/handlers.ts:504-508 (helper)Generic helper function used by the 'get_private_key' handler to validate required parameters.function requireParam(args: ToolArgs, param: string): void { if (!args[param]) { throw new McpError(ErrorCode.InvalidParams, `${param} is required`); } }