Skip to main content
Glama
bump-version.js591 B
#!/usr/bin/env node const fs = require('fs'); const path = require('path'); const pkgPath = path.join(__dirname, '..', 'package.json'); const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8')); function bumpPatch(version) { const parts = version.split('.').map(Number); if (parts.length !== 3 || parts.some(Number.isNaN)) { throw new Error(`Invalid version: ${version}`); } parts[2] += 1; return parts.join('.'); } pkg.version = bumpPatch(pkg.version); fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf8'); console.log(`Bumped version to ${pkg.version}`);

Latest Blog Posts

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/vipincr/imagen-mcp'

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