Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
copy-prisma-client.ts790 B
import { copySync } from 'fs-extra' import packlist from 'npm-packlist' import path from 'path' export async function copyPrismaClient() { // that's where we want to copy the local client for @prisma/studio const clientCopyPath = path.join(__dirname, '..', 'prisma-client') // we resolve where the client is located via our own dependencies const clientPath = path.dirname(require.resolve('@prisma/client/package.json')) const clientFiles = await packlist({ path: clientPath }) // we copy each file that we found in pkg to a new destination for (const file of clientFiles) { if (file.includes('wasm') === false) { const from = path.join(clientPath, file) const to = path.join(clientCopyPath, file) copySync(from, to, { overwrite: true }) } } }

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