Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
max.test.ts634 B
import { maxBy, maxWithComparator } from './max' describe('maxWithComparator', () => { test('empty array', () => { expect(maxWithComparator([], () => 0)).toBe(undefined) }) test('with items', () => { const items = [{ count: 1 }, { count: 10 }, { count: 5 }] expect(maxWithComparator(items, (a, b) => a.count - b.count)).toBe(items[1]) }) }) describe('maxBy', () => { test('empty array', () => { expect(maxBy([], () => 1)).toBe(undefined) }) test('with items', () => { const items = [{ count: 1 }, { count: 10 }, { count: 5 }] expect(maxBy(items, (item) => item.count)).toBe(items[1]) }) })

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