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
Once an access token is acquired (via any OAuth grant), every outbound JSON-RPC request on HttpTransport must carry Authorization: Bearer <token>. On a 401 Unauthorized mid-session, the transport must trigger a re-auth attempt and retry the failed request exactly once.
Scope
src/Client/Transport/HttpTransport.php:
Read current token from TokenStorageInterface keyed by endpoint URL.
Add Authorization: Bearer <token> header on send() when a token is present.
On 401, parse WWW-Authenticate header, invoke auth coordinator, retry once.
Introduce Mcp\Client\Auth\AuthCoordinator to orchestrate discovery → registration → token acquisition. (Implementation details land in dependent issues.)
Activity
[Client] Add OAuth authorization to the HTTP transport
[Client] Add OAuth authorization to the HTTP transport
[Client] Add OAuth authorization to the HTTP transport
[Client] Add OAuth authorization to the HTTP transport
chr-hertel commentedon Nov 10, 2026
Solved with #663 and #666 - will be part of v0.10.0.