Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
setupQueryEngine.ts755 B
import { enginesVersion } from '@prisma/engines' import { BinaryPaths, download } from '@prisma/fetch-engine' import path from 'path' /** * Ensures the correct Query Engine (`node-api`/`binary`) is present. This is required as * normally the downloading of the required engine is done in `getGenerators`. As the test * clients bypass this we need to ensure the correct engine is present. */ export function setupQueryEngine(): Promise<BinaryPaths> { const engineDownloadDir = path.resolve(__dirname, '..', '..') return download({ binaries: { 'libquery-engine': engineDownloadDir, 'query-engine': engineDownloadDir, }, version: enginesVersion, }) } // TODO this might be duplicated in a few places, find a common place

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