Skip to content

Not working with windows mcp.client #75

Open
@HawkClaws

Description

@HawkClaws

I get an error when I try to use fastmcp with stdio_client in a windows environment
Can you please tell me how to solve this problem?

source code

    server_params = StdioServerParameters(
        command="fastmcp",
        args=["run",r"C:\Users\piyoen\AppData\Local\Programs\Python\Python311\Lib\site-packages\mcp_twikit\twitter.py"],
        env= {
            "TWITTER_USERNAME": "XXX",
            "TWITTER_EMAIL": "XXX",
            "TWITTER_PASSWORD": "XXX",
        }
    )
    async with stdio_client(server_params) as (read, write):

stack trace

raceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\piyoen\AppData\Local\Programs\Python\Python311\Scripts\fastmcp.exe\__main__.py", line 4, in <module>
  File "C:\Users\piyoen\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastmcp\__init__.py", line 4, in <module>
    from .server import FastMCP, Context
  File "C:\Users\piyoen\AppData\Local\Programs\Python\Python311\Lib\site-packages\fastmcp\server.py", line 3, in <module>
    import asyncio
  File "C:\Users\piyoen\AppData\Local\Programs\Python\Python311\Lib\asyncio\__init__.py", line 42, in <module>
    from .windows_events import *
  File "C:\Users\piyoen\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 8, in <module>
    import _overlapped
OSError: [WinError 10106] 指定されたサービス プロバイダーの読み込みまたは初期化を行うことができませんでした。

Activity

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

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions