Skip to main content
Glama
generate-version.cjs522 B
const { readFileSync, writeFileSync } = require('fs'); const { resolve } = require('path'); const pkgPath = resolve(__dirname, '../package.json'); const outPath = resolve(__dirname, '../src/version.ts'); const pkg = JSON.parse(readFileSync(pkgPath, 'utf8')); const version = pkg.version || '0.0.0'; const content = `// This file is generated. Do not edit manually.\nexport const VERSION = ${JSON.stringify(version)};\n`; writeFileSync(outPath, content, 'utf8'); console.log(`Wrote ${outPath} with VERSION=${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/tomtom-international/tomtom-mcp'

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