Skip to main content
Glama

MCP Framework

by ronangrant
headers.ts517 B
import { ServerResponse } from "node:http" export function getRequestHeader(headers: NodeJS.Dict<string | string[]>, headerName: string): string | undefined { const headerLower = headerName.toLowerCase() return Object.entries(headers).find( ([key]) => key.toLowerCase() === headerLower )?.[1] as string | undefined } export function setResponseHeaders(res: ServerResponse, headers: Record<string, string>): void { Object.entries(headers).forEach(([key, value]) => { res.setHeader(key, value) }) }

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/ronangrant/mcp-framework'

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