Skip to main content
Glama
generateUUIDv4.ts357 B
export function generateUUIDv4(): string { const bytes = crypto.getRandomValues(new Uint8Array(16)); bytes[6] = (bytes[6] & 0x0f) | 0x40; bytes[8] = (bytes[8] & 0x3f) | 0x80; return [...bytes] .map((b, i) => { const hex = b.toString(16).padStart(2, "0"); return [4, 6, 8, 10].includes(i) ? `-${hex}` : hex; }) .join(""); }

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/webflow/mcp-server'

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