Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

MCP Prefect Server Changelog

Choose a tag to compare

@allen-munsch allen-munsch released this 27 Jun 14:34
· 16 commits to main since this release
0.2.2
00dc615

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 name parameter to get_workspaces() function
  • Better documentation about filtering limitations across Prefect versions
  • Maintains backward compatibility

🐛 Bug Fixes

Test Parameter Cleanup

  • Removed unsupported flow_name parameter 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:
    1. UUID object pattern matching
    2. Simple string ID extraction
    3. 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.