Skip to main content
Glama
generate-version.js581 B
// scripts/generate-version.js import { readFileSync, writeFileSync } from 'fs'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const packageJson = JSON.parse( readFileSync(join(__dirname, '../package.json'), 'utf8') ); const content = `// Generated file - do not edit export const VERSION = '${packageJson.version}'; `; writeFileSync(join(__dirname, '../src/version.ts'), content); console.log(`Generated version.ts with version ${packageJson.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/xiyuefox/mcp-hfspace'

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