Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
ExportFrom.test.ts1.19 kB
import { expect, test } from 'vitest' import { moduleExportFrom, namedExport } from './ExportFrom' import { stringify } from './stringify' test('module name only', () => { expect(stringify(moduleExportFrom('someModule'))).toMatchInlineSnapshot(`"export * from "someModule""`) }) test('namespace', () => { const exportDecl = moduleExportFrom('myModule').asNamespace('ns') expect(stringify(exportDecl)).toMatchInlineSnapshot(`"export * as ns from 'myModule'"`) }) test('named', () => { const exportDecl = moduleExportFrom('myModule').named('func') expect(stringify(exportDecl)).toMatchInlineSnapshot(`"export { func } from "myModule""`) }) test('named with alias', () => { const exportDecl = moduleExportFrom('myModule').named(namedExport('func').as('myFunc')) expect(stringify(exportDecl)).toMatchInlineSnapshot(`"export { func as myFunc } from "myModule""`) }) test('multiple named', () => { const exportDecl = moduleExportFrom('myModule') .named('func1') .named('func2') .named(namedExport('func3').as('aliasedFunc3')) expect(stringify(exportDecl)).toMatchInlineSnapshot( `"export { func1, func2, func3 as aliasedFunc3 } from "myModule""`, ) })

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