Skip to main content
Glama
platform.js1.17 kB
"use strict"; function detectLibc() { const override = process.env.DOCDEX_LIBC; if (override) { const libc = override.toLowerCase(); if (libc === "musl" || libc === "gnu") { return libc; } } const report = typeof process.report?.getReport === "function" ? process.report.getReport() : null; const glibcVersion = report?.header?.glibcVersionRuntime; return glibcVersion ? "gnu" : "musl"; } function detectPlatformKey() { const platform = process.platform; const arch = process.arch; if (platform === "darwin") { if (arch === "arm64") return "darwin-arm64"; if (arch === "x64") return "darwin-x64"; } if (platform === "linux") { const libc = detectLibc(); if (arch === "arm64") return `linux-arm64-${libc}`; if (arch === "x64") return `linux-x64-${libc}`; } if (platform === "win32") { if (arch === "x64") return "win32-x64"; if (arch === "arm64") return "win32-arm64"; } throw new Error(`Unsupported platform: ${platform}/${arch}`); } function artifactName(platformKey) { return `docdexd-${platformKey}.tar.gz`; } module.exports = { detectLibc, detectPlatformKey, artifactName };

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/bekirdag/docdex'

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