mcp-framework
Version:
Framework for building Model Context Protocol (MCP) servers in Typescript
13 lines (12 loc) • 724 B
TypeScript
import { AuthConfig } from '../../auth/types.js';
import { ProtectedResourceMetadata } from '../../auth/metadata/protected-resource.js';
/**
* Initialize OAuth Protected Resource metadata from auth configuration.
* This creates a ProtectedResourceMetadata object that serves the
* /.well-known/oauth-protected-resource endpoint per RFC 9728.
*
* @param authConfig - Authentication configuration from transport
* @param transportType - Type of transport (for logging purposes)
* @returns ProtectedResourceMetadata instance if OAuth is configured, undefined otherwise
*/
export declare function initializeOAuthMetadata(authConfig: AuthConfig | undefined, transportType: string): ProtectedResourceMetadata | undefined;