Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
runtime-targets.ts1.47 kB
export const supportedInternalRuntimes = ['nodejs', 'workerd', 'vercel-edge', 'deno', 'react-native'] as const const supportedPublicRuntimes = [ 'nodejs', 'deno', 'bun', 'workerd', 'cloudflare', 'vercel-edge', 'edge-light', 'react-native', ] as const /** * The user-facing `runtime` attribute for the `prisma-client` generator. */ export type RuntimeTarget = (typeof supportedPublicRuntimes)[number] /** * The internal representation of the `runtime` attribute for the `prisma-client` generator. */ export type RuntimeTargetInternal = (typeof supportedInternalRuntimes)[number] function parseRuntimeTarget(target: RuntimeTarget | (string & {})): RuntimeTargetInternal { switch (target.toLowerCase()) { case 'workerd': case 'cloudflare': return 'workerd' case 'edge-light': case 'vercel-edge': return 'vercel-edge' case 'nodejs': case 'bun': return 'nodejs' case 'deno': return 'deno' case 'react-native': return 'react-native' default: throw new Error( `Unknown target runtime: "${target}". The available options are: ${supportedPublicRuntimes .map((runtime) => `"${runtime}"`) .join(', ')}`, ) } } export function parseRuntimeTargetFromUnknown(target: unknown) { if (typeof target !== 'string') { throw new Error(`Invalid target runtime: ${JSON.stringify(target)}. Expected a string.`) } return parseRuntimeTarget(target) }

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