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

Show the OAuth redirect URI (with copy) in Server Settings for pre-registered clients

Aperta Adatta ai principianti
#2,524 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Mezza giornata
Idoneità per principianti
76/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Inizia da core/auth/browser/providers.ts:54 per capire come viene calcolato l’URI di reindirizzamento web, quindi trova il modulo web Server Settings e la relativa sezione OAuth Settings. Aggiungi un campo Redirect URI di sola lettura con supporto per la copia e una descrizione della sua dipendenza dall’origin; il lavoro è completato quando il valore visualizzato corrisponde all’URI di callback del provider per l’indirizzo corrente.

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

Descrizione

enhancement v2

Problem

A user who pre-registers an OAuth client (client ID + secret) with their authorization server has to register the Inspector's redirect URI there before connecting. The Server Settings → OAuth Settings panel never shows that value. Other MCP clients (Claude, ChatGPT) show it so it can be copied into the AS configuration. Right now users have to guess it or read the source.

With DCR the Inspector sends redirect_uris itself, so this only matters for pre-registered (static) clients.

Current behavior

  • Web: the redirect URI is ${window.location.origin}/oauth/callback (core/auth/browser/providers.ts:54), which is http://localhost:6274/oauth/callback by default. It follows the address bar, so 127.0.0.1 vs localhost, a non-default CLIENT_PORT or a non-local host all change it. Many authorization servers match redirect URIs exactly.
  • TUI/CLI: http://127.0.0.1:6276/oauth/callback by default (core/auth/node/runner-oauth-callback.ts), overridable via --callback-url / MCP_OAUTH_CALLBACK_URL.

Proposed

Add a read-only Redirect URI field with a copy button to the OAuth Settings section of the web Server Settings form. Compute it the same way the provider does, so the field cannot drift from the value actually sent. Add a short description noting that it depends on the origin the Inspector is opened from.

Out of scope: TUI/CLI surfaces. Their default is already fixed and documented in their READMEs.

Reported by a user asking whether the redirect URI is fixed and whether they should register it on their AS.

Lingua principale
TypeScript
Stelle
11k
Fork
1.5k
Merge medio
5h 13m
PR unite (30g)
132

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.