Skip to main content
Glama
deleonio
by deleonio
proto-path.ts525 B
import { existsSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; const resolveProtoPath = () => { const candidates = ['./proto/render.proto', '../proto/render.proto']; for (const candidate of candidates) { const url = new URL(candidate, import.meta.url); const path = fileURLToPath(url); if (existsSync(path)) { return path; } } const fallbackUrl = new URL('./proto/render.proto', import.meta.url); return fileURLToPath(fallbackUrl); }; export const hydrateProtoPath = resolveProtoPath();

Latest Blog Posts

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/deleonio/public-ui-kolibri'

If you have feedback or need assistance with the MCP directory API, please join our Discord server