What's Fixed
fix(milvus): add missing stale_days param to count_all_memories (#901, @henry201605)
MilvusMemoryStorage.count_all_memories() was missing the stale_days: Optional[int] = None parameter present on all other storage backends (SqliteVecMemoryStorage, CloudflareMemoryStorage, HybridMemoryStorage). Callers passing this argument received a TypeError. The parameter is now accepted and silently ignored — Milvus has no last_accessed field.
fix(quality): graceful fallback for MAINTAIN_SCAN_LIMIT on stale server process
On in-place upgrades where the server process is still running, sys.modules may cache the old config module, causing the from ...config import MAINTAIN_SCAN_LIMIT import in quality.py to fail with an ImportError. The import is now wrapped in a try/except block that falls back to reading MCP_MAINTAIN_SCAN_LIMIT from the environment (default: 2000). Maintain cycles now continue working after an upgrade without requiring a full server restart.
Full Changelog
See CHANGELOG.md for the complete entry.
Upgrade
pip install --upgrade mcp-memory-service
# or
uv add mcp-memory-service@10.56.2