Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
GenericParameter.test.ts723 B
import { expect, test } from 'vitest' import { genericParameter } from './GenericParameter' import { namedType } from './NamedType' import { stringify } from './stringify' const A = namedType('A') const B = namedType('B') test('name only', () => { expect(stringify(genericParameter('T'))).toMatchInlineSnapshot(`"T"`) }) test('with extends', () => { expect(stringify(genericParameter('T').extends(A))).toMatchInlineSnapshot(`"T extends A"`) }) test('with default', () => { expect(stringify(genericParameter('T').default(B))).toMatchInlineSnapshot(`"T = B"`) }) test('with extends + default', () => { expect(stringify(genericParameter('T').extends(A).default(B))).toMatchInlineSnapshot(`"T extends A = B"`) })

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