Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
getCommandWithExecutor.ts525 B
import { isCurrentBinInstalledGlobally } from './isCurrentBinInstalledGlobally' export function getCommandWithExecutor(command: string): string { // if current prisma bin is from a global dir if (isCurrentBinInstalledGlobally()) { // do nothing! return command } else { // When running in npx, npm puts this package into a /_npx/ folder. Tested on Win, Mac, Linux const npxUsed = __dirname.includes('_npx') if (npxUsed) { return `npx ${command}` } else { return command } } }

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