Skip to content

NotImplementedError in asyncio subprocess_exec when using MCP client on Windows with Python 3.12 #369

@isakulaksiz

Description

@isakulaksiz

Describe the bug
When using MCP client with Python 3.12 on Windows, it fails to connect to the server with a NotImplementedError. This is happening because asyncio subprocess functionality is not properly implemented in Python 3.12 on Windows.

To Reproduce
Steps to reproduce the behavior:

  1. Install Python 3.12 on Windows
  2. Install MCP and required packages
  3. Create a simple MCP server script and MCP client
  4. Try to connect to the server using the client
  5. See error: NotImplementedError is raised in asyncio's _make_subprocess_transport method

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Image

Desktop

  • OS: [Windows 10]
  • Browser [chrome]
  • Package versions: anyio, mcp, asyncio standard library

Additional context
it works fine with macos.

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