Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
common.ts930 B
import type * as DMMF from '@prisma/dmmf' export const needNamespace = { Json: 'JsonValue', Decimal: 'Decimal', Bytes: 'Bytes', } export function needsNamespace(field: DMMF.Field): boolean { if (field.kind === 'object') { return true } if (field.kind === 'scalar') { return field.type === 'Json' || field.type === 'Decimal' || field.type === 'Bytes' } return false } export const GraphQLScalarToJSTypeTable = { String: 'string', Int: 'number', Float: 'number', Boolean: 'boolean', Long: 'number', DateTime: ['Date', 'string'], ID: 'string', UUID: 'string', Json: 'JsonValue', Bytes: 'Bytes', Decimal: ['Decimal', 'DecimalJsLike', 'number', 'string'], BigInt: ['bigint', 'number'], } export const JSOutputTypeToInputType = { JsonValue: 'InputJsonValue', } export const JSTypeToGraphQLType = { string: 'String', boolean: 'Boolean', object: 'Json', symbol: 'Symbol', }

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