Skip to content

Fix MCP server Copy button becoming invisible or hard to see #742

Description

@shangxinyu1

Summary

On the MCP server page, the Copy button becomes effectively invisible in some configurations.

In the reported case, the button is still present in the layout, but its styling is so faint or visually collapsed against the code block that users can barely see it or may think it is missing entirely.

Current behavior

  • Open Settings > MCP server.
  • View the generated config/code block.
  • The Copy button is not clearly visible in some variants of the page.
  • It can appear hidden, extremely low-contrast, or visually merged into the background.
  • This makes the primary copy action hard to discover.

Expected behavior

The Copy button should remain clearly visible and discoverable across all MCP server config variants.

Suggested improvements:

  • Ensure the Copy button has sufficient contrast against the code block and surrounding container.
  • Reserve a stable visible area for the button regardless of config type or content length.
  • Prevent the button from blending into the background or clipping against the edge of the block.
  • Keep the copy affordance visually consistent across Codex, VS Code, and other MCP config modes.

Steps to reproduce

  1. Open Settings.
  2. Go to MCP server.
  3. Switch between different config targets if applicable.
  4. Inspect the code/config block area.
  5. Observe that the Copy button may appear missing or extremely hard to see.

Notes

Screenshots are attached showing:

  • one MCP server state where the Copy button is barely visible / effectively hidden
  • another MCP server state where the Copy button is clearly visible as expected

Why this matters

Copying the MCP config is the main action on this page. If the button is hard to see, users may assume the feature is broken or that there is no copy support at all.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions