import type * as DMMF from '@prisma/dmmf'
import type { GetDMMFOptions } from '@prisma/internals'
import { getDMMF as getRawDMMF } from '@prisma/internals'
import { externalToInternalDmmf } from './externalToInternalDmmf'
export function getPrismaClientDMMF(dmmf: DMMF.Document): DMMF.Document {
return externalToInternalDmmf(dmmf)
}
// Mostly used for tests
export async function getDMMF(options: GetDMMFOptions): Promise<DMMF.Document> {
const dmmf = await getRawDMMF(options)
return getPrismaClientDMMF(dmmf)
}
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