ImportError: cannot import name 'MCPServerStreamableHTTP' from 'pydantic_ai.mcp'
🐛 Bug Description
(rdagent) root@VM-0-15-ubuntu:~/RD-Agent# rdagent health_check --no-check-env
Traceback (most recent call last):
File "/root/miniconda3/envs/rdagent/bin/rdagent", line 3, in
To Reproduce
Steps to reproduce the behavior:
1.conda create -n rdagent python=3.10 2.conda activate rdagent 3.git clone https://github.com/microsoft/RD-Agent 4. cd RD-Agent/ 5. make dev 6. rdagent health_check --no-check-env
Expected Behavior
Screenshot
Environment
Note: Users can run rdagent collect_info to get system information and paste it directly here.
- Name of current operating system:
- Processor architecture:
- System, version, and hardware information:
- Version number of the system:
- Python version:
- Container ID:
- Container Name:
- Container Status:
- Image ID used by the container:
- Image tag used by the container:
- Container port mapping:
- Container Label:
- Startup Commands:
- RD-Agent version:
- Package version:
Additional Notes
Got the same issue, and try:
pip uninstall -y pydantic-ai-slim mcp pip install "pydantic-ai-slim[mcp,openai,prefect]==1.34.0" "mcp==1.24.0"
fixed temporarily...