这是indexloc提供的服务,不要输入任何密码
Skip to content

ModuleNotFoundError for mcp.client.streamable_http: Requires mcp >=1.8.0 and Python >=3.10 #2946

@5Hyeons

Description

@5Hyeons

Cause

  • The uv.lock file had the mcp package pinned to version 1.7.1.
  • However, the mcp.client.streamable_http module is only available in mcp version 1.8.0 and above.
  • As a result, the import failed with a ModuleNotFoundError when using version 1.7.1.

Additional Problem

  • When trying to upgrade to mcp==1.8.0, the dependency resolver failed because the pyproject.toml and uv.lock file specified requires-python = ">=3.9.0".
  • The resolver tried to ensure compatibility with Python 3.9, but mcp==1.8.0 requires Python 3.10 or higher, resulting in a dependency conflict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions