Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
getHardcodedUrlWarning.ts476 B
import { DataSource } from '@prisma/generator' import { link } from '@prisma/internals' export function getHardcodedUrlWarning(datasource: DataSource | undefined) { if ( datasource !== undefined && datasource.provider !== 'sqlite' && (datasource.url.fromEnvVar === null || datasource.directUrl?.fromEnvVar === null) ) { return `\n🛑 Hardcoding URLs in your schema poses a security risk: ${link('https://pris.ly/d/datasource-env')}\n` } return '' }

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