Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,216
  • Linux
  • Apple
tests.ts717 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('attempt to use $metrics a compile-time error', () => { // TODO: this is always an error in the editor. Maybe we need to generate // schema-dependent client types somehow expectTypeOf(prisma).not.toHaveProperty('$metrics') }) test('attempt to use $metrics a run-time error', () => { expect(() => (prisma as any).$metrics.json()).toThrowErrorMatchingInlineSnapshot( `"\`metrics\` preview feature must be enabled in order to access metrics API"`, ) }) })

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