github doobidoo/mcp-memory-service v8.35.0
v8.35.0 - Phase 2 Batch 1 Complete

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

🎯 Code Quality: Phase 2 Batch 1 Complete

This release completes the first batch of Phase 2 complexity reductions, refactoring 2 high-priority functions with a combined -15 complexity point reduction.

🔧 Refactored Functions

1. install.py::configure_paths() - Complexity 15 → 5 (-10 points)

Extracted 4 helper functions for better separation of concerns:

  • get_platform_base_dir() - Platform-specific directory detection
  • setup_storage_directories() - Storage directory creation
  • build_mcp_env_config() - Environment configuration builder
  • update_claude_config_file() - Claude Desktop config updater

Impact: Main function reduced from 80 → ~30 lines, dramatically improved testability and maintainability.

2. cloudflare.py::_search_by_tags_internal() - Complexity 13 → 8 (-5 points)

Extracted 3 helper functions for tag normalization and query building:

  • normalize_tags_for_search() - Tag deduplication and normalization
  • normalize_operation() - AND/OR operation validation
  • build_tag_search_query() - SQL query construction

Impact: Method reduced from 75 → ~45 lines, better code organization.

✨ Gemini Review Improvements

Applied during iterative review cycles:

  • Dynamic PROJECT_ROOT detection in scripts for portability
  • Specific exception handling (OSError, IOError, PermissionError)
  • Portable documentation paths across platforms

📊 Phase 2 Progress

  • Completed: 3 of 10 functions refactored (30%)
  • Complexity Reduction: -20 points of -39 target (51% achieved)
  • Remaining: 7 functions with implementation plans ready
  • Health Score: On track for 75+ target

🔗 Related

  • Issue #240 - Code Quality Improvements (Phase 2)
  • PR #243 - Phase 2 Batch 1 Implementation
  • Previous: v8.34.0 (analytics.py refactored)

📖 Full Changelog

See CHANGELOG.md for complete details.

📦 Installation

pip install mcp-memory-service==8.35.0

Or with uv:

uv pip install mcp-memory-service==8.35.0

Docker:

docker pull ghcr.io/doobidoo/mcp-memory-service:v8.35.0

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

NewReleases is sending notifications on new releases.