Expand description
OAuth 2.1 Authorization Server for MCP.
Implements Authorization Code + PKCE flow so MCP clients like Claude Code can auto-authenticate via browser login.
Structs§
- Authorization
Server Metadata - Authorize
Form - Authorize
Query - OAuth
State - Shared state for OAuth endpoints.
- Protected
Resource Metadata - Register
Request - Register
Response - Token
Request - Token
Response
Functions§
- oauth_
authorize_ get - oauth_
authorize_ post - oauth_
register - oauth_
token - Token endpoint accepts both
application/jsonandapplication/x-www-form-urlencoded(OAuth 2.1 standard). - well_
known_ oauth_ metadata - well_
known_ resource_ metadata