Skip to main content
Glama

Model Context Protocol Server

by hyen43
jwt.d.ts982 B
import { IncomingMessage } from "node:http"; import { Algorithm } from "jsonwebtoken"; import { AuthProvider, AuthResult } from "../types.js"; /** * Configuration options for JWT authentication */ export interface JWTConfig { /** * Secret key for verifying JWT tokens */ secret: string; /** * Allowed JWT algorithms * @default ["HS256"] */ algorithms?: Algorithm[]; /** * Name of the header containing the JWT token * @default "Authorization" */ headerName?: string; /** * Whether to require "Bearer" prefix in Authorization header * @default true */ requireBearer?: boolean; } /** * JWT-based authentication provider */ export declare class JWTAuthProvider implements AuthProvider { private config; constructor(config: JWTConfig); 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