Skip to content

[Bug] Python code under e2e_test cannot import the mcp module #276

@GreatEugenius

Description

@GreatEugenius

Search before asking

  • I searched in the issues and found nothing similar.

Description

When I run integrate_datastream_with_agent_example.py locally, I encounter the following error message: ModuleNotFoundError: No module named 'mcp.client'

How to reproduce

Download the source code:

git clone https://github.com/apache/flink-agents.git

Prepare the environment:

cd flink-agents
./tools/build.sh

Run the Python code in the e2e_test folder.:

python ./python/flink_agents/e2e_tests/integrate_datastream_with_agent_example.py

Version and environment

Flink Agents 0.1.0, release-0.1, main branch
MacOS 26.0.1
Java 11
Python 3.10

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    affectVersion/0.1.0The bug affects the 0.1.0 version. The features are not needed.bug[Issue Type] Something isn't working as expected.fixVersion/0.1.1The feature or bug should be implemented/fixed in the 0.1.1 version.fixVersion/0.2.0The feature or bug should be implemented/fixed in the 0.2.0 version.priority/majorDefault priority of the PR or issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions