Skip to main content
Glama

Prisma MCP Server

Official
by prisma
configs.ts1.23 kB
import path from 'node:path' import { BuildOptions } from './build' type AdapterEntry = { entry: string outfile: string } export function createAdapterConfig(entries: AdapterEntry[]): BuildOptions[] { return entries.flatMap(({ entry, outfile }) => { const baseName = path.basename(outfile) return [ { name: `${baseName}-cjs`, format: 'cjs' as const, bundle: true, entryPoints: [entry], outfile, outExtension: { '.js': '.js' }, emitTypes: true, }, { name: `${baseName}-esm`, format: 'esm' as const, bundle: true, entryPoints: [entry], outfile, outExtension: { '.js': '.mjs' }, emitTypes: true, }, ] }) } export const adapterConfig = createAdapterConfig([{ entry: 'src/index.ts', outfile: 'dist/index' }]) export const unbundledConfig: BuildOptions[] = [ { name: 'cjs', format: 'cjs', entryPoints: ['src/**/*.ts'], outdir: 'dist', outExtension: { '.js': '.js' }, emitTypes: true, }, { name: 'esm', format: 'esm', entryPoints: ['src/**/*.ts'], outdir: 'dist', outExtension: { '.js': '.mjs' }, emitTypes: true, }, ]

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