Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
now.ts1.03 kB
const prefixZero = (value: number): string => ('0' + value).slice(-2) export function now(): string { const now = new Date() return `${now.getFullYear()}${prefixZero(now.getMonth() + 1)}${prefixZero(now.getDate())}${prefixZero( now.getHours(), )}${prefixZero(now.getMinutes())}${prefixZero(now.getSeconds())}` } export function timestampToDate(timestamp: string): Date | undefined { if (!timestamp || timestamp.length !== 14) { return undefined } const year = Number(timestamp.slice(0, 4)) const month = Number(timestamp.slice(4, 6)) const date = Number(timestamp.slice(6, 8)) const hours = Number(timestamp.slice(8, 10)) const minutes = Number(timestamp.slice(10, 12)) const seconds = Number(timestamp.slice(12, 14)) return new Date(year, month - 1, date, hours, minutes, seconds) } export function renderDate(date: Date): string { if (date.getDate() !== new Date().getDate()) { return date.toLocaleDateString() + ' ' + date.toLocaleTimeString() } return date.toLocaleTimeString() }

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