Skip to main content
Glama

mcp-google-sheets

helpers.ts697 B
import crypto from 'crypto'; export const verifySignature = ( signatureKey?: string, // hex-encoded key timestamp?: string, // 'close-sig-timestamp' header rawBody?: any, // raw body as string signatureHash?: string, // 'close-sig-hash' header ): boolean => { if (!signatureKey || !timestamp || !rawBody || !signatureHash) { return false; } try { const dataToHmac = timestamp + rawBody; const generatedHash = crypto .createHmac('sha256', Buffer.from(signatureKey, 'hex')) .update(dataToHmac, 'utf8') .digest('hex'); return crypto.timingSafeEqual( Buffer.from(generatedHash, 'hex'), Buffer.from(signatureHash, 'hex'), ); } catch (error) { return false; } };

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/activepieces/activepieces'

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