Skip to content

Failed GitHub MCP tool details render the server label one character per line #4238

Description

@scotttesler

Describe the bug

Expanded details for failed GitHub MCP tool rows become extremely tall and difficult to read because (MCP: github-mcp-server) renders in an approximately one-character-wide column, with one character per line. Tool arguments below the label render at normal width.

Current behavior

The same display failure appears in two unrelated failed tool calls.

Edit pull request showed an error beginning:

MCP server 'github-mcp-server': An interactive form has been shown to the user for editing pull request ...

Search code showed an error beginning:

MCP server 'github-mcp-server': failed to search code with query 'repo:xai-org/grok-build model': GET https://api.github.com/search/code?page=1...

In both cases, the expanded MCP label rendered approximately as:

(
M
C
P
:

g
i
t
h
u
b
-
m
c
p
-
s
e
r
v
e
r
)
GitHub MCP bad response format in Copilot CLI - 1

Affected version

Copilot CLI v1.0.74-4 on macOS, but this was encountered on previous versions.

Observed 2026-07-23.

Steps to reproduce the behavior

  1. Run Copilot CLI v1.0.74-4 on macOS.
  2. Invoke a GitHub MCP tool that returns a failed tool row. Observed examples include Edit pull request and Search code.
  3. Expand the failed tool row.
  4. Observe that (MCP: github-mcp-server) wraps one character per line while the content below it retains normal width.

Expected behavior

The MCP server label should remain horizontal and readable. At constrained widths, it should truncate or otherwise preserve a single-line layout instead of wrapping one character per line.

Additional context

This issue covers only the display/rendering bug. The invisible interactive form observed during Edit pull request is a separate problem and is explicitly out of scope.

Relevant configuration

The issue occurred with these non-secret user settings from ~/.copilot/settings.json:

{
  "autoUpdatesChannel": "prerelease",
  "experimental": true,
  "githubMcpInsiders": true,
  "enableAllGithubMcpTools": true
}

These are public user-facing options. No user-forced feature-flag overrides were configured, and the built-in GitHub MCP server was used rather than a custom server entry.

Acceptance criteria

  • Expanded failed GitHub MCP tool details render (MCP: github-mcp-server) horizontally at the observed width.
  • At narrower widths, the label truncates or otherwise remains horizontal instead of wrapping one character per line.
  • Tool error details and arguments retain a usable layout.
  • Regression coverage includes a failed non-form GitHub MCP call, such as Search code.
  • Resolving this issue does not require changes to interactive-form behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryarea:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formatting

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions