Critical Bug Fix
Fixed KeyError: 'message' in MCP server handler that broke all memory store operations.
Fixed
- Critical Bug: Fixed
KeyError: 'message'in MCP server handler (server.py:2118)- Issue: #198
- Root Cause:
handle_store_memory()attempted to access non-existentresult["message"]key - Impact: All memory store operations via MCP
server.pyhandler failed completely - Fix: Properly handle
MemoryService.store_memory()response format - Response Messages: Now include truncated content hash for verification
Added
- Integration Tests: New test suite for MCP handler methods (
tests/integration/test_server_handlers.py)- 11 test cases covering success, chunked, and error scenarios
- Specific regression tests for issue #198
Technical Details
- Only
handle_store_memory()was affected by this bug - Fixed code pattern matches the correct pattern in
mcp_server.py - No breaking changes, only fixes broken functionality
Full Changelog: https://github.com/doobidoo/mcp-memory-service/blob/main/CHANGELOG.md#8161---2025-11-02