Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
esmSplitCodeToCjs.ts704 B
import * as esbuild from 'esbuild' /** * Code splitting only works in ESM at the moment, this plugin will convert the * ESM code to CJS automatically after the build. Only works with `outdir` set. */ export const esmSplitCodeToCjs: esbuild.Plugin = { name: 'esmSplitCodeToCjs', setup(build) { build.onEnd(async (result) => { const outFiles = Object.keys(result.metafile?.outputs ?? {}) const jsFiles = outFiles.filter((f) => f.endsWith('js')) await esbuild.build({ outdir: build.initialOptions.outdir, entryPoints: jsFiles, allowOverwrite: true, format: 'cjs', logLevel: 'error', packages: 'external', }) }) }, }

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