-
Notifications
You must be signed in to change notification settings - Fork 879
Description
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
- Clone the Typescript SDK locally
- Run
tsx --watch src/examples/server/simpleStreamableHttp.ts --oauth
- In another terminal run
npx -y @modelcontextprotocol/[email protected]
- In the inspector, server is:
StreamableHttp
andhttp://localhost:3000/mcp
- Click
Open OAuth Settings
- Click
Clear OAuth State
- 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.