Skip to main content
Glama
model.ts562 B
import { OAuthClientProvider } from "@modelcontextprotocol/sdk/client/auth.js"; // Our custom OAuth provider interface narrows down `state` and adds methods. export type OAuthProviderType = "dcr" | "static" | "device_flow"; export type McpxOAuthProviderI = Omit<OAuthClientProvider, "state"> & { type: OAuthProviderType; serverName: string; state(): string; completeAuthorization(authorizationCode?: string): void; getAuthorizationCode(): string | null; getAuthorizationUrl(): URL | null; getUserCode(): string | null; // Only for device flow };

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/TheLunarCompany/lunar'

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