Skip to content

preview_screenshot MCP tool hangs session on Windows (works fine on macOS) #30122

Description

@ctplayground

Description

When using Claude Code (v2.1.63) on Windows 11 via Claude Desktop, calling preview_screenshot (and occasionally other preview MCP tools) causes the entire session to become non-responsive. The session never recovers — I have to kill and restart every time.

This never happens on macOS with the same Claude Code version and same projects. It's 100% reproducible on Windows.

Environment

  • Claude Code version: 2.1.63
  • OS: Windows 11 Pro 10.0.26200
  • Client: Claude Desktop app
  • Shell: Git Bash
  • Affected tools: Primarily preview_screenshot, occasionally preview_snapshot

Steps to reproduce

  1. Open any project in Claude Code on Windows via Claude Desktop
  2. Start a dev server with preview_start
  3. Make a code change and ask Claude to verify it visually
  4. Claude calls preview_screenshot — session hangs indefinitely
  5. Must kill and restart the session

Expected behavior

preview_screenshot should return the screenshot data (or timeout gracefully with an error) as it does on macOS.

Actual behavior

The session becomes completely non-responsive. No timeout, no error — just an indefinite hang. The only recovery is killing the session.

Workaround

Instructing Claude (via CLAUDE.md) to avoid preview_screenshot and use text-based alternatives (preview_snapshot, preview_inspect) instead. These text-based tools work reliably on Windows.

Analysis

This appears to be related to large binary data transfer over the MCP connection on Windows. preview_screenshot returns image data which is significantly larger than the text-based tools. Windows subprocess/IPC communication seems to handle this payload size poorly compared to macOS.

Possibly related issues:

Activity

  1. EtayM commented on Mar 10, 2026

    @EtayM

    Happens to me as well, very frequently.

  2. github-actions commented on Apr 7, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  3. github-actions commented on Apr 14, 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.

  4. locked as resolved and limited conversation to collaborators on Apr 14, 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

    area:mcpbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions