modelcontextprotocol / modelcontextprotocol/csharp-sdk

Not able to authenticate MCP Servers

Open
#681 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area-auth bug needs confirmation P3
Dominant language
C#
Stars
4.5k
Forks
814
Avg merge
9d 19h
Merged PRs (30d)
4

Description

Describe the bug
MCP servers are enable with Entra Id auth and when we are getting tools information it is failing to authenticate the MCP servers.
Error : Unable to download OpenID Connect Configuration.

Expected behavior
Authentication should work for MCP servers.

Logs
StatusCode: 500, ReasonPhrase: 'Unable to download OpenID Connect Configuration.'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is identified in the report. Start by reproducing tool-information retrieval for an MCP server using Entra ID authentication and trace the failure producing “Unable to download OpenID Connect Configuration”; done means authentication succeeds and tool information can be retrieved without the 500 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.