import { readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Current package version so I only need to update it in one place
const { version } = JSON.parse(
readFileSync(join(__dirname, "../../package.json"), "utf-8"),
);
export function getVersion() {
return version;
}
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/launchthatbrand/mcp-graphql'
If you have feedback or need assistance with the MCP directory API, please join our Discord server