[BUG] /mcp TUI dialog breaks silently when the terminal window is too small

Status Fixed / completed
Reported on v2.1.119
Maintainer reply None cached
Activity 3 comments · opened Apr 24, 2026 · closed May 12, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The specific bug to report: /mcp TUI dialog breaks silently when the terminal window is too small — servers are present and connected (e.g. playwright shows ✓
Connected in claude mcp list) but don't appear in the dialog, with no error or scroll indicator to explain why.

What Should Happen?

Scrolling should show the top part of the TUI once you scroll past the bottom

Error Messages/Logs

Steps to Reproduce

  1. Open a terminal window and make it small (narrow/short)
  2. Start Claude Code (claude)
  3. Type /mcp
  4. Observe that some or all MCP servers don't appear in the dialog

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.119

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/47084
  2. https://github.com/anthropics/claude-code/issues/38762
  3. https://github.com/anthropics/claude-code/issues/41975

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

Ranzo3 · 5 months ago

This ticket is not a dupe of those, because those say that the dialog doesn't show anything. My issue is different; it shows items, but not the ones which are at the top of the list. If you scroll all the way to the bottom and keep going, it loops back up to an item in the middle of the list, rather than showing the top of the list.

Workaround is to use a longer window.

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.