Skip to content

Add minimal regression test for issue #552 #1066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

felixweinberger
Copy link
Contributor

@felixweinberger felixweinberger commented Jul 1, 2025

Summary

This PR adds a minimal, focused regression test for issue #552 where MCP client initialization would hang indefinitely on Windows 11.

Context

Issue #552 reports that Windows-specific process creation code in win32.py causes the client to hang during initialization. The fix involves using the generic anyio.open_process for all platforms instead of custom Windows-specific code.

What This Test Does

The test verifies that stdio_client initialization completes successfully on Windows without hanging by:

  1. Creating a minimal Python subprocess that responds to the initialize request
  2. Attempting to initialize a client session with this subprocess
  3. Verifying it completes within 5 seconds without hanging
  4. Asserting the initialization succeeded with correct protocol version

Test Plan

  • Test passes on Windows when fix is applied
  • Test would hang/timeout on Windows without the fix

🤖 Generated with Claude Code

This commit adds a minimal test for the Windows hanging issue (#552) where
MCP client initialization would hang indefinitely on Windows 11.

The test verifies that a simple Python subprocess can initialize without
hanging, which would fail with the buggy Windows-specific process creation
code but succeeds with the generic anyio.open_process implementation.

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant