Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
printIntrospectedSchema.ts560 B
import { MigrateTypes } from '@prisma/internals' import path from 'path' import { Writable } from 'stream' export function printIntrospectedSchema(schema: MigrateTypes.SchemasContainer, out: Writable) { if (schema.files.length === 1) { out.write(schema.files[0].content + '\n') return } // produce stable results const sortedFiles = schema.files.sort((a, b) => a.path.localeCompare(b.path)) for (const file of sortedFiles) { const relPath = path.relative(process.cwd(), file.path) out.write(`// ${relPath}\n${file.content}\n`) } }

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