Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

OAuth Flow not working for Atlassian MCP and Github MCP

Aperta
#842 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp, github

Direzione di ricerca

Inizia con l’esempio ProtectedClient e imposta serverUrl su https://api.githubcopilot.com/mcp/. Traccia la ricerca dei metadati OAuth che segnala l’assenza dei metadati .well-known/openid-configuration o .well-known/oauth-authorization-server, quindi confronta i flussi GitHub e Atlassian. Il lavoro è completato quando l’esempio apre un URL di autorizzazione e completa l’autenticazione per i server MCP interessati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area-auth bug needs confirmation P2

Describe the bug
The OAuth flow does not work for both Atlassian MCP and Github MCP when using the C# SDK. After initiating the authentication process, the redirect or token exchange does not complete successfully, resulting in authentication failure. It throws an error:

throw new McpException($"Failed to find .well-known/openid-configuration or .well-known/oauth-authorization-server metadata for authorization server: '{authServerUri}'");

Error Message is as follows:
ModelContextProtocol.McpException: 'Failed to find .well-known/openid-configuration or .well-known/oauth-authorization-server metadata for authorization server: 'https://github.com/login/oauth/''

To Reproduce
Steps to reproduce the behavior:

  1. Clone the csharp-sdk Repo
  2. Execute the "ProtectedClient" Repo and set the serverurl to var serverUrl = "https://api.githubcopilot.com/mcp/";
  3. Error is thrown, no OAuth flow gets initiated

Expected behavior
I expected it to launch an authorization URL that I can use to authenticate against Github or Atlassian, just like it works with FastMCP.

Lingua principale
C#
Stelle
4.5k
Fork
814
Merge medio
9g 19h
PR unite (30g)
4

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/csharp-sdk

Tutte le issue di modelcontextprotocol/csharp-sdk

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.