github doobidoo/mcp-memory-service v10.55.2

3 hours ago

fix(insights): handle None memory_type and tags in InsightGenerator sort

Fixed

  • InsightGenerator TypeError (src/mcp_memory_service/consolidation/insights.py): Fixed TypeError: '<' not supported between instances of 'str' and 'NoneType' crash when memories have None values for memory_type or tags fields. dict.get(key, default) does not fall back to the default when the key is present with a None value; fixed with or "" / or [] idiom. Step 6 (Insight Cards) in the maintain cycle now runs without errors — 201 insights generated, 106 stored, no errors in testing.

Root Cause

Three sort operations in InsightGenerator used dict.get("key", default) which only applies the fallback when the key is absent, not when it is present with a None value. All three lines were updated to use the or default idiom:

  1. tags = sorted(set(mem.get("tags", []))) → filters out None entries via generator expression
  2. recent_types = set(m.get("memory_type", "") ...)or "" fallback
  3. old_types = set(m.get("memory_type", "") ...)or "" fallback

Upgrade

pip install --upgrade mcp-memory-service

Full changelog: https://github.com/doobidoo/mcp-memory-service/blob/main/CHANGELOG.md#10552---2026-05-12

Don't miss a new mcp-memory-service release

NewReleases is sending notifications on new releases.