Skip to main content
Glama

Prisma MCP Server

Official
by prisma
_steps.ts905 B
import { $ } from 'zx' import { executeSteps } from '../_utils/executeSteps' void executeSteps({ setup: async () => { await $`pnpm install` await $`pnpm prisma generate` }, test: async () => { const wranglerProcess = $`pnpm wrangler dev --ip 127.0.0.1 --port 8787 src/index.ts`.nothrow() // wait for the server to be fully ready for await (const line of wranglerProcess.stdout) { if (line.includes('Ready')) break } const { stdout } = await $`curl http://localhost:8787/ -s`.nothrow() 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!') } await wranglerProcess.kill() }, 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