You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using Streamable HTTP transport, the oauth flow is not triggered when the server returns 401. The sse transport supports this and the browser correctly initiates the oauth flow as per the spec.
Expected behavior
When the server returns 401 the inspector should trigger the oauth flow.
Logs
When using streamable HTTP:
Created streamable web app transport 9b453c43-3a2c-4e67-a18f-29824475847e
Error from MCP server: Error: Error POSTing to endpoint (HTTP 401)
-- the inspector hangs here --
When using sse:
SSE transport: url=<server sse endpoint>, headers=Accept
Received 401 Unauthorized from MCP server: SSE error: Non-200 status code (401)
-- the oauth flow is triggered ---
Additional context
There is discussion on this in #339, and is identified as a follow up task.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using Streamable HTTP transport, the oauth flow is not triggered when the server returns 401. The
sse
transport supports this and the browser correctly initiates the oauth flow as per the spec.To Reproduce
Steps to reproduce the behavior:
Expected behavior
When the server returns
401
the inspector should trigger the oauth flow.Logs
When using streamable HTTP:
When using sse:
Additional context
There is discussion on this in #339, and is identified as a follow up task.
The text was updated successfully, but these errors were encountered: