Skip to main content
Glama

OpenAPI MCP Server

http-methods.ts878 B
/** * HTTP method categorization utilities */ export const VALID_HTTP_METHODS = [ "get", "post", "put", "patch", "delete", "options", "head", ] as const export const GET_LIKE_METHODS = ["get", "delete", "head", "options"] as const export const POST_LIKE_METHODS = ["post", "put", "patch"] as const /** * Check if an HTTP method is valid */ export function isValidHttpMethod(method: string): boolean { return VALID_HTTP_METHODS.includes(method.toLowerCase() as any) } /** * Check if an HTTP method uses query parameters (GET-like) */ export function isGetLikeMethod(method: string): boolean { return GET_LIKE_METHODS.includes(method.toLowerCase() as any) } /** * Check if an HTTP method uses request body (POST-like) */ export function isPostLikeMethod(method: string): boolean { return POST_LIKE_METHODS.includes(method.toLowerCase() as any) }

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/ivo-toby/mcp-openapi-server'

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