Allow a custom OAuth callback path in the web UI

Aperta
#3,024 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by tracing the web UI’s OAuth authorization request and redirect handling; the issue does not name files or tests. Check how the CLI callback URL is configured for context, then locate the web UI setting and the code that builds and handles its callback URI. Done when an optional same-origin callback path is used in both places and defaults to /oauth/callback.

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

Descrizione

enhancement v2
Which client?

Web

The problem

I'm testing an OAuth-protected MCP server with an existing client whose Client ID Metadata Document lists /callback as its loopback redirect path. Inspector 2.13.0’s web UI sends /oauth/callback, so the redirect URI fails validation every time I try to sign in with that client.

Solution you have in mind (optional)

Add an optional same-origin callback path setting to the web UI. Use that path both when sending the authorization request and when handling the redirect. Default to /oauth/callback.

Alternatives or workarounds you have tried

Setting MCP_OAUTH_CALLBACK_URL had no effect in the web UI. OAuth worked end to end in the CLI with --callback-url http://127.0.0.1:6276/callback.

Already built it locally?

No response

Before you submit
  • I searched existing issues and this is not a duplicate.
  • This is a request for the Inspector itself, not for the MCP specification or an SDK.
Lingua principale
TypeScript
Stelle
11.3k
Fork
1.6k
Merge medio
2h 28m
PR unite (30g)
111

Preparare l'ambiente

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/inspector

Tutte le issue di modelcontextprotocol/inspector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.