/** * OAuth Authorization Endpoint * * GET /mcp-auth/authorize — MCP OAuth 2.1 authorization endpoint. * * Shows a login page with an optional SSO button (configurable via the * loginPath hook) and a Harper credential fallback. If the user has an * active session (from a prior OAuth login), issues an auth code * immediately. * * Authorization decisions (who gets access, what scopes) are delegated * to the host application via the onAccessCheck hook on each MCP request. */ import type { HarperRequest } from '../types.ts'; /** * Handle GET /mcp-auth/authorize * * Three modes: * 1. Returning from login (`pending` param) — complete authorization. * 2. User already has a session — issue auth code directly. * 3. First visit — show login page. */ export declare function handleAuthorizeGet(request: HarperRequest): Promise; /** * Handle POST /mcp-auth/authorize — Harper credential login. */ export declare function handleAuthorizePost(request: HarperRequest): Promise; //# sourceMappingURL=authorize.d.ts.map