Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,181
  • Linux
  • Apple
imports-from-same-directory.ts1.2 kB
import { ESLintUtils, TSESTree } from '@typescript-eslint/utils' // Add files to this list only if there is no other option. // Almost always this should be third-party libraries. // In case of first-party code, prefer to move it into correct location const allowList = new Set(['sql-template-tag', '@prisma/client-common', '@prisma/generator', 'decimal.js']) export default ESLintUtils.RuleCreator.withoutDocs({ defaultOptions: [], meta: { messages: { notAllowedImport: 'Files in ./types/exported are allowed to import only from other files in ./types/exported', }, schema: [], type: 'problem', }, create(context) { const checkImport = ( node: TSESTree.ImportDeclaration | TSESTree.ExportAllDeclaration | TSESTree.ExportNamedDeclaration, ) => { if (!node.source) { return } if (!node.source.value.startsWith('./') && !allowList.has(node.source.value)) { context.report({ messageId: 'notAllowedImport', node: node.source, }) } } return { ImportDeclaration: checkImport, ExportAllDeclaration: checkImport, ExportNamedDeclaration: checkImport, } }, })

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