claude-code - 💡(How to fix) Fix [BUG] /mcp TUI dialog breaks silently when the terminal window is too small [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52989Fetched 2026-04-25 06:15:23
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Connected in claude mcp list) but don't appear in the dialog, with no error or scroll indicator to explain why.

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

extent analysis

TL;DR

The issue can be mitigated by increasing the terminal window size to ensure all MCP servers are visible in the /mcp TUI dialog.

Guidance

  • Verify that the terminal window size is the cause of the issue by resizing the window to a larger size and checking if all MCP servers appear in the dialog.
  • Check if there are any configuration options in Claude Code to adjust the TUI dialog's behavior for small terminal windows.
  • Test the /mcp command with a smaller set of MCP servers to see if the issue is related to the number of servers being displayed.
  • Consider reporting the issue with more details about the previous version where the feature worked, to help identify the regression cause.

Example

No code snippet is provided as the issue is related to a specific tool's behavior and not a code-based problem.

Notes

The issue seems to be a regression, and providing more information about the last working version could help in identifying the cause. The Anthropic API and iTerm2 terminal are specific to this issue, but the problem might be related to the Claude Code version or its interaction with the terminal.

Recommendation

Apply workaround: Increase the terminal window size to ensure all MCP servers are visible, as this is a simple and immediate way to mitigate the issue, although it does not address the underlying regression.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] /mcp TUI dialog breaks silently when the terminal window is too small [1 comments, 2 participants]