Skip to content

mcp_oauth_server example can not be tested in mcp inspector v0.13 #217

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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