Allow a custom OAuth callback path in the web UI

Ouverte
#3,024 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
66/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
TypeScript
Étoiles
11.3k
Forks
1.6k
Merge moyen
2 h 28 min
PR mergées (30 j)
111

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de modelcontextprotocol/inspector

Toutes les issues de modelcontextprotocol/inspector

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.