Skip to main content
Glama
prisma

Prisma MCP Server

Official
by prisma
index.ts2.07 kB
export type JsonQuery = { modelName?: string action: JsonQueryAction query: JsonFieldSelection } export type JsonBatchQuery = { batch: JsonQuery[] transaction?: { isolationLevel?: IsolationLevel } } export type IsolationLevel = 'ReadUncommitted' | 'ReadCommitted' | 'RepeatableRead' | 'Snapshot' | 'Serializable' export type JsonQueryAction = | 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'updateManyAndReturn' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw' export type JsonFieldSelection = { arguments?: Record<string, JsonArgumentValue> | RawTaggedValue selection: JsonSelectionSet } export type JsonSelectionSet = { $scalars?: boolean $composites?: boolean } & { [fieldName: string]: boolean | JsonFieldSelection } export type JsonArgumentValue = | number | string | boolean | null | RawTaggedValue | JsonArgumentValue[] | { [key: string]: JsonArgumentValue } export type DateTaggedValue = { $type: 'DateTime'; value: string } export type DecimalTaggedValue = { $type: 'Decimal'; value: string } export type BytesTaggedValue = { $type: 'Bytes'; value: string } export type BigIntTaggedValue = { $type: 'BigInt'; value: string } export type FieldRefTaggedValue = { $type: 'FieldRef'; value: { _ref: string; _container: string } } export type EnumTaggedValue = { $type: 'Enum'; value: string } export type JsonTaggedValue = { $type: 'Json'; value: string } export type RawTaggedValue = { $type: 'Raw'; value: unknown } export type JsonInputTaggedValue = | DateTaggedValue | DecimalTaggedValue | BytesTaggedValue | BigIntTaggedValue | FieldRefTaggedValue | JsonTaggedValue | EnumTaggedValue | RawTaggedValue export type JsonOutputTaggedValue = | DateTaggedValue | DecimalTaggedValue | BytesTaggedValue | BigIntTaggedValue | JsonTaggedValue

Latest Blog Posts

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