Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,231
  • Linux
  • Apple
tests.ts947 B
import { ClientEngineType } from '@prisma/internals' import { NewPrismaClient } from '../../_utils/types' import { defaultTestSuiteOptions } from '../_utils/test-suite-options' import testMatrix from './_matrix' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare const newPrismaClient: NewPrismaClient<PrismaClient, typeof PrismaClient> testMatrix.setupTestSuite( ({ engineType }) => { testIf(engineType === ClientEngineType.Binary)('throws if trying to use adapter with binary engine', () => { expect(() => { newPrismaClient({ // @ts-expect-error adapter: {}, }) }).toThrowErrorMatchingInlineSnapshot(` Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine. Read more at https://pris.ly/d/client-constructor `) }) }, { ...defaultTestSuiteOptions, skipDb: true, }, )

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