Skip to content

Regression in OAuth 2.0 Flow with Client ID in 0.16.8Β #824

@sberyozkin

Description

@sberyozkin

Inspector Version

  • 0.16.8

Describe the bug

MCP Inspector fails to complete the authorization code flow, it starts spinning after a user logs-in to the OAuth2 provider (Keycloak) and is redirected back to MCP Inspector

To Reproduce
Steps to reproduce the behavior:

  1. Check out https://github.com/quarkiverse/quarkus-mcp-server
  2. No need to build anything, just go to https://github.com/quarkiverse/quarkus-mcp-server/tree/main/samples/multiple-secure-mcp-http-servers
  3. Do mvn quarkus:dev - it starts the MCP server, and launches a Keycloak container
  4. In MCP Inspector: set address to http://localhost:8080/mcp, Transport Type: Streamable HTTP, OAuth2 Client id - alpha-client, scope: openid quarkus-mcp-alpha
  5. Press Connect - you are redirected to Keycloak, login as user alice, password alice, you are redirected back to MCP Inspector, no option to select tools is offered, MCP Inspector is in the loop in the console and Web Developer Tools/Network

Expected behavior
It should work exactly as it works with 0.16.7 - after the login, MCP Inspector does not spin, a user is offered an option to select tools. See this description.

Screenshots
it is hard to capture anything specific - 401 errors are reported in the console, Web Developer Tools/Network shows MCP Inspector is looping

Environment (please complete the following information):

  • OS: Fedora 42
  • Firefox

Additional context

Let me know if I can help with some extra info.
The Quarkus blog post is due to go today and I had to update the text to recommend users to hold on to the 0.16.7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues and PRs related to authorizationp1-highHigh priority - should be addressed soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions