for developers
Builder can leverage multiple external tools when designing your Project with Fusion. All integrations can be access on the Integrations page.
Prisma is a Postgres foundation that allows you to spin up a production-ready Postgres database in seconds. Once you've connected Prisma's MCP server to Builder, Fusion will be able to work with your database to structure queries and retrieve data.
To connect Prisma to Builder:
- Go to MCP servers.
- On the Prisma tile, click + Connect.
- In the modal that opens, click the Connect To Prisma button.
- Login to the service and, when Builder requests access, click the Authorize button.
The video below shows connecting the Prisma MCP within a Fusion Space.
To gain access to your Prisma database, you need a connection string. To get a connection string from your Prisma project:
- Within a Prisma Project, click the Connect button under the Connect to your database heading.
- Click the Generate database credentials button on the next page.
- Click the Copy button next to the generated environment variable.
- Return to Fusion and click the three dots above a Project and then open your Project's Settings.
- Click the Add Environment Variable button.
- Paste your database credentials within the Key field.
The environment variable DATABASE_URL must be referenced within your codebase in order for database features to work. You can manually integrate this functionality or ask Fusion to do it for you.