Support Microsoft Azure as Auth Server #863
Open
+43
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds Azure specific checks and bypasses to allow MCP servers to use Azure AD as their authorization server (AS). Specifically:
resource
param toscope
paramIssues described in both:
Motivation and Context
Microsoft Azure is ubiquitous in enterprise auth and will be used by MCP servers. Currently this SDK cannot be used when developing MCP clients in this case, as it does not allow some of Azure's quirks.
If this SDK wants to be broadly adopted in enterprise, it should support Azure.
How Has This Been Tested?
Tested using the MCP inspector using custom fork of MCP Typescript SDK. Tested both a non-Azure remote MCP server (Neon) and custom MCP server with Azure.
Breaking Changes
Types of changes
Additional context
Code feels a bit ugly, mostly because it's doing something ugly (adding bypasses for large issuers that break spec in some small ways), however happy to refactor however required if it's decided Azure support is worth the concessions to the spec.