Skip to main content
Glama

Prisma MCP Server

Official
by prisma
getEngineVersion.ts672 B
import { BinaryType } from '@prisma/fetch-engine' import { execa } from 'execa' import * as TE from 'fp-ts/TaskEither' import { resolveBinary } from '../resolveBinary' export async function getEngineVersion(enginePath?: string, binaryName?: BinaryType): Promise<string> { enginePath = await resolveBinary(binaryName ?? BinaryType.SchemaEngineBinary, enginePath) const { stdout } = await execa(enginePath, ['--version']) return stdout } export function safeGetEngineVersion(enginePath?: string, binaryName?: BinaryType): TE.TaskEither<Error, string> { return TE.tryCatch( () => getEngineVersion(enginePath, binaryName), (error) => error as Error, ) }

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