Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,213
  • Linux
  • Apple
path.ts1.26 kB
export function resolve(...args: any[]) { return args.join('/') } export function join(...args: any[]) { return args.join('/') } export function parse(path: string) { const base = basename(path) const dir = dirname(path) const [name, ext] = base.split('.') return { root: '/', dir, base, ext, name } } export function basename(path: string) { const parts = path.split('/') return parts[parts.length - 1] } export function dirname(path: string) { const parts = path.split('/') return parts.slice(0, -1).join('/') } export const sep = '/' export const delimiter = ':' export function normalize(path: string) { // Simple normalization - remove duplicate slashes and resolve . and .. const parts = path.split('/').filter((part) => part !== '' && part !== '.') const normalized: string[] = [] for (const part of parts) { if (part === '..') { normalized.pop() } else { normalized.push(part) } } const result = normalized.join('/') return path.startsWith('/') ? '/' + result : result } export const posix = { sep, } /** * A poor man's shim for the "path" module */ const path = { basename, delimiter, dirname, join, normalize, parse, posix, resolve, sep, } export default path

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