Skip to main content
Glama

Prisma MCP Server

Official
by prisma
buildDebugInitialization.ts819 B
/** * Builds the code to initialize the `debug` package. * * The code running in the Edge Client entry point has access to `process.env` * if it's defined, but the code in the runtime bundle doesn't. Furthermore, in * some environments `DEBUG` may be defined as a global variable rather than * available in `process.env`. The entry point fetches the value of `DEBUG` and * passes into the `debug` package. * * @param edge Whether the edge runtime is used */ export function buildDebugInitialization(edge: boolean) { if (!edge) { return '' } const debugVar = `typeof globalThis !== 'undefined' && globalThis['DEBUG']` + ` || (typeof process !== 'undefined' && process.env && process.env.DEBUG)` + ` || undefined` return `\ if (${debugVar}) { runtime.Debug.enable(${debugVar}) } ` }

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