Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
tests.ts984 B
// @ts-ignore import testMatrix from './_matrix' import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient testMatrix.setupTestSuite( () => { beforeAll(async () => { await prisma.thing.create({ data: { serialNumber: '12345', amount: 0, }, }) }) test('does not truncate the input', async () => { const result = await prisma.thing.findFirstOrThrow() expect(result.serialNumber).toBe('12345') }) test('upsert', async () => { const result = await prisma.thing.upsert({ where: { serialNumber: '12345' }, update: { amount: 1 }, create: { serialNumber: '12345', amount: 10 }, }) expect(result).toEqual({ id: expect.any(String), serialNumber: '12345', amount: 1, }) }) }, { optOut: { from: ['mongodb', 'sqlite'], reason: '@db.Char is not supported on mongo', }, }, )

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