The "Reveal" button in the Network tab doesn't reveal secrets

Abierto
#3,023 2 comentarios 0 reacciones 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
58/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
node.js, typescript

Línea de trabajo

Start by tracing the Network tab's Reveal control for request and response bodies, then check where their data is redacted before display. Compare the displayed values with the redaction behavior of the underlying library; done means Reveal shows the original secrets, or the control and label no longer imply that redacted values are revealed. The issue names no source files or tests, so locate the relevant UI and coverage in the repository first.

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

Descripción

bug v2
Which version line?

v2 — current (@modelcontextprotocol/inspector@latest)

Which client?

Web

Inspector version

v2.16.0

Node version

v24.22.1

Operating system (and browser, for the web client)

Windows 11 Home 25H2, Firefox 160.0.1

Transport

SSE (legacy)

MCP server under inspection

Server: the default "example-server-default" https://example-server.modelcontextprotocol.io/mcp
Protocol era: legacy
OAuth is used

Steps to reproduce
  1. Run npx @modelcontextprotocol/inspector
  2. Connect to the "example-server-default" server
  3. Complete authorization process
  4. In the Network tab, open an request to https://example-server.modelcontextprotocol.io//token with the status 200
  5. Press the "Reveal" button in the right of the label "Secrets hidden" (both of one in "Request Body" section and one in "Response Body" section)
Expected behavior

The actual secrets (authorization code, code_verifier, access token, and refresh token) should be displayed as-is instead of the useless "REDACTED" strings after pressing the "Reveal" button and the label being changed to "Secrets revealed".

If this is technically difficult (for example, because the underlying library forcibly redacts secrets with no option), I think this useless switch and the lying label ("Secrets revealed" with no secrets revealed) should be removed.

Actual behavior

The label "Secrets hidden" changes to "Secrets revealed".
However, the secrets only changes from •••••••• to %5BREDACTED%5D or [REDACTED] instead of being revealed.

Logs, errors, or screenshots
Request Body, before pressing Reveal Request Body, after pressing Reveal Response Body, before pressing Reveal Response Body, after pressing Reveal
Already prototyped a fix?

No response

Before you submit
  • I searched existing issues and this is not a duplicate.
  • This is not a security vulnerability report (those go through the private advisory process).
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.