- 
                Notifications
    
You must be signed in to change notification settings  - Fork 394
 
Closed
Description
rust-sdk/crates/rmcp/src/transport/auth.rs
Lines 201 to 211 in 22134eb
| pub async fn discover_metadata(&self) -> Result<AuthorizationMetadata, AuthError> { | |
| // according to the specification, the metadata should be located at "/.well-known/oauth-authorization-server" | |
| let mut discovery_url = self.base_url.clone(); | |
| discovery_url.set_path("/.well-known/oauth-authorization-server"); | |
| debug!("discovery url: {:?}", discovery_url); | |
| let response = self | |
| .http_client | |
| .get(discovery_url) | |
| .header("MCP-Protocol-Version", "2024-11-05") | |
| .send() | |
| .await?; | 
Maybe we should change the header from 2024-11-05 to 2025-03-26? The latest mcp inspector send 2025-03-26 to auth now, oauth examples do not work with it.
I checked the mcp inspector PR #355 and test the single mcp server writen in python sdk #610, it works fine.
Metadata
Metadata
Assignees
Labels
No labels