Skip to main content
Glama
prisma

Prisma MCP Server

Official
by prisma
test.ts752 B
import { faker } from '@faker-js/faker' import { PrismaPg } from '@prisma/adapter-pg' import { createMemoryTest } from '../_utils/createMemoryTest' //@ts-ignore type PrismaModule = typeof import('./.generated/node_modules/@prisma/client') void createMemoryTest({ async prepare({ PrismaClient }: PrismaModule) { const client = new PrismaClient({ adapter: new PrismaPg({ connectionString: process.env.TEST_POSTGRES_URI }), }) await client.$connect() return client }, async run(client) { const data = Array.from({ length: 50 }, () => { return { email: faker.internet.email(), } }) await client.user.createMany({ data }) }, async cleanup(client) { await client.$disconnect() }, })

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