Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
getMigrateConfigDir.ts368 B
import path from 'path' import type { ConfigMetaFormat } from '../engine-commands' export function getMigrateConfigDir(config: ConfigMetaFormat, schemaPath: string | undefined) { const sourcePath = config?.datasources?.[0]?.sourceFilePath if (sourcePath) { return path.dirname(sourcePath) } return schemaPath ? path.dirname(schemaPath) : process.cwd() }

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