cf-memory-mcp 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +104 -512
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -5,7 +5,9 @@
5
5
 
6
6
  A **best-in-class MCP (Model Context Protocol)** server for AI memory storage using **Cloudflare infrastructure**. This package provides AI coding agents with intelligent memory management featuring **smart auto-features**, **intelligent search**, **memory collections**, **temporal intelligence**, **multi-agent collaboration**, **advanced analytics**, and a **real-time analytics dashboard** with interactive visualizations and business intelligence.
7
7
 
8
- ## 🎯 Current Version: v2.12.1
8
+ ## 🎯 Current Version: v3.2.1 (Tool Consolidation Release)
9
+
10
+ **🔧 Major Update: Tool Consolidation** - Reduced from 95+ tools to 20 essential tools (79% reduction) for improved usability and performance.
9
11
 
10
12
  ## 📊 Real-time Analytics Dashboard
11
13
 
@@ -349,613 +351,203 @@ Add to your Claude Desktop MCP configuration:
349
351
  }
350
352
  ```
351
353
 
352
- ## 🔧 Available Tools
354
+ ## 🔧 Available Tools (v3.2.0 - Consolidated)
353
355
 
354
- The CF Memory MCP server provides comprehensive memory management tools:
356
+ The CF Memory MCP server provides **20 essential tools** (consolidated from 95+ tools for improved usability):
355
357
 
356
- ### Core Memory Operations
358
+ ### Core Memory Operations (5 tools)
357
359
 
358
360
  #### `store_memory`
359
-
360
361
  Store a new memory with optional metadata and tags.
361
362
 
362
363
  **Parameters:**
363
-
364
364
  - `content` (string, required) - The memory content
365
365
  - `tags` (array, optional) - Tags for categorization
366
366
  - `importance_score` (number, optional) - Importance score 0-10
367
367
  - `metadata` (object, optional) - Additional metadata
368
368
 
369
- #### `unified_search`
370
-
371
- Unified search interface that consolidates all search modes: basic, intelligent, temporal, and vectorize.
372
-
373
- **Parameters:**
374
-
375
- - `query` (string, optional) - Full-text or semantic search query
376
- - `tags` (array, optional) - Filter by specific tags
377
- - `limit` (number, optional) - Maximum results (default: 10)
378
- - `offset` (number, optional) - Results offset (default: 0)
379
- - `min_importance` (number, optional) - Minimum importance score
380
- - `semantic` (boolean, optional) - Use AI-powered semantic search
381
- - `similarity_threshold` (number, optional) - Minimum similarity for semantic search
382
-
383
369
  #### `retrieve_memory`
384
-
385
370
  Retrieve a specific memory by ID.
386
371
 
387
372
  **Parameters:**
388
-
389
373
  - `id` (string, required) - The unique memory ID
390
374
 
391
- ### Batch Operations
392
-
393
- #### `store_multiple_memories`
394
-
395
- Store multiple memories in a single batch operation.
396
-
397
- **Parameters:**
398
-
399
- - `memories` (array, required) - Array of memory objects to store
400
-
401
- #### `update_multiple_memories`
402
-
403
- Update multiple memories in a single batch operation.
375
+ #### `update_memory`
376
+ Update an existing memory.
404
377
 
405
378
  **Parameters:**
379
+ - `id` (string, required) - Memory ID to update
380
+ - `content` (string, optional) - New content
381
+ - `tags` (array, optional) - New tags
382
+ - `importance_score` (number, optional) - New importance score
383
+ - `metadata` (object, optional) - New metadata
406
384
 
407
- - `updates` (array, required) - Array of memory updates with ID and data
408
-
409
- #### `search_and_update`
410
-
411
- Search for memories and update them in one operation.
385
+ #### `delete_memory`
386
+ Delete a memory and its relationships.
412
387
 
413
388
  **Parameters:**
389
+ - `id` (string, required) - Memory ID to delete
414
390
 
415
- - `search` (object, required) - Search criteria
416
- - `update` (object, required) - Update data to apply
417
-
418
- ### Graph & Relationship Operations
419
-
420
- #### `traverse_memory_graph`
421
-
422
- Traverse the memory graph from a starting point to find connected memories.
423
-
424
- **Parameters:**
425
-
426
- - `start_memory_id` (string, required) - Starting memory ID
427
- - `relationship_types` (array, optional) - Filter by relationship types
428
- - `max_depth` (number, optional) - Maximum traversal depth (default: 3)
429
- - `direction` (string, optional) - Direction: 'outgoing', 'incoming', or 'both'
430
- - `min_strength` (number, optional) - Minimum relationship strength
431
-
432
- #### `find_memory_path`
433
-
434
- Find a path between two memories through relationships.
435
-
436
- **Parameters:**
437
-
438
- - `start_memory_id` (string, required) - Starting memory ID
439
- - `end_memory_id` (string, required) - Target memory ID
440
- - `relationship_types` (array, optional) - Filter by relationship types
441
- - `max_depth` (number, optional) - Maximum path length (default: 5)
442
- - `min_strength` (number, optional) - Minimum relationship strength
443
-
444
- #### `get_related_memories`
445
-
446
- Get memories related to a specific memory with various options.
391
+ #### `unified_search`
392
+ Unified search interface consolidating all search modes: basic, intelligent, temporal, and vectorize.
447
393
 
448
394
  **Parameters:**
449
-
450
- - `memory_id` (string, required) - Memory ID to find related memories for
451
- - `relationship_types` (array, optional) - Filter by relationship types
452
- - `min_strength` (number, optional) - Minimum relationship strength
395
+ - `query` (string, optional) - Full-text or semantic search query
396
+ - `mode` (string, optional) - Search mode: 'basic', 'intelligent', 'temporal', 'vectorize'
397
+ - `tags` (array, optional) - Filter by specific tags
453
398
  - `limit` (number, optional) - Maximum results (default: 10)
454
- - `include_indirect` (boolean, optional) - Include indirectly related memories
455
- - `max_hops` (number, optional) - Maximum hops for indirect relationships
456
-
457
- ## 🤖 Smart Auto-Features (v2.0.0)
458
-
459
- ### `suggest_relationships`
460
-
461
- Get intelligent relationship suggestions for a memory without automatically creating them.
462
-
463
- **Parameters:**
464
- - `memory_id` (string, required) - Memory ID to suggest relationships for
465
-
466
- **Returns:** Array of potential relationships with confidence scores and suggested actions.
467
-
468
- ### `detect_duplicates`
469
-
470
- Detect potential duplicate memories with similarity analysis and merge strategies.
471
-
472
- **Parameters:**
473
- - `memory_id` (string, optional) - Specific memory to check for duplicates
474
-
475
- **Returns:** Array of potential duplicates with similarity scores and merge suggestions.
476
-
477
- ### `suggest_tags`
478
-
479
- Get AI-powered tag suggestions based on content analysis and existing patterns.
480
-
481
- **Parameters:**
482
- - `content` (string, required) - Content to analyze for tag suggestions
483
- - `existing_tags` (array, optional) - Existing tags to exclude from suggestions
484
-
485
- **Returns:** Suggested tags with confidence scores and reasoning.
399
+ - `semantic` (boolean, optional) - Use AI-powered semantic search
400
+ - `time_context` (string, optional) - Temporal context: 'today', 'last_week', 'last_month'
486
401
 
487
- ### `calculate_auto_importance`
402
+ ### Analytics & System (3 tools)
488
403
 
489
- Calculate automatic importance score based on multiple factors.
404
+ #### `unified_analytics`
405
+ Unified analytics interface for memory, usage, patterns, system, and collaboration analytics.
490
406
 
491
407
  **Parameters:**
492
- - `memory_id` (string, required) - Memory ID to calculate importance for
493
-
494
- **Returns:** Importance score with detailed factor analysis and reasoning.
408
+ - `scope` (string, optional) - Analytics scope: 'memory', 'usage', 'patterns', 'system', 'collaboration'
409
+ - `time_range` (string, optional) - Time range: 'day', 'week', 'month'
410
+ - `analysis_type` (string, optional) - Analysis depth: 'basic', 'comprehensive', 'learning'
495
411
 
496
- ### `improve_memory_quality`
497
-
498
- **Quality Auto-Improvement Engine** - Enhance memory quality using AI to boost quality scores from 27% to 60%+.
412
+ #### `get_system_health_report`
413
+ Generate comprehensive system health report with actionable insights.
499
414
 
500
415
  **Parameters:**
501
- - `memory_id` (string, optional) - Specific memory ID to improve. If not provided, improves batch of low-quality memories
502
- - `batch_size` (number, optional) - Number of memories to process in batch (default: 20)
503
- - `target_quality_threshold` (number, optional) - Target quality threshold - memories above this score are skipped (default: 60)
504
- - `improvement_types` (array, optional) - Types of improvements to apply: content_expansion, importance_recalculation, tag_enhancement, relationship_building
505
- - `dry_run` (boolean, optional) - If true, only analyze and suggest improvements without applying them
506
-
507
- **Returns:** Detailed improvement report with before/after quality scores, applied changes, and quality statistics.
416
+ - `report_type` (string, optional) - Report type: 'summary', 'detailed', 'diagnostic'
417
+ - `time_range` (string, optional) - Time range: 'day', 'week', 'month'
418
+ - `include_recommendations` (boolean, optional) - Include optimization recommendations
508
419
 
509
- ## 🧠 Intelligent Search & Collections (v2.0.0)
510
-
511
- ### `intelligent_search`
512
-
513
- Advanced search combining semantic, keyword, and graph traversal with query expansion.
420
+ #### `get_cleanup_suggestions`
421
+ Get AI-powered cleanup suggestions for memory optimization.
514
422
 
515
423
  **Parameters:**
516
- - `query` (string, required) - Natural language search query
517
- - `auto_expand` (boolean, optional) - Automatically expand query with synonyms
518
- - `include_related` (number, optional) - Include related memories (number of hops)
519
- - `context_aware` (boolean, optional) - Apply context-aware ranking
520
- - `project_context` (string, optional) - Project context for ranking
424
+ - `suggestion_types` (array, optional) - Types: 'duplicates', 'low_quality', 'orphaned', 'outdated'
425
+ - `limit` (number, optional) - Maximum suggestions
521
426
 
522
- **Returns:** Search results with metadata about methods used and query expansion.
427
+ ### Unified Management Tools (6 tools)
523
428
 
524
- ### `create_collection`
525
-
526
- Create a memory collection with optional auto-include criteria.
429
+ #### `unified_relationships`
430
+ Manage memory relationships: create, update, list, delete.
527
431
 
528
432
  **Parameters:**
529
- - `name` (string, required) - Collection name
530
- - `description` (string, optional) - Collection description
531
- - `auto_include_criteria` (object, optional) - Criteria for auto-populating collection
532
- - `sharing_permissions` (object, optional) - Sharing and access permissions
533
-
534
- ### `project_onboarding`
433
+ - `action` (string, required) - Action: 'create', 'update', 'list', 'delete'
434
+ - `source_memory_id` (string, conditional) - Source memory ID (for create)
435
+ - `target_memory_id` (string, conditional) - Target memory ID (for create)
436
+ - `relationship_type` (string, conditional) - Relationship type
437
+ - `relationship_id` (string, conditional) - Relationship ID (for update/delete)
438
+ - `strength` (number, optional) - Relationship strength 0-1
535
439
 
536
- Smart workflow for automated project onboarding with knowledge extraction.
440
+ #### `unified_collections`
441
+ Manage memory collections: create, add, remove, get memories.
537
442
 
538
443
  **Parameters:**
539
- - `project_name` (string, required) - Name of the project
540
- - `project_description` (string, optional) - Project description
541
- - `technologies` (array, optional) - Technologies used in the project
542
- - `team_members` (array, optional) - Team members
543
- - `goals` (array, optional) - Project goals and objectives
444
+ - `action` (string, required) - Action: 'create', 'add', 'remove', 'get_memories', 'list'
445
+ - `name` (string, conditional) - Collection name (for create)
446
+ - `collection_id` (string, conditional) - Collection ID
447
+ - `memory_id` (string, conditional) - Memory ID (for add/remove)
544
448
 
545
- **Returns:** Complete onboarding results with key concepts, relationship map, knowledge gaps, and documentation suggestions.
546
-
547
- ## ⏰ Context-Aware & Temporal Intelligence (v2.2.0)
548
-
549
- ### `create_conversation_context`
550
-
551
- Create a new conversation context for tracking related memories.
449
+ #### `unified_optimization`
450
+ Run optimization operations: recommendations, comprehensive optimization.
552
451
 
553
452
  **Parameters:**
453
+ - `action` (string, required) - Action: 'get_recommendations', 'run_comprehensive'
454
+ - `optimization_scope` (string, optional) - Scope: 'quality', 'relationships', 'performance', 'comprehensive'
455
+ - `dry_run` (boolean, optional) - Preview changes without applying
554
456
 
555
- - `context_name` (string, required) - Name for the conversation context
556
- - `description` (string, optional) - Description of the context
557
- - `metadata` (object, optional) - Additional context metadata
558
-
559
- ### `activate_memory_in_context`
560
-
561
- Activate a memory within a specific conversation context.
457
+ #### `unified_batch_jobs`
458
+ Manage batch processing jobs: create, status, cancel, results.
562
459
 
563
460
  **Parameters:**
461
+ - `action` (string, required) - Action: 'create', 'status', 'cancel', 'results'
462
+ - `job_type` (string, conditional) - Job type (for create): 'quality_improvement', 'relationship_building', 'export', 'import'
463
+ - `job_id` (string, conditional) - Job ID (for status/cancel/results)
564
464
 
565
- - `memory_id` (string, required) - Memory ID to activate
566
- - `context_id` (string, required) - Context ID to activate memory in
567
- - `activation_strength` (number, optional) - Strength of activation (0-1)
568
-
569
- ### `get_context_memories`
570
-
571
- Get all memories associated with a conversation context.
465
+ #### `unified_system_alerts`
466
+ Manage system alerts: list, configure, resolve.
572
467
 
573
468
  **Parameters:**
469
+ - `action` (string, required) - Action: 'list', 'configure', 'resolve'
470
+ - `alert_id` (string, conditional) - Alert ID (for resolve)
471
+ - `alert_types` (array, optional) - Alert types to configure
472
+ - `thresholds` (object, optional) - Custom thresholds
574
473
 
575
- - `context_id` (string, required) - Context ID to get memories for
576
- - `include_inactive` (boolean, optional) - Include inactive memories
577
- - `sort_by_relevance` (boolean, optional) - Sort by temporal relevance
578
-
579
- ### `evolve_memory`
580
-
581
- Create a new version of a memory with evolution tracking.
582
-
583
- **Parameters:**
584
-
585
- - `memory_id` (string, required) - Original memory ID
586
- - `new_content` (string, required) - Updated content
587
- - `evolution_type` (string, required) - Type of evolution (refinement, expansion, correction)
588
- - `evolution_summary` (string, optional) - Summary of changes
589
-
590
- ### `analyze_memory_decay`
591
-
592
- Analyze temporal decay patterns for memories.
474
+ #### `unified_agent_handoff`
475
+ Manage agent handoff: get context, enable handoff, cleanup.
593
476
 
594
477
  **Parameters:**
478
+ - `action` (string, required) - Action: 'get_context', 'enable_handoff', 'cleanup'
479
+ - `session_id` (string, optional) - Session ID
595
480
 
596
- - `memory_id` (string, optional) - Specific memory to analyze
597
- - `time_range_days` (number, optional) - Time range for analysis (default: 30)
598
- - `include_predictions` (boolean, optional) - Include future decay predictions
481
+ ### Project Intelligence (1 tool)
599
482
 
600
- ### `analyze_temporal_relationships`
601
-
602
- Analyze how relationships evolve over time.
483
+ #### `get_complete_project_intelligence`
484
+ Unified project intelligence combining scanning, briefing, and handoff summary.
603
485
 
604
486
  **Parameters:**
487
+ - `project_path` (string, optional) - Path to project root
488
+ - `project_name` (string, optional) - Project name
489
+ - `briefing_type` (string, optional) - Briefing type: 'full', 'quick', 'technical', 'deployment', 'onboarding'
490
+ - `include_components` (array, optional) - Components: 'scan', 'briefing', 'handoff', 'list'
605
491
 
606
- - `relationship_id` (string, optional) - Specific relationship to analyze
607
- - `memory_id` (string, optional) - Memory ID to analyze relationships for
608
- - `time_range_days` (number, optional) - Time range in days (default: 30)
609
- - `include_predictions` (boolean, optional) - Include future predictions
610
-
611
- ## 🤝 Multi-Agent Collaboration (v2.3.0)
612
-
613
- ### `register_agent`
492
+ ### Multi-Agent Collaboration (3 tools)
614
493
 
494
+ #### `register_agent`
615
495
  Register a new agent in the system for collaboration.
616
496
 
617
497
  **Parameters:**
618
-
619
498
  - `name` (string, required) - Agent name
620
- - `type` (string, required) - Agent type: 'ai_agent', 'human_user', or 'system'
499
+ - `type` (string, required) - Agent type: 'ai_agent', 'human_user', 'system'
621
500
  - `description` (string, optional) - Agent description
622
501
  - `capabilities` (array, optional) - Agent capabilities
623
- - `metadata` (object, optional) - Agent metadata
624
-
625
- ### `create_memory_space`
626
502
 
503
+ #### `create_memory_space`
627
504
  Create a collaborative memory space for multi-agent sharing.
628
505
 
629
506
  **Parameters:**
630
-
631
507
  - `name` (string, required) - Memory space name
632
- - `description` (string, optional) - Space description
633
508
  - `owner_agent_id` (string, required) - Agent ID who owns this space
634
- - `space_type` (string, optional) - Type: 'private', 'collaborative', or 'public'
635
- - `access_policy` (string, optional) - Policy: 'open', 'invite_only', or 'restricted'
636
-
637
- ### `grant_space_permission`
638
-
639
- Grant permission to an agent for a memory space.
640
-
641
- **Parameters:**
642
-
643
- - `space_id` (string, required) - Memory space ID
644
- - `agent_id` (string, required) - Agent ID to grant permission to
645
- - `permission_level` (string, required) - Level: 'read', 'write', or 'admin'
646
- - `granted_by` (string, required) - Agent ID granting the permission
647
-
648
- ### `add_memory_to_space`
649
-
650
- Add a memory to a collaborative space.
651
-
652
- **Parameters:**
653
-
654
- - `memory_id` (string, required) - Memory ID to add
655
- - `space_id` (string, required) - Space ID to add memory to
656
- - `added_by` (string, required) - Agent ID adding the memory
657
- - `access_level` (string, optional) - Access level for this memory
658
-
659
- ### `get_agent_spaces`
509
+ - `space_type` (string, optional) - Type: 'private', 'collaborative', 'public'
510
+ - `access_policy` (string, optional) - Policy: 'open', 'invite_only', 'restricted'
660
511
 
512
+ #### `get_agent_spaces`
661
513
  Get all memory spaces accessible to an agent.
662
514
 
663
515
  **Parameters:**
664
-
665
516
  - `agent_id` (string, required) - Agent ID to get spaces for
666
517
 
667
- ### `get_space_memories`
668
-
669
- Get all memories in a space (requires permission).
670
-
671
- **Parameters:**
672
-
673
- - `space_id` (string, required) - Space ID to get memories from
674
- - `agent_id` (string, required) - Agent ID requesting access
675
-
676
- ## 🔄 Memory Synchronization (v2.3.0)
677
-
678
- ### `sync_memory`
679
-
680
- Synchronize a memory with another instance.
681
-
682
- **Parameters:**
683
-
684
- - `memory_id` (string, required) - Memory ID to synchronize
685
- - `target_instance` (string, required) - Target instance identifier
686
- - `force_sync` (boolean, optional) - Force sync even if already synced
687
- - `conflict_resolution` (string, optional) - Strategy: 'manual', 'auto_merge', 'source_wins', 'target_wins'
688
-
689
- ### `resolve_sync_conflict`
690
-
691
- Resolve a synchronization conflict.
692
-
693
- **Parameters:**
694
-
695
- - `conflict_id` (string, required) - Conflict ID to resolve
696
- - `resolution_method` (string, required) - Resolution method
697
- - `resolved_by` (string, required) - Agent ID resolving the conflict
698
- - `resolved_version` (object, optional) - Manually resolved version
699
-
700
- ### `get_sync_status`
701
-
702
- Get synchronization status for a memory.
703
-
704
- **Parameters:**
705
-
706
- - `memory_id` (string, required) - Memory ID to check sync status for
707
-
708
- ## 📤 Export/Import Operations (v2.3.0)
709
-
710
- ### `create_export_job`
518
+ ### Export/Import (2 tools)
711
519
 
520
+ #### `create_export_job`
712
521
  Create an export job for memories.
713
522
 
714
523
  **Parameters:**
715
-
716
524
  - `format` (string, required) - Export format: 'json', 'xml', 'markdown', 'csv', 'graphml'
525
+ - `initiated_by` (string, required) - Agent ID initiating export
717
526
  - `memory_ids` (array, optional) - Specific memory IDs to export
718
- - `space_ids` (array, optional) - Memory space IDs to export
719
527
  - `include_relationships` (boolean, optional) - Include memory relationships
720
- - `include_metadata` (boolean, optional) - Include full metadata
721
- - `initiated_by` (string, required) - Agent ID initiating export
722
-
723
- ### `get_export_job`
724
-
725
- Get export job status and download information.
726
-
727
- **Parameters:**
728
-
729
- - `job_id` (string, required) - Export job ID
730
-
731
- ### `create_import_job`
732
528
 
529
+ #### `create_import_job`
733
530
  Create an import job for memories.
734
531
 
735
532
  **Parameters:**
736
-
737
533
  - `format` (string, required) - Import format
738
534
  - `file_content` (string, required) - File content to import
739
- - `target_space_id` (string, optional) - Target space to import into
740
- - `conflict_resolution` (string, optional) - How to handle existing memories
741
535
  - `initiated_by` (string, required) - Agent ID initiating import
536
+ - `conflict_resolution` (string, optional) - How to handle existing memories: 'skip', 'overwrite', 'merge'
742
537
 
743
- ## 📊 Analytics & Monitoring (v2.3.0)
744
-
745
- ### ⚡ KV Optimization & Monitoring (v2.8.0)
746
-
747
- #### `get_kv_usage_stats`
748
-
749
- Get current KV storage usage statistics and daily limits.
750
-
751
- **Returns:** Current daily usage, remaining writes, usage percentage, and warnings.
752
-
753
- #### `get_kv_usage_trends`
754
-
755
- Get KV usage trends over the past week.
756
-
757
- **Returns:** Daily usage trends with writes, reads, deletes, and total operations.
758
-
759
- #### `get_cache_optimization_recommendations`
760
-
761
- Get recommendations for optimizing KV cache usage.
762
-
763
- **Returns:** Personalized optimization recommendations based on usage patterns.
764
-
765
- #### `migrate_analytics_to_d1`
766
-
767
- Migrate existing analytics data from KV to D1 database to reduce KV writes.
768
-
769
- **Returns:** Migration results with migrated keys and any errors.
770
-
771
- #### `flush_cache_queue`
772
-
773
- Manually flush the optimized cache write queue to KV storage.
774
-
775
- **Returns:** Cache statistics including in-memory entries and queue size.
776
-
777
- ### `track_memory_analytics`
778
-
779
- Track a memory analytics event.
780
-
781
- **Parameters:**
782
-
783
- - `memory_id` (string, required) - Memory ID
784
- - `agent_id` (string, required) - Agent ID performing the action
785
- - `action_type` (string, required) - Action: 'create', 'read', 'update', 'delete', 'search', 'relate'
786
- - `session_id` (string, optional) - Session identifier
787
- - `context_data` (object, optional) - Context data about the action
788
- - `performance_metrics` (object, optional) - Performance metrics
789
-
790
- ### `get_memory_analytics`
791
-
792
- Get memory usage analytics.
793
-
794
- **Parameters:**
795
-
796
- - `memory_id` (string, optional) - Specific memory ID
797
- - `agent_id` (string, optional) - Specific agent ID
798
- - `action_type` (string, optional) - Specific action type
799
- - `start_date` (string, optional) - Start date for analytics
800
- - `end_date` (string, optional) - End date for analytics
801
- - `limit` (number, optional) - Maximum number of results
802
-
803
- ### `get_collaboration_analytics`
804
-
805
- Get collaboration event analytics.
806
-
807
- **Parameters:**
808
-
809
- - `space_id` (string, optional) - Specific space ID
810
- - `agent_id` (string, optional) - Specific agent ID
811
- - `event_type` (string, optional) - Specific event type
812
- - `start_date` (string, optional) - Start date for analytics
813
- - `end_date` (string, optional) - End date for analytics
814
- - `limit` (number, optional) - Maximum number of results
815
-
816
- ## 🧠 Memory Intelligence Engine (v2.7.0)
817
-
818
- ### `initialize_adaptive_thresholds`
819
-
820
- Initialize adaptive thresholds for automated learning optimization.
821
-
822
- **Parameters:**
823
-
824
- - `threshold_types` (array, optional) - Types of thresholds to initialize (quality, relevance, importance, relationship_strength)
825
- - `baseline_values` (object, optional) - Optional baseline values for thresholds
826
-
827
- **Returns:** Number of thresholds initialized and their current values.
828
-
829
- ### `create_learning_experiment`
830
-
831
- Create a new learning experiment for A/B testing and optimization.
832
-
833
- **Parameters:**
834
-
835
- - `experiment_name` (string, required) - Name of the experiment
836
- - `experiment_type` (string, required) - Type of experiment (quality_improvement, relationship_discovery, tag_enhancement, content_expansion)
837
- - `hypothesis` (string, required) - Hypothesis being tested
838
- - `success_criteria` (object, required) - Success criteria for the experiment
839
- - `control_group_size` (number, optional) - Size of control group (default: 100)
840
- - `test_group_size` (number, optional) - Size of test group (default: 100)
841
- - `confidence_threshold` (number, optional) - Statistical confidence threshold (default: 0.95)
842
- - `created_by` (string, optional) - Creator of the experiment
843
-
844
- **Returns:** Experiment ID and creation confirmation.
845
-
846
- ### `run_ab_test`
847
-
848
- Run A/B test for a specific learning experiment.
849
-
850
- **Parameters:**
851
-
852
- - `experiment_id` (string, required) - ID of the experiment to run
853
- - `memory_ids` (array, required) - Memory IDs to include in the test
854
- - `test_strategy` (string, optional) - Strategy for splitting test groups (random_split, importance_based, content_length_based)
855
-
856
- **Returns:** Control and test group assignments with group sizes.
857
-
858
- ### `analyze_experiment_results`
859
-
860
- Analyze results from a learning experiment and make threshold adjustments.
861
-
862
- **Parameters:**
863
-
864
- - `experiment_id` (string, required) - ID of the experiment to analyze
865
- - `include_recommendations` (boolean, optional) - Include optimization recommendations (default: true)
866
-
867
- **Returns:** Number of adjustments made and optimization recommendations.
868
-
869
- ### `run_improvement_cycle`
870
-
871
- Run a complete self-improvement cycle with automated optimizations.
872
-
873
- **Parameters:**
874
-
875
- - `cycle_type` (string, optional) - Type of improvement cycle (full, quality_focused, relationship_focused, performance_focused)
876
- - `max_improvements` (number, optional) - Maximum number of improvements to apply (default: 5)
877
-
878
- **Returns:** Number of improvements applied, performance gain percentage, and next cycle scheduling.
879
-
880
- ## 🎯 Cloudflare Vectorize Integration (v2.8.1) - Paid Tier
881
-
882
- The Vectorize integration provides lightning-fast semantic search using Cloudflare's dedicated vector database. This paid tier enhancement offers superior performance compared to D1-based embeddings with 50M queries/month and 10M stored dimensions/month.
883
-
884
- ### Setup Instructions
885
-
886
- For paid tier users, enable Vectorize with:
887
-
888
- ```bash
889
- # Setup Vectorize index and configuration
890
- npm run setup-vectorize
891
-
892
- # Deploy with Vectorize enabled
893
- npm run setup-paid-tier
894
- ```
895
-
896
- This creates the `cf-memory-embeddings` Vectorize index with 768 dimensions (BGE-base-en-v1.5 compatible) and cosine similarity metric.
897
-
898
- ### Hybrid D1+Vectorize Architecture
899
-
900
- The system uses a hybrid approach combining both databases:
901
-
902
- - **D1 Database**: Stores all memory metadata, content, tags, relationships, and serves as fallback for semantic search
903
- - **Vectorize**: Stores only vector embeddings for ultra-fast semantic similarity search
904
- - **Hybrid Search Flow**: Vectorize finds similar vectors → D1 enriches with full memory data → ranked results returned
905
- - **Fallback Mechanism**: If Vectorize fails, system automatically uses D1-based semantic search
906
- - **Data Consistency**: Both databases stay synchronized when memories are created/updated/deleted
907
-
908
- ### `vectorize_semantic_search`
909
-
910
- Perform advanced semantic search using Cloudflare Vectorize for superior speed and accuracy.
911
-
912
- **Parameters:**
913
-
914
- - `query` (string, required) - Search query for semantic similarity
915
- - `limit` (number, optional) - Maximum number of results (default: 10)
916
- - `filter` (object, optional) - Metadata filters to apply
917
- - `return_vectors` (boolean, optional) - Include vector data in results (default: false)
918
-
919
- **Returns:** Array of search results with similarity scores, metadata, and optional vector data.
920
-
921
- ### `vectorize_find_similar`
922
-
923
- Find memories similar to a specific memory using vector similarity.
924
-
925
- **Parameters:**
926
-
927
- - `memory_id` (string, required) - Memory ID to find similar memories for
928
- - `limit` (number, optional) - Maximum number of results (default: 10)
929
- - `similarity_threshold` (number, optional) - Minimum similarity score (default: 0.7)
930
- - `exclude_self` (boolean, optional) - Exclude the source memory from results (default: true)
931
-
932
- **Returns:** Array of similar memories with similarity scores and metadata.
933
-
934
- ### `vectorize_cluster_memories`
935
-
936
- Perform AI-powered clustering analysis using vector similarity to group related memories.
937
-
938
- **Parameters:**
939
-
940
- - `memory_ids` (array, required) - Array of memory IDs to cluster
941
- - `cluster_count` (number, optional) - Number of clusters to create (default: 5)
942
-
943
- **Returns:** Array of clusters with cluster IDs, memory IDs in each cluster, and centroid similarity scores.
944
-
945
- ### `vectorize_index_stats`
946
-
947
- Get statistics and information about the Vectorize index.
948
-
949
- **Returns:** Index statistics including dimensions, vector count, and configuration details.
950
-
951
- ### Paid Tier Benefits
538
+ ---
952
539
 
953
- - **50M Queries/Month**: Massive query capacity for high-volume applications
954
- - **10M Stored Dimensions/Month**: Store millions of memory vectors
955
- - **33x More KV Writes**: Increased from 1,000 to 33,333 daily KV operations
956
- - **10x Larger Batches**: Process up to 500 memories per batch operation
957
- - **6x Faster Learning**: Learning cycles run every 5 minutes instead of 30 minutes
958
- - **50-70% Performance Boost**: Significantly faster response times through optimized caching
540
+ ### Tool Consolidation Summary (v3.2.0)
541
+
542
+ | Category | Tools | Description |
543
+ |----------|-------|-------------|
544
+ | Core CRUD | 5 | store, retrieve, update, delete, unified_search |
545
+ | Analytics | 3 | unified_analytics, health_report, cleanup_suggestions |
546
+ | Unified Management | 6 | relationships, collections, optimization, batch_jobs, alerts, handoff |
547
+ | Project Intelligence | 1 | get_complete_project_intelligence |
548
+ | Collaboration | 3 | register_agent, create_memory_space, get_agent_spaces |
549
+ | Export/Import | 2 | create_export_job, create_import_job |
550
+ | **Total** | **20** | Reduced from 95+ tools (79% reduction) |
959
551
 
960
552
  ## 🌐 Architecture
961
553
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-memory-mcp",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Best-in-class MCP (Model Context Protocol) server for AI memory storage with MIRIX-Inspired Specialized Memory Types (Core, Episodic, Semantic, Procedural, Resource, Knowledge Vault), Progressive Disclosure, AI-Powered Summaries, Context Window Optimization, Summary Memory Feature (TL;DR), Enhanced JSON Processing, Temporal Relationship Tracking, AI-Enhanced Context-Aware + Temporal Intelligence, Smart Tool Recommendation Engine, Memory Intelligence Engine, autonomous optimization, A/B testing, self-improving algorithms, intelligent search, smart auto-features, memory collections, project onboarding workflows, advanced lifecycle management, Project Intelligence for seamless agent handoff, and Unified Project Intelligence Tool with 57% performance improvement",
5
5
  "main": "bin/cf-memory-mcp.js",
6
6
  "bin": {