Skip to content

OAuth Quick Flow lands on blank page #785

@cliffhall

Description

@cliffhall

Describe the bug

With the latest version of the Inspector (0.16.6), if you run the Quick OAuth Flow in the OAuth debugger against the simpleStreamableHttp.ts example server in the TS SDK (with --oauth flag), it will fly through the oauth states and land on a blank screen.

If you run it with the previous version of the Inspector (0.16.5), it will complete and you can click connect and see the server tools, etc.

In the failure case, the last request will be to the /token endpoint on the AS, and the payload will look basically the same as it does in the success case.

Steps To Reproduce

  1. Clone the Typescript SDK locally
  2. Run tsx --watch src/examples/server/simpleStreamableHttp.ts --oauth
  3. In another terminal run npx -y @modelcontextprotocol/[email protected]
  4. In the inspector, server is: StreamableHttp andhttp://localhost:3000/mcp
  5. Click Open OAuth Settings
  6. Click Clear OAuth State
  7. Click Quick OAuth Flow

Expected behavior

The Quick OAuth Flow will complete, you can click the Connect button, and successfully connect to the server. In order to see this behavior, simply follow the steps to reproduce above, modifying step 3 to point to 0.16.5 instead.

Logs

Quick Flow Not Working in 0.16.6

quick-flow-not-working.mov

Quick Flow Works in 0.16.5

quick-flow-works.mov

Additional context

  • This is happening in the latest versions of Chrome, Safari, and Firefox for Mac (Apple silicon)
  • The Guided OAuth Flow works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues and PRs related to authorizationbugSomething isn't workingp1-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