Skip to main content
Glama

Browser Control MCP

by eyalzh
auth.ts739 B
function buf2hex(buffer: ArrayBuffer) { return Array.from(new Uint8Array(buffer)) .map((x) => x.toString(16).padStart(2, "0")) .join(""); } export async function getMessageSignature( message: string, secretKey: string ): Promise<string> { if (secretKey.length === 0) { throw new Error("Secret key is empty"); } const encoder = new TextEncoder(); const keyData = encoder.encode(secretKey); const messageData = encoder.encode(message); const key = await crypto.subtle.importKey( "raw", keyData, { name: "HMAC", hash: "SHA-256" }, false, ["sign"] ); const rawSignature = await crypto.subtle.sign( { name: "HMAC" }, key, messageData ); return buf2hex(rawSignature); }

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/eyalzh/browser-control-mcp'

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