mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
This commit adds comprehensive tests that verify the fix for issue #3858,
where users reported ModuleNotFoundError when trying to import MCP classes
from crewai.mcp.
The issue was resolved in version 1.4.0 with the addition of first-class
MCP support (commit 6f36d700). These tests ensure:
1. MCPServerStdio, MCPServerHTTP, and MCPServerSSE can be imported from crewai.mcp
2. Agent accepts mcps parameter with these configuration classes
3. The exact documentation example from issue #3858 works correctly
4. All MCP server configs are proper Pydantic models with validation
5. Optional fields work as expected
All 10 new tests pass, and existing MCP tests continue to pass.
Fixes #3858
Co-Authored-By: João <joao@crewai.com>