Skip to content

MCP stdio servers flash visible CMD windows on Windows (windowsHide not set) #24708

Closed as duplicate

Description

@clusteruni-debug

Description

On Windows, every stdio-based MCP server spawns a visible CMD window that briefly flashes on screen during Claude Code startup. This happens for each MCP server configured with type: "stdio".

With 4-5 stdio MCP servers configured, users see multiple CMD windows flash on every claude launch, which is disruptive.

Root Cause

In the MCP StdioClientTransport, the windowsHide option is set conditionally:

windowsHide: process.platform === "win32" && LO9()

Where LO9() checks "type" in process, which always returns false in standard Node.js (it only returns true in Electron where process.type exists).

This means windowsHide is effectively always false on Windows, causing child processes (MCP servers) to spawn with visible console windows.

Expected Behavior

MCP server processes should be hidden on Windows. The fix should be:

windowsHide: process.platform === "win32"

Or simply:

windowsHide: true

(The option is ignored on non-Windows platforms anyway.)

Steps to Reproduce

  1. On Windows, configure 2+ stdio MCP servers in ~/.claude.json
  2. Run claude from terminal
  3. Observe: multiple CMD windows flash briefly during startup

Environment

  • OS: Windows 11
  • Claude Code: v2.1.37
  • Node.js: v24.13.0
  • MCP servers: 4 stdio servers (context7, firebase, vercel, github)

Impact

  • Every claude startup shows 4+ flashing CMD windows
  • Window titles show paths like .bin, .bun which confuse users
  • Purely cosmetic but significantly degrades Windows UX

Activity

  1. github-actions commented on Feb 10, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [Windows] Bun console window appears when starting Claude Code #21375
    2. Windows: Hook commands cause brief console window flash #19012
    3. Windows: Console window flashing when executing tools #14828

    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

  2. added
    duplicateThis issue or pull request already exists
    and removed
    bugSomething isn't working
    has reproHas detailed reproduction steps
    platform:windowsIssue specifically occurs on Windows
    on Feb 14, 2026
  3. github-actions commented on Feb 14, 2026

    @github-actions

    This issue has been automatically closed as a duplicate of #21375.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  4. github-actions commented on Feb 21, 2026

    @github-actions

    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.

  5. locked as resolved and limited conversation to collaborators on Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions