Skip to main content
Glama
prisma

Prisma MCP Server

Official
by prisma
_steps.ts1.3 kB
import { $ } from 'zx' import { executeSteps } from '../_utils/executeSteps' class ExpectedError extends Error {} void executeSteps({ setup: async () => { await $`pnpm install` }, test: async () => { // using `process.env['UNDEFINED_VARIABLE']` in `config.datasource.url` + `prisma generate` should succeed await $`pnpm prisma generate --config ./src/prisma.config.process-env.ts` // using `process.env['UNDEFINED_VARIABLE']` helper in `config.datasource.url` + `prisma db push` should fail try { await $`pnpm prisma db push --config ./src/prisma.config.process-env.ts` throw new ExpectedError('The command should have failed but it succeeded.') } catch (e: any) { console.error(e) if (e instanceof ExpectedError) { throw e } } // using `env('UNDEFINED_VARIABLE')` helper in `config.datasource.url` should fail try { await $`pnpm prisma generate --config ./src/prisma.config.using-env-helper.ts` throw new ExpectedError('The command should have failed but it succeeded.') } catch (e: any) { console.error(e) if (e instanceof ExpectedError) { throw e } } }, finish: async () => { await $`echo "done"` }, // keep: true, // keep docker open to debug it })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server