🚨 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_memoryto checkresult['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_memorytool 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-serviceFiles Changed
src/mcp_memory_service/server/handlers/memory.py(lines 313-317)src/mcp_memory_service/mcp_server.py(lines 518-521)
Related Issues
- Fixes #300
Full Changelog: https://github.com/doobidoo/mcp-memory-service/blob/main/CHANGELOG.md