Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
formatTable.ts608 B
function slugify(str: string): string { return str.toString().toLowerCase().replace(/\s+/g, '-') } type FormatTableOptions = { json?: boolean } export function formatTable(rows: string[][], options = { json: false } as FormatTableOptions): string { if (options.json) { const result = rows.reduce((acc, [name, value]) => { acc[slugify(name)] = value return acc }, {}) return JSON.stringify(result, null, 2) } const maxPad = rows.reduce((acc, curr) => Math.max(acc, curr[0].length), 0) return rows.map(([left, right]) => `${left.padEnd(maxPad)} : ${right}`).join('\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