This repository was archived by the owner on Nov 27, 2025. It is now read-only.
MCP Prefect Server Changelog
MCP Prefect Server Changelog
v0.2.1 → v0.2.2
🧪 Test Suite Improvements
Better Test Reliability
- Fixed flaky tests that were failing due to missing flow runs or work queues
- Improved ID extraction logic with better regex patterns and JSON fallback parsing
- Tests now gracefully handle empty datasets instead of crashing
Smarter Test Data Handling
- Added utility function
extract_id_from_response()for consistent ID parsing - Better handling of UUID objects in API responses
- Tests work with existing data rather than requiring specific test fixtures
Async Test Fixes
- Fixed
pytest.skip()calls inside async contexts (can't skip mid-execution!) - Better timeout handling for long-running operations
- More reliable test execution in CI/CD environments
🔧 API Parameter Updates
Workspace Filtering
- Added optional
nameparameter toget_workspaces()function - Better documentation about filtering limitations across Prefect versions
- Maintains backward compatibility
🐛 Bug Fixes
Test Parameter Cleanup
- Removed unsupported
flow_nameparameter from flow run filtering tests - Tests now use supported parameters only
- Fixed multiple tool requirement specification in test fixtures
Work Queue Test Strategy
- Changed from create-and-delete pattern to create-and-verify
- More reliable since deletion might not be immediately consistent
- Focuses on testing creation and retrieval rather than cleanup
🛠️ Code Quality
Utility Functions
- Enhanced ID extraction with multiple fallback strategies:
- UUID object pattern matching
- Simple string ID extraction
- JSON parsing with UUID object handling
- Better error handling and logging in test utilities
Test Documentation
- Clearer test function names and descriptions
- Better comments explaining test strategies
- More informative logging during test execution
📋 Minor Changes
- Version bump to
0.2.2 - Improved test comments and documentation
- Better handling of edge cases in test data parsing
This release focuses on making the test suite more robust and reliable, especially when running against fresh Prefect instances with minimal data.