Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
realFsResolver.ts682 B
import fs from 'fs-extra' import { FilesResolver, FsEntryType } from './types' export const realFsResolver: FilesResolver = { listDirContents(path: string): Promise<string[]> { return fs.readdir(path) }, async getEntryType(path: string): Promise<FsEntryType> { const stat = await fs.lstat(path) if (stat.isFile()) { return { kind: 'file' } } if (stat.isDirectory()) { return { kind: 'directory' } } if (stat.isSymbolicLink()) { return { kind: 'symlink', realPath: await fs.realpath(path) } } return { kind: 'other' } }, getFileContents(path: string): Promise<string> { return fs.readFile(path, 'utf8') }, }

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