Custom Memory Type Test Fixes
This patch release fixes test failures in the configurable memory type ontology feature released in v10.12.0.
Fixed
- Custom Memory Type Configuration (#464): Fixed test failures in configurable memory type ontology feature
- Fixed
get_all_types()to properly include custom base types fromMCP_CUSTOM_MEMORY_TYPESenvironment variable - Improved test isolation by clearing environment variables in setup/teardown to prevent test pollution
- Made custom type test more resilient to environment state from previous test runs
- Result: All 47 ontology tests now pass reliably with proper custom type support
- Fixed
Technical Details
The fix addresses two issues:
- Custom Base Type Inclusion:
get_all_types()now correctly retrieves base types from the merged taxonomy (which includes custom types) instead of hardcodedBaseMemoryTypeenum - Test Isolation: Tests now properly clean up
MCP_CUSTOM_MEMORY_TYPESenvironment variable in both setup and teardown, preventing pollution across test runs
Impact
Users of the configurable memory type ontology feature (v10.12.0) will see:
- Reliable custom type validation and retrieval
- Consistent behavior across multiple type queries
- Proper test coverage ensuring custom types work as documented
Installation
pip install --upgrade mcp-memory-serviceFull Changelog: v10.12.0...v10.12.1