Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
chmodPlusX.ts581 B
import Debug from '@prisma/debug' import fs from 'fs' const debug = Debug('chmodPlusX') export function chmodPlusX(file: string): void { // Note: skip for windows as chmod does on exist there // and will error with `EACCES: permission denied` if (process.platform === 'win32') return const s = fs.statSync(file) const newMode = s.mode | 64 | 8 | 1 if (s.mode === newMode) { debug(`Execution permissions of ${file} are fine`) return } const base8 = newMode.toString(8).slice(-3) debug(`Have to call chmodPlusX on ${file}`) fs.chmodSync(file, base8) }

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