Allow a custom OAuth callback path in the web UI

Abierto
#3,024 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
66/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
TypeScript
Estrellas
11.3k
Forks
1.6k
Merge medio
2 h 28 min
PR fusionados (30 d)
111

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de modelcontextprotocol/inspector

Todos los issues de modelcontextprotocol/inspector

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.