claude-code - 💡(How to fix) Fix [BUG] Microsoft 365 MCP OAuth fails - duplicate 'prompt' parameter (AADSTS9000411) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49175Fetched 2026-04-17 08:48:45
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×2closed ×1

Code Example

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?prompt=select_account&response_type=code&client_id=...&prompt=consent
RAW_BUFFERClick to expand / collapse

The Microsoft 365 MCP server at microsoft365.mcp.claude.com returns an authorization endpoint URL with prompt=select_account baked in. Claude Code's OAuth client then appends prompt=consent, resulting in a duplicate parameter.

Azure AD rejects this with: AADSTS9000411: The parameter 'prompt' is duplicated.

Full URL generated:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?prompt=select_account&response_type=code&client_id=...&prompt=consent

Related locked issues: #33028, #21309

OS: Windows 11

extent analysis

TL;DR

Remove the duplicate prompt parameter from the authorization endpoint URL to resolve the Azure AD error AADSTS9000411.

Guidance

  • Identify the source of the prompt=select_account parameter in the Microsoft 365 MCP server response and determine if it can be removed or modified.
  • Verify that the Claude Code OAuth client is correctly appending the prompt=consent parameter and consider modifying it to handle cases where prompt is already present.
  • Inspect the full URL generation process to ensure that parameters are properly concatenated and duplicates are avoided.
  • Review related issues #33028 and #21309 for potential insights or existing solutions.

Example

No code snippet is provided as the issue does not contain sufficient information about the implementation details.

Notes

The solution may require modifications to either the Microsoft 365 MCP server or the Claude Code OAuth client, depending on which component is responsible for generating the duplicate parameter.

Recommendation

Apply a workaround to remove or handle the duplicate prompt parameter, as the root cause is likely related to the interaction between the Microsoft 365 MCP server and the Claude Code OAuth client.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Microsoft 365 MCP OAuth fails - duplicate 'prompt' parameter (AADSTS9000411) [2 comments, 2 participants]