Skip to main content
Glama
utils.ts460 B
export type Verb = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options'; const HTTP_METHODS = new Set(['get', 'post', 'put', 'delete', 'patch', 'head', 'options'] as const); export function toHttpMethod(method: string): Verb | undefined { const lower = method.toLowerCase().trim(); return HTTP_METHODS.has(lower) ? (lower as Verb) : undefined; } export function unreachable(msg: string): never { throw new Error(`${msg} is unreachable`); }

Latest Blog Posts

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/wycats/mcpify'

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