Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
planetscale.test.ts655 B
import * as planetScale from '@planetscale/database' import { describe, expect, test, vi } from 'vitest' import { PrismaPlanetScaleAdapterFactory } from './planetscale' describe('behavior of PrismaPlanetScaleAdapterFactory', () => { test('uses the provided adapter instance', async () => { const inst = new planetScale.Client({}) const factory = new PrismaPlanetScaleAdapterFactory(inst) const spy = vi.spyOn(inst, 'execute') const adapter = await factory.connect() await adapter.queryRaw({ sql: 'SELECT 1', argTypes: [], args: [] }).catch(() => {}) expect(spy).toHaveBeenCalledWith('SELECT 1', [], expect.anything()) }) })

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