Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,231
  • Linux
  • Apple
tests.ts1.06 kB
// @ts-ignore import { NewPrismaClient } from '../_utils/types' import testMatrix from './_matrix' import type { PrismaClient } from './generated/prisma/client' declare const newPrismaClient: NewPrismaClient<PrismaClient, typeof PrismaClient> const TIMEOUT = 60_000 testMatrix.setupTestSuite( () => { const oldConsoleWarn = console.warn const warnings: any[] = [] beforeAll(() => { jest.resetModules() console.warn = (args) => { warnings.push(args) } }) afterAll(() => { console.warn = oldConsoleWarn }) test( 'should not console warn when spawning too many instances of PrismaClient', async () => { for (let i = 0; i < 15; i++) { const client = newPrismaClient() await client.$connect() } expect(warnings.join('')).toMatchInlineSnapshot(`""`) }, TIMEOUT, ) }, { skipDataProxy: { runtimes: ['node', 'edge'], reason: '"Too many instances" warning is not implemented for Data Proxy client', }, }, )

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