Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,231
  • Linux
  • Apple
checkMissingProviders.ts1.21 kB
import { getTestSuiteMeta, NamedTestSuiteConfig } from './getTestSuiteInfo' import { Providers } from './providers' import { MatrixOptions } from './types' export type TestSuiteMeta = ReturnType<typeof getTestSuiteMeta> /** * Ensure that we are not forgetting to add a provider to the matrix unless we * explicitly opt out during in the {@link setupTestSuiteMatrix} creation. * @param suiteConfigs * @param suiteMeta * @param options */ export function checkMissingProviders({ suiteConfigs, suiteMeta, options, }: { suiteConfigs: NamedTestSuiteConfig[] suiteMeta: TestSuiteMeta options?: MatrixOptions }) { const suiteConfigProviders = suiteConfigs.map(({ matrixOptions: { provider } }) => provider) const missingProviders = Object.values(Providers).reduce((acc, provider) => { if (suiteConfigProviders.includes(provider)) return acc if (options?.optOut?.from.includes(provider)) return acc return [...acc, provider] }, [] as Providers[]) if (missingProviders.length) { throw new Error( `Test: '${suiteMeta.testName}' is missing providers '${missingProviders .map((x) => `'${x}'`) .join(', ')}' out out using options.optOut`, ) } }

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