Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,210
  • Linux
  • Apple
_steps.ts1.13 kB
import timers from 'node:timers/promises' import { $ } from 'zx' import { executeSteps } from '../_utils/executeSteps' import { retry } from '../_utils/retry' void executeSteps({ setup: async () => { await $`pnpm install` await $`pnpm prisma generate` }, test: async () => { const { stdout } = await retry(async () => { const wranglerProcess = $`pnpm wrangler dev --ip 127.0.0.1 --port 8787 src/index.ts`.nothrow() try { // wait for the server to be fully ready for await (const line of wranglerProcess.stdout) { if (line.includes('Ready')) break } await timers.setTimeout(100) return await $`curl http://localhost:8787/ -s` } finally { await wranglerProcess.kill() } }, 3) const expected = '{"Role":{"USER":"USER","ADMIN":"ADMIN"},"ModelName":{"User":"User","Post":"Post","Profile":"Profile"}}' if (!stdout.includes(expected)) { throw new Error('Expected to fetch the enum values') } else { console.log('Success!') } }, finish: async () => { await $`echo "done"` }, })

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