Skip to main content
Glama

Carbon Voice

by PhononX
get-user-id-from-headers.ts327 B
import { AxiosRequestHeaders } from 'axios'; import { getUserIdFromToken } from '.'; export const getUserIdFromHeaders = (headers: AxiosRequestHeaders) => { const authHeaderToken = headers['Authorization'] || headers['authorization']; const token = authHeaderToken?.split(' ')[1]; return getUserIdFromToken(token); };

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

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