Skip to main content
Glama
parseHex.js336 B
import parseNumber from './parseNumber.js'; const hex = /^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i; const parseHex = color => { let match; // eslint-disable-next-line no-cond-assign return (match = color.match(hex)) ? parseNumber(parseInt(match[1], 16), match[1].length) : undefined; }; export default parseHex;

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/MatheusgVentura/Project-One'

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