Skip to main content
Glama

Prisma MCP Server

Official
by prisma
index.ts1.2 kB
import { Debug } from '@prisma/debug' import { enginesVersion } from '@prisma/engines-version' import type { BinaryPaths, DownloadOptions } from '@prisma/fetch-engine' import { BinaryType } from '@prisma/fetch-engine' import type { BinaryTarget } from '@prisma/get-platform' import path from 'path' const debug = Debug('prisma:engines') export function getEnginesPath() { return path.join(__dirname, '../') } type EnsureSomeBinariesExistInput = { download: (options: DownloadOptions) => Promise<BinaryPaths> } export async function ensureNeededBinariesExist({ download }: EnsureSomeBinariesExistInput) { const binaryDir = path.join(__dirname, '../') const binaries = { [BinaryType.SchemaEngineBinary]: binaryDir, } satisfies Record<BinaryType, string> debug(`binaries to download ${Object.keys(binaries).join(', ')}`) const binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS ? (process.env.PRISMA_CLI_BINARY_TARGETS.split(',') as BinaryTarget[]) : undefined await download({ binaries: binaries, showProgress: true, version: enginesVersion, failSilent: false, binaryTargets, }) } export { enginesVersion } from '@prisma/engines-version'

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