Add comprehensive tests for MCP imports to address issue #3858 #3859
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add comprehensive tests for MCP imports to address issue #3858
Summary
This PR adds comprehensive test coverage for the MCP import functionality that was added in version 1.4.0 to resolve issue #3858. The issue reported that users on version 1.3.0 could not import
MCPServerStdio,MCPServerHTTP, andMCPServerSSEfromcrewai.mcpas shown in the documentation.The fix was already implemented in commit 6f36d70 (feat: first-class MCP support), but lacked specific tests that replicate the exact failing code from the issue. This PR adds 10 new tests that:
crewai.mcpwithout errorsmcpsparameter with these configurationsAll 10 new tests pass ✅, and all 5 existing MCP tests continue to pass ✅.
Review & Testing Checklist for Human
Test Plan
Notes
Fixes #3858