Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,231
  • Linux
  • Apple
tests.ts722 B
import { expectTypeOf } from 'expect-type' import testMatrix from './_matrix' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient testMatrix.setupTestSuite(() => { test('allows to use models of conflicting names', async () => { await prisma.model.create({ data: { other: { create: { name: 'Other type' }, }, }, }) const value = await prisma.model.findFirstOrThrow({ include: { other: true } }) expect(value.other).toMatchObject({ id: expect.any(String), name: 'Other type' }) expectTypeOf(value.other).not.toBeAny() expectTypeOf(value.other).toMatchTypeOf<{ name: string; id: string }>() }) })

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