import path from 'node:path'
// This function ensures that PSL errors pointing to an absolute schema path
// display a relative path (w.r.t. the current working directory) instead.
// This can potentially be replaced by https://github.com/prisma/team-orm/issues/1127.
export function relativizePathInPSLError(error: string): string {
return error.replaceAll(process.cwd() + path.sep, '')
}
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