Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
loadConfig.test.ts765 B
import path from 'node:path' import { jestContext } from '@prisma/get-platform' import { HelpError } from '@prisma/internals' import { loadConfig } from './loadConfig' const ctx = jestContext.new().assemble() describe('loadConfig', () => { it('provides default config if no file config is found', async () => { const result = await loadConfig() expect(result).toMatchObject({ config: { loadedFromFile: null, }, diagnostics: [], }) }) it('returns formatted HelpError if config file loading failed', async () => { const config = await loadConfig('./does/not/exist.ts') expect(config).toEqual( new HelpError(`Config file not found at "${path.join(ctx.fs.cwd(), './does/not/exist.ts')}"`), ) }) })

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