Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
fixBinaryTargets.ts879 B
import { BinaryTargetsEnvValue } from '@prisma/generator' import { BinaryTarget } from '@prisma/get-platform' // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents function transformBinaryTargetToEnvValue(binaryTarget: BinaryTarget | string): BinaryTargetsEnvValue { return { fromEnvVar: null, value: binaryTarget } } export function fixBinaryTargets( schemaBinaryTargets: BinaryTargetsEnvValue[], // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents runtimeBinaryTarget: BinaryTarget | string, ): BinaryTargetsEnvValue[] { schemaBinaryTargets = schemaBinaryTargets || [] if (!schemaBinaryTargets.find((object) => object.native === true)) { return [transformBinaryTargetToEnvValue('native'), ...schemaBinaryTargets] } return [...schemaBinaryTargets, transformBinaryTargetToEnvValue(runtimeBinaryTarget)] }

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