Skip to main content
Glama

Prisma MCP Server

Official
by prisma
auth-client.ts684 B
import { login, refreshToken } from './auth' import { createManagementApiClient } from './client' import { loadCredentials, saveCredentials } from './credentials' // TODO: it should take a credential storage as an argument // and not hardcode `loadCredentials`/`saveCredentials` functions. export async function createAuthenticatedManagementApiClient() { let authResult = (await loadCredentials()) ?? (await login()) const tokenRefreshHandler = async () => { authResult = await refreshToken(authResult.refreshToken) await saveCredentials(authResult) return { token: authResult.token } } return createManagementApiClient(authResult.token, tokenRefreshHandler) }

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