Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
regions.ts1.01 kB
import { requestOrThrow } from '../_lib/pdp' export const getRegionsOrThrow = async (input: { token: string }) => { const { token } = input const { system } = await requestOrThrow<{ system: { accelerate: { regions: { id: string displayName: string ppgStatus: 'available' | 'unavailable' | 'unsupported' }[] } } }>({ token, body: { query: /* GraphQL */ ` query { system { accelerate { regions { id displayName ppgStatus } } } } `, }, }) return system.accelerate.regions } export const getPrismaPostgresRegionsOrThrow = async (input: { token: string }) => { const regions = await getRegionsOrThrow(input) const ppgRegions = regions .filter((_) => _.ppgStatus !== 'unsupported') .sort((a, b) => b.displayName.localeCompare(a.displayName)) return ppgRegions }

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