Skip to main content
Glama

Model Context Protocol Server

by hyen43
apikey.d.ts931 B
import { IncomingMessage } from "node:http"; import { AuthProvider, AuthResult } from "../types.js"; export declare const DEFAULT_API_KEY_HEADER_NAME = "X-API-Key"; /** * Configuration options for API key authentication */ export interface APIKeyConfig { /** * Valid API keys */ keys: string[]; /** * Name of the header containing the API key * @default "X-API-Key" */ headerName?: string; } /** * API key-based authentication provider */ export declare class APIKeyAuthProvider implements AuthProvider { private config; constructor(config: APIKeyConfig); /** * Get the number of configured API keys */ getKeyCount(): number; /** * Get the configured header name */ getHeaderName(): string; authenticate(req: IncomingMessage): Promise<boolean | AuthResult>; getAuthError(): { message: string; status: number; }; }

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/hyen43/mcpServer'

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