Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
binaryTargetRegex.ts589 B
import escapeString from 'escape-string-regexp' import { binaryTargets } from '../binaryTargets' /** * This regex matches all supported binary target names in a given string. * * Platform names are sorted by their lengths in descending order to ensure that * the longest substring is always matched (e.g., "darwin-arm64" is matched as a * whole instead of "darwin" and "arm" separately) */ export const binaryTargetRegex = new RegExp( '(' + [...binaryTargets] .sort((a, b) => b.length - a.length) .map((p) => escapeString(p)) .join('|') + ')', 'g', )

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