Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
maskSchema.ts801 B
import { MultipleSchemas } from './schemaFileInput' export function maskSchemas(schemas: MultipleSchemas): MultipleSchemas { return schemas.map(([path, content]) => [path, maskSchema(content)]) } export function maskSchema(schema: string): string { const regex = /url\s*=\s*.+/ return schema .split('\n') .map((line) => { const match = regex.exec(line) if (match) { return `${line.slice(0, match.index)}url = "***"` } return line }) .join('\n') } export function mapScalarValues(obj: any, mapper: (value: any) => any): {} { const result = {} for (const key in obj) { if (typeof obj[key] === 'object') { result[key] = mapScalarValues(obj[key], mapper) } else { result[key] = mapper(obj[key]) } } return result }

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