Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

fix: skip stdio subprocess test on Windows CI (#3966)

Jeremiah Lowin64fbc52e1d8a
diff --git a/tests/cli/test_run.py b/tests/cli/test_run.py
index 462bd7734..e55dea697 100644
--- a/tests/cli/test_run.py
+++ b/tests/cli/test_run.py
@@ -101,6 +101,11 @@ class TestFileSystemSource:
class TestMCPConfig:
"""Test MCPConfig functionality."""
+ @pytest.mark.timeout(15)
+ @pytest.mark.skipif(
+ sys.platform == "win32",
+ reason="Stdio subprocess lifecycle is unreliable on Windows CI",
+ )
async def test_run_mcp_config(self, tmp_path: Path):
"""Test creating a server from an MCPConfig file."""
server_script = inspect.cleandoc("""