Skip to main content
Glama
semantic-release-server-json.js843 B
/** * Custom Semantic-Release plugin to update server.json version */ import fs from 'fs'; import path from 'path'; function updateServerJson(pluginConfig, context) { const { nextRelease, logger } = context; const serverJsonPath = path.resolve(process.cwd(), 'server.json'); if (!fs.existsSync(serverJsonPath)) { logger.log('server.json not found, skipping version update'); return; } try { const serverJson = JSON.parse(fs.readFileSync(serverJsonPath, 'utf8')); serverJson.version = nextRelease.version; fs.writeFileSync(serverJsonPath, JSON.stringify(serverJson, null, 2) + '\n'); logger.log(`Updated server.json version to ${nextRelease.version}`); } catch (error) { logger.error('Failed to update server.json:', error); throw error; } } export default { prepare: updateServerJson };

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/adimowis/appler'

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