Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
isCurrentBinInstalledGlobally.ts459 B
import fs from 'fs' import globalDirectories from 'global-directory' // returns if current prisma bin is installed globally export function isCurrentBinInstalledGlobally(): 'npm' | false { try { const realPrismaPath = fs.realpathSync(process.argv[1]) const usingGlobalNpm = realPrismaPath.indexOf(fs.realpathSync(globalDirectories.npm.packages)) === 0 if (usingGlobalNpm) { return 'npm' } } catch (e) { // } return false }

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