8000 mcp_oauth_server example can not be tested in mcp inspector v0.13 · Issue #217 · modelcontextprotocol/rust-sdk · GitHub
[go: up one dir, main page]

Skip to content
mcp_oauth_server example can not be tested in mcp inspector v0.13 #217
@yexuanyang

Description

@yexuanyang

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0