Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
compileFile.ts691 B
import path from 'node:path' import { execaNode } from 'execa' type CompileFileOptions = { /** * Whether the TypeScript compiler should be isolated in a separate worker process. */ isolateCompiler?: boolean } /** * Compiles a single file without emitting the output. * Throws on compilation errors. */ export async function compileFile( filePath: string, { isolateCompiler = true }: CompileFileOptions = {}, ): Promise<void> { const workerPath = path.resolve(__dirname, 'compilerWorker.js') if (isolateCompiler) { await execaNode(workerPath, [filePath]) } else { const compile = require(workerPath) as (filePath: string) => void compile(filePath) } }

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