import * as ts from '@prisma/ts-builders'
// @ts-ignore This doesn't currently work at build time when we don't have the `paths` set in `tsconfig.json`.
// Adding `@prisma/client` as a dev dependency leads to circular dependency issues.
// TODO: figure out if we can reuse the runtime types without moving all of them to the common package.
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
type RuntimeExport = keyof typeof import('@prisma/client/runtime/client') & string
export function runtimeImportedType(name: RuntimeExport): ts.NamedType {
return ts.namedType(`runtime.${name}`)
}
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