export function validateSessionKey(key: string): void {
const uuidV4Regex = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
if (!uuidV4Regex.test(key)) {
throw new Error('Session key must be UUID v4 format');
}
}
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/martechery/mcp-google-ads-ts'
If you have feedback or need assistance with the MCP directory API, please join our Discord server