Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
tests.ts1.46 kB
import testMatrix from './_matrix' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient testMatrix.setupTestSuite(() => { // TODO: re-enable this or change it once we have decided the fix test.skip('int overflow', async () => { const promise = prisma.resource.create({ data: { number: 2265000000, }, }) await expect(promise).rejects.toMatchObject({ message: expect.stringContaining('Failed to validate the query'), code: 'P2009', }) await expect(promise).rejects.toMatchPrismaErrorInlineSnapshot(` Invalid \`prisma.resource.create()\` invocation in /client/tests/functional/issues/13913-integer-overflow/tests.ts:0:0 XX XX testMatrix.setupTestSuite(() => { XX test('int overflow', async () => { → XX const promise = prisma.resource.create( Failed to validate the query: \`Unable to match input value to any allowed input type for the field. Parse errors: [Query parsing/validation error at \`Mutation.createOneResource.data.ResourceCreateInput.number\`: Unable to fit integer value '2265000000' into a 32-bit signed integer for field 'number'., Query parsing/validation error at \`Mutation.createOneResource.data.ResourceUncheckedCreateInput.number\`: Unable to fit integer value '2265000000' into a 32-bit signed integer for field 'number'.]\` at \`Mutation.createOneResource.data\` `) }) })

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