Skip to main content
Glama

Discogs MCP Server

by cswkim
check-version.js830 B
import { readFileSync } from 'fs'; import { dirname, join } from 'path'; import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Manually read package.json const pkgPath = join(__dirname, '../../package.json'); const pkg = JSON.parse(readFileSync(pkgPath, 'utf8')); const expectedVersion = pkg.version; // Read version.ts and compare const versionTs = readFileSync(join(__dirname, '../../src/version.ts'), 'utf8'); const match = versionTs.match(/VERSION\s*=\s*['"`](.*?)['"`]/); if (!match || match[1] !== expectedVersion) { console.error( `❌ Version mismatch: package.json (${expectedVersion}) != src/version.ts (${match?.[1] || 'N/A'})`, ); process.exit(1); } console.log('✅ Version matches between package.json and src/version.ts');

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/cswkim/discogs-mcp-server'

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