Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
PrismaInstrumentation.test.ts928 B
import { describe, expect, test } from 'vitest' import { GLOBAL_INSTRUMENTATION_ACCESSOR_KEY, GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY } from '../constants' import { PrismaInstrumentation } from '../PrismaInstrumentation' describe('PrismaInstrumentation', () => { const instance = new PrismaInstrumentation() test('should set helper global accessor key when enabled', () => { instance.enable() expect(global[GLOBAL_INSTRUMENTATION_ACCESSOR_KEY]?.helper).toBeDefined() expect(global[GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY].helper).toBeDefined() }) test('should return when calling isEnabled', () => { expect(instance.isEnabled()).toEqual(true) }) test('should disable setting global var', () => { instance.disable() expect(global[GLOBAL_INSTRUMENTATION_ACCESSOR_KEY]).toBeUndefined() expect(global[GLOBAL_VERSIONED_INSTRUMENTATION_ACCESSOR_KEY]).toBeUndefined() }) })

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