TUI Info tab prints configured credentials (auth headers, URL tokens) in plain text

Open Beginner friendly
#3,131 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
80/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript
Domain
cli, security

Research direction

Start with clients/tui/src/components/InfoTab.tsx and the sensitive-name rules in core/mcp/sensitiveNames.ts; compare how the Network tab redacts headers and URL query parameters. Update the Info tab to mask credential values using those rules, then verify the configured URL and headers display redacted values.

Written by the indexing model from the issue text.

Description

bug v2

Found during the v2.18.0 release smoke (#3127). Pre-existing, not caused by a 2.18.0 change.

Problem

The TUI's Info tab, under "Server Configuration", prints the configured server URL and headers verbatim, credentials included:

URL: …/mcp?access_token=SECRETQ999&tenant=acme
Headers: Authorization=Bearer SECRETAUTH123, X-Auth-Token=SECRETXAT456, Ocp-Apim-Subscription-Key=SECRETOCP789, DPoP=SECRETDPOP000, …

Each secret reached the terminal stream 7 times in one session. It is rendered by clients/tui/src/components/InfoTab.tsx (since 373f346e5).

That contradicts the rule PR #3078 (#3077) set for the TUI: the TUI has no Reveal control, so it shows redacted copies. Its Network tab now does, showing authorization: [REDACTED], access_token=%5BREDACTED%5D and so on, while the Info tab shows the same values in plain text. A screen share or a terminal recording exposes them.

Repro

  1. Run --tui --config with a streamable-HTTP entry whose URL carries ?access_token=… and whose headers include Authorization, X-Auth-Token and Ocp-Apim-Subscription-Key.
  2. Connect, then open the Info tab.

Expected

The Info tab masks sensitive header values and credential-like query parameters, using the same sensitive-name rules (core/mcp/sensitiveNames.ts) as the Network tab.

Dominant language
TypeScript
Stars
11.4k
Forks
1.6k
Avg merge
2h 27m
Merged PRs (30d)
121

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelcontextprotocol/inspector

All issues in modelcontextprotocol/inspector

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.