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

オープン
#3,023 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript
領域
devtools, security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).
主要言語
TypeScript
スター
11.3k
フォーク
1.6k
平均マージ
2時間 28分
マージ済み PR(30日)
111

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/inspector のほかの issue

modelcontextprotocol/inspector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。