Skip to main content
Glama
gilberth

MCP Cloudflare DNS Server

index.js537 B
import semverRegex from 'semver-regex'; export default function findVersions(stringWithVersions, {loose = false} = {}) { if (typeof stringWithVersions !== 'string') { throw new TypeError(`Expected a string, got ${typeof stringWithVersions}`); } const regex = loose ? new RegExp(`(?:${semverRegex().source})|(?:v?(?:\\d+\\.\\d+)(?:\\.\\d+)?)`, 'g') : semverRegex(); const matches = stringWithVersions.match(regex) || []; return [...new Set(matches.map(match => match.trim().replace(/^v/, '').replace(/^\d+\.\d+$/, '$&.0')))]; }

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