Library containing OAuth Dynamic Client Registration (DCR) functionality for MCP servers.
Note: This code was extracted from MCP Gateway PR: docker/mcp-gateway#148
This library provides the core OAuth/DCR functions for MCP Gateway:
- OAuth Discovery: Discover OAuth requirements from MCP servers (RFC 9728 + 8414)
- Dynamic Client Registration: Register OAuth clients automatically (RFC 7591)
- WWW-Authenticate Parsing: Parse OAuth challenge headers