WunderGraph implemented per-tool OAuth scope step-up authorization in their Cosmo MCP server, where each MCP tool requires only the specific OAuth scopes it needs rather than a broad token. During implementation they discovered an infinite authorization loop caused by the MCP TypeScript SDK overwriting scopes on each 403

9m read time From wundergraph.com
Post cover image
Table of contents
What we're buildingThe testWhat brokeWhat the spec says vs. what the RFC saysHow we're thinking to solve itTwo parts of the spec that pull in different directionsWhat we're contributing to the protocolWhere we're headed: surfacing missing scopes from the schemaWhy this matters

Sort: