/** * OAuth Metadata Endpoints * * Serves RFC 9728 Protected Resource Metadata and RFC 8414 Authorization * Server Metadata at their well-known URLs. */ import type { HarperRequest } from '../types.ts'; /** * Handle GET /.well-known/oauth-protected-resource/ * * RFC 9728 — tells MCP clients where to find the authorization server * and what scopes are supported. Each KB has its own protected resource * metadata so the resource URL is scoped to that KB. */ export declare function handleProtectedResourceMetadata(request: HarperRequest, kbId: string, resourcePath?: string): Response; /** * Handle GET /.well-known/oauth-authorization-server * * RFC 8414 — describes the authorization server's capabilities, * endpoints, and supported grant types. */ export declare function handleAuthServerMetadata(request: HarperRequest): Response; //# sourceMappingURL=metadata.d.ts.map