create_private_key
Generate a new SSH private key for secure authentication with Coolify PaaS instances, enabling deployment and management operations.
Instructions
Create a new SSH private key
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Key name | |
| description | No | Key description | |
| private_key | Yes | Private key content (PEM format) |
Implementation Reference
- src/tools/handlers.ts:443-446 (handler)The switch case handler that validates input parameters and calls the Coolify API to create a new SSH private key.case 'create_private_key': requireParam(args, 'name'); requireParam(args, 'private_key'); return client.post('/security/keys', args);
- src/tools/definitions.ts:624-636 (schema)MCP tool definition including name, description, and input schema for validation. This object is returned by getToolDefinitions() and registered with the MCP server.{ name: 'create_private_key', description: 'Create a new SSH private key', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Key name' }, description: { type: 'string', description: 'Key description' }, private_key: { type: 'string', description: 'Private key content (PEM format)' } }, required: ['name', 'private_key'] } },
- src/types.ts:158-162 (schema)TypeScript interface defining the expected input shape for create_private_key tool, matching the JSON schema.export interface CreatePrivateKeyInput { name: string; description?: string; private_key: string; }