This is a tracking issue for implementation of SEP-985.
Summary
This SEP clarifies and extends the Protected Resource Metadata discovery mechanism for OAuth 2.0 authorization in MCP. The Rust SDK needs to implement client support for multiple discovery methods with proper fallback behavior, ensuring robust authorization server discovery even when well-known URIs are not available. Clients must first check for a resource_metadata parameter in the WWW-Authenticate header on 401 responses, and if not present, fall back to attempting well-known URIs at both sub-path and root locations.
Related Issues & PRs
- Implementation PRs: n/a
- Related PRs: n/a
- Related Issues: n/a