github doobidoo/mcp-memory-service v8.61.2
v8.61.2 - Critical delete_memory KeyError Hotfix

latest releases: v10.31.1, v10.31.0, v10.30.0...
3 months ago

🚨 Critical Hotfix: delete_memory KeyError

This patch release fixes a critical bug in the delete_memory MCP tool introduced during Phase 3 refactoring.

Fixed

  • CRITICAL: delete_memory KeyError (#300)
    • Fixed handler attempting to access non-existent 'message' key in response
    • Root cause: Service returns {'success': bool, 'content_hash': str, 'error': str} but handler expected {'message': str}
    • Solution: Updated handle_delete_memory to check result['success'] and use correct response keys
    • Updated MCP tool docstring to document actual return format
    • Validation: Tested delete flow confirms fix works correctly

Impact

  • Before: delete_memory tool would crash with KeyError when attempting to delete memories
  • After: Tool works correctly, properly handling both success and error cases

Upgrade Recommendation

CRITICAL - Upgrade immediately if you use the delete_memory MCP tool.

pip install --upgrade mcp-memory-service

Files Changed

  • src/mcp_memory_service/server/handlers/memory.py (lines 313-317)
  • src/mcp_memory_service/mcp_server.py (lines 518-521)

Related Issues


Full Changelog: https://github.com/doobidoo/mcp-memory-service/blob/main/CHANGELOG.md

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

NewReleases is sending notifications on new releases.