provision_neon_database
Create a serverless PostgreSQL database on Neon, apply schema files, and run migration commands using a Neon API key.
Instructions
Create a serverless PostgreSQL database on Neon. Supports schema application and migration commands. Requires a Neon API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | Neon API key (get from https://console.neon.tech/app/settings/api-keys) | |
| region | No | Region: aws-us-east-1, aws-us-west-2, aws-eu-central-1, aws-ap-southeast-1 | aws-us-east-1 |
| roleName | No | Database role name (default: app_user) | app_user |
| schemaFile | No | Path to SQL schema file to apply after creation | |
| projectName | Yes | Name for the Neon project | |
| databaseName | No | Name for the database (default: main) | main |
| migrationsCwd | No | Working directory for migration command | |
| runMigrations | No | Migration command to run (e.g., 'npx prisma migrate deploy') |