Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
decimal-small.ts694 B
import DecimalLight from 'decimal.js-light/decimal.mjs' class Decimal extends DecimalLight { static isDecimal(value: any): boolean { return value instanceof DecimalLight } static random(sd = 20): Decimal { if ( TARGET_BUILD_TYPE === 'wasm-engine-edge' || TARGET_BUILD_TYPE === 'wasm-compiler-edge' || TARGET_BUILD_TYPE === 'edge' ) { const bytes = globalThis.crypto.getRandomValues(new Uint8Array(sd)) const result = bytes.reduce((acc, byte) => acc + byte, '') return new DecimalLight(`0.${result.slice(0, sd)}`) } else { throw new Error('Not implemented for Node.js yet') } } } export default Decimal export { Decimal }

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