Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
index.ts671 B
import { expectTypeOf } from 'expect-type' import { PrismaClient } from '../prisma/client' import { PrismaClient as PrismaClientEdge } from '../prisma/client/edge' // we only use this to test the types // eslint-disable-next-line @typescript-eslint/no-unused-vars async function main() { const prisma = new PrismaClient() const prismaEdge = new PrismaClientEdge() const user = await prisma.user.create({ data: { email: 'john@doe.io' }, }) const userEdge = await prismaEdge.user.create({ data: { email: 'john@doe.io' }, }) expectTypeOf(user).toHaveProperty('email').not.toBeAny() expectTypeOf(userEdge).toHaveProperty('email').not.toBeAny() }

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