Skip to main content
Glama
gilberth

MCP Cloudflare DNS Server

index.js736 B
import semver from 'semver'; import binaryVersion from 'bin-version'; import semverTruncate from 'semver-truncate'; export default async function binaryVersionCheck(binary, semverRange, options) { if (typeof binary !== 'string' || typeof semverRange !== 'string') { throw new TypeError('`binary` and `semverRange` arguments required'); } if (!semver.validRange(semverRange)) { throw new Error('Invalid version range'); } const version = await binaryVersion(binary, options); if (semver.satisfies(semverTruncate(version, 'patch'), semverRange)) { return; } const error = new Error(`${binary} ${version} doesn't satisfy the version requirement of ${semverRange}`); error.name = 'InvalidBinaryVersion'; throw error; }

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/gilberth/mcp-cloudflare'

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