Skip to main content
Glama

Git MCP Server

authStrategy.ts814 B
/** * @fileoverview Defines the interface for all authentication strategies. * This interface establishes a contract for verifying authentication tokens, * ensuring that any authentication method (JWT, OAuth, etc.) can be used * interchangeably by the core authentication middleware. * @module src/mcp-server/transports/auth/strategies/AuthStrategy */ import type { AuthInfo } from '@/mcp-server/transports/auth/lib/authTypes.js'; export interface AuthStrategy { /** * Verifies an authentication token. * @param token The raw token string extracted from the request. * @returns A promise that resolves with the AuthInfo on successful verification. * @throws {McpError} if the token is invalid, expired, or fails verification for any reason. */ verify(token: string): Promise<AuthInfo>; }

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/cyanheads/git-mcp-server'

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