Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Protected Resource Metadata request failed: 404 #1495

Copy link
Copy link
@daltonnyx

Description

@daltonnyx
Issue body actions

Initial Checks

Description

In python-sdk v1.18.0, the PR #1324 introduced new scopes selection and step-up authorization. but in the step 1

else:
raise OAuthFlowError(f"Protected Resource Metadata request failed: {response.status_code}")

It raise an error if the oauth-protected-resource url is not found on server. this cause issue for old mcp server that does not support it yet. for example https://mcp.linear.app/sse or https://mcp.atlassian.com/v1/sse

Since we still allows discover fallback url in step 4. I suggest we should remove this exception and let the flow fall through.

Example Code

Python & MCP Python SDK

python=3.12
mcp=v1.18.0
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues and PRs related to Authentication / OAuthIssues and PRs related to Authentication / OAuthready for workEnough information for someone to start working onEnough information for someone to start working on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.