We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gergelyszerovay/mcp-id-date'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
convertToHex.ts•291 B
/**
* Converts a number to an 8-digit hexadecimal string
*
* @param value - The number to convert
* @returns 8-digit hex string (lowercase)
*/
export function convertToHex(value: number): string {
const hex = (value >>> 0).toString(16).toLowerCase();
return hex.padStart(8, '0');
}