Skip to main content
Glama
verify.ts559 B
import { jwtVerify } from 'jose'; const JWT_SECRET = process.env.SUPABASE_SERVICE_ROLE_KEY!; const JWT_ISSUER = 'claudekeep'; const JWT_AUDIENCE = 'claudekeep-mcp'; export async function verifyToken(token: string): Promise<string | null> { try { const { payload } = await jwtVerify( token, new TextEncoder().encode(JWT_SECRET), { issuer: JWT_ISSUER, audience: JWT_AUDIENCE, } ); return payload.sub || null; } catch (error) { console.error('Error verifying token:', error); return null; } }

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/sdairs/claudekeep'

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