github doobidoo/mcp-memory-service v10.0.0
v10.0.0 - Major API Redesign: 64% Tool Consolidation

latest releases: v10.49.4, v10.49.3, v10.49.2...
3 months ago

v10.0.0 - Major API Redesign: 64% Tool Consolidation

Overview

The most significant API redesign in MCP Memory Service history - consolidating 34 tools into 12 unified tools for better usability, maintainability, and MCP best practices compliance. While technically maintaining 100% backwards compatibility, this represents a new generation of the API architecture.

Key Achievements

  • 64% Tool Reduction: 34 tools → 12 tools with enhanced capabilities
  • 100% Backwards Compatibility: All 33 deprecated tools continue working with deprecation warnings
  • Zero Breaking Changes: Existing integrations work unchanged until v11.0.0
  • Enhanced Capabilities: New unified tools offer combined functionality (e.g., filter by tags + time range)
  • Comprehensive Testing: 62 new tests added (100% pass rate, 968 total tests)
  • Migration Guide: Complete documentation in docs/MIGRATION.md

Tool Consolidation Summary

Delete Operations (6 → 1)

  • delete_memory, delete_by_tag, delete_by_tags, delete_by_all_tags, delete_by_timeframe, delete_before_date
  • Unified as: memory_delete with combined filters (tags + time range + dry_run mode)

Search Operations (6 → 1)

  • retrieve_memory, recall_memory, recall_by_timeframe, retrieve_with_quality_boost, exact_match_retrieve, debug_retrieve
  • Unified as: memory_search with modes (semantic/exact/hybrid), quality boost, and time filtering

Consolidation Operations (7 → 1)

  • consolidate_memories, consolidation_status, consolidation_recommendations, scheduler_status, trigger_consolidation, pause_consolidation, resume_consolidation
  • Unified as: memory_consolidate with action parameter (run/status/recommend/scheduler/pause/resume)

Ingestion Operations (2 → 1)

  • ingest_document, ingest_directory
  • Unified as: memory_ingest with automatic directory detection

Quality Operations (3 → 1)

  • rate_memory, get_memory_quality, analyze_quality_distribution
  • Unified as: memory_quality with action parameter (rate/get/analyze)

Graph Operations (3 → 1)

  • find_connected_memories, find_shortest_path, get_memory_subgraph
  • Unified as: memory_graph with action parameter (connected/path/subgraph)

Simple Renames (5 tools)

  • store_memorymemory_store
  • check_database_healthmemory_health
  • get_cache_statsmemory_stats
  • cleanup_duplicatesmemory_cleanup
  • update_memory_metadatamemory_update

New Tool

  • memory_list - Browse memories with pagination (replaces search_by_tag with enhanced features)

Deprecation Architecture

New Compatibility Layer: src/mcp_memory_service/server/compat.py (318 lines)

  • Centralized DEPRECATED_TOOLS mapping with migration hints
  • Automatic warning emission for deprecated tool usage
  • Clean delegation to new unified handlers
  • Zero performance overhead for new tools

Deprecation Timeline:

  • v10.0+: All old tools work with warnings (current release)
  • v11.0: Old tools removed (breaking change, date TBD)

Migration Guide

For Existing Users:

  1. No Action Required: Old tool names continue working
  2. Optional: Update to new tool names to eliminate deprecation warnings
  3. Follow Migration Guide: docs/MIGRATION.md provides mapping for all tools
  4. Timeline: Update before v11.0.0 (removal date TBD)

Example Migration:

# Old (v9.x) - Still works in v10.0 with warning
{"tool": "retrieve_memory", "query": "python", "n_results": 5}

# New (v10.0+) - No warnings
{"tool": "memory_search", "query": "python", "limit": 5, "mode": "semantic"}

Enhanced Capabilities:

# Old (v9.x) - Required multiple tool calls
delete_by_tags(tags=["temp"])  # First call
delete_by_timeframe(start="2024-01-01")  # Second call

# New (v10.0+) - Single unified call
memory_delete(tags=["temp"], after="2024-01-01", tag_match="any")

Technical Improvements

Code Quality:

  • Reduced API surface area by 64%
  • Eliminated duplicate validation logic across 33 handlers
  • Improved maintainability with unified error handling
  • Better parameter naming consistency

Testing:

  • 62 new comprehensive tests covering all tool migrations
  • 100% test pass rate maintained (968 total tests)
  • Validation of deprecation warnings and parameter transformations

Documentation:

  • Complete migration guide with side-by-side examples
  • Deprecation warnings with actionable migration hints
  • Updated MCP schema with new tool definitions
  • CLAUDE.md updated with new tool reference

Installation

PyPI (recommended):

pip install --upgrade mcp-memory-service

From source:

git clone https://github.com/doobidoo/mcp-memory-service.git
cd mcp-memory-service
pip install -e .

Breaking Changes

None - this is a backwards-compatible major version. All 33 deprecated tools continue working with warnings.

Related Issues

  • Closes #372 - MCP Tool Optimization
  • Related #374 - Follow-up performance optimizations

Contributors

Special thanks to the community for feedback on API design and testing the deprecation layer during development.


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

Migration Guide: https://github.com/doobidoo/mcp-memory-service/blob/main/docs/MIGRATION.md

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

NewReleases is sending notifications on new releases.