github doobidoo/mcp-memory-service v8.12.0
v8.12.0: MemoryService Architecture with Comprehensive Tests

latest releases: v10.26.9, v10.26.8, v10.26.7...
4 months ago

🏗️ MemoryService Architecture

This release introduces a centralized business logic layer with comprehensive test coverage that caught 7 critical bugs before release.

Key Features

  • 80% code reduction - Eliminated duplication between API and MCP servers
  • 55 comprehensive tests - 34 unit + 21 integration (100% pass rate)
  • Database-level filtering - Scalable performance
  • Consistent behavior - Single source of truth
  • 7 critical bugs fixed - All caught through testing

Critical Bugs Fixed

ALL 7 bugs would have made this release completely non-functional:

  1. split_content() missing max_length - Would crash on chunking
  2. delete_memory() doesn't exist - Delete broken
  3. get_memory() doesn't exist - Get by hash broken
  4. health_check() doesn't exist - Health monitoring broken
  5. search_by_tags() mismatch - Tag search broken
  6. Chunking logic bug - len(content) > True chunked everything >1 char!
  7. Missing return handling - Success tracking broken

What Changed

  • New MemoryService class centralizes business logic
  • API endpoints refactored with dependency injection
  • Fixed O(n) memory loading anti-pattern
  • Removed 356 lines of duplicated code
  • Added 1469 lines including tests and fixes

Testing Success

This release demonstrates the critical importance of comprehensive testing.

  • Passed Gemini Code Assist review ✅
  • Passed all CI/CD checks ✅
  • BUT: Execution tests revealed 7 fatal bugs ❌

Without the 55 tests written, this release would have been completely broken. Test-driven development saved the release.

Technical Details

  • Files Modified: 6 files
  • Code Changes: +1469 / -356 lines
  • Test Coverage: 34 unit tests + 21 integration tests
  • Quality: 100% test pass rate

Closes #188
Replaces PR #185

Full Changelog: https://github.com/doobidoo/mcp-memory-service/blob/main/CHANGELOG.md#8120---2025-10-28

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

NewReleases is sending notifications on new releases.