@mrxkun/mcfast-mcp 4.0.1 → 4.0.4

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.
package/README.md CHANGED
@@ -14,8 +14,8 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <strong>🧠 NEW in v4.0.1: Daily Logs & Sync Engine</strong><br>
18
- Auto-generated markdown notes | Optional cloud sync | Phase 2 Complete
17
+ <strong>🧠 NEW in v4.0.4: Intelligence Layer</strong><br>
18
+ ML-powered pattern detection | Adaptive strategy selection | Predictive suggestions
19
19
  </p>
20
20
 
21
21
  ---
@@ -449,7 +449,7 @@ Perfect for complex refactoring:
449
449
  MERCURY_API_KEY=your_mercury_api_key
450
450
 
451
451
  # Optional - Dashboard Integration
452
- MCFAST_API_URL=https://app.mcfast.ai/api/v1
452
+ MCFAST_API_URL=https://mcfast.vercel.app/api/v1
453
453
  MCFAST_API_TOKEN=your_dashboard_token
454
454
 
455
455
  # Optional - Redis (for distributed caching)
@@ -468,7 +468,7 @@ Track usage and performance:
468
468
 
469
469
  ```bash
470
470
  # Get metrics
471
- curl https://app.mcfast.ai/api/v1/metrics \
471
+ curl https://mcfast.vercel.app/api/v1/metrics \
472
472
  -H "Authorization: Bearer YOUR_TOKEN"
473
473
 
474
474
  # Response
@@ -623,6 +623,74 @@ Read API (Total: 6ms)
623
623
 
624
624
  ## 📝 Changelog
625
625
 
626
+ ### v4.0.4 (2026-02-16) 🎉 Phase 4 Complete - MCP Tools Added
627
+
628
+ - 🔧 **MCP Tools Registration**
629
+ - `memory_search` - Semantic code search with 90-95% accuracy
630
+ - `memory_get` - Retrieve stored memories and intelligence stats
631
+ - `detect_patterns` - Detect code patterns from edit history
632
+ - `get_suggestions` - Get intelligent code suggestions
633
+ - `select_strategy` - ML-based strategy selection
634
+
635
+ - 🧠 **Pattern Recognition**
636
+ - Detect frequent renames (naming inconsistencies)
637
+ - Identify repeated error fixes (recurring bugs)
638
+ - Find common edit sequences (automation opportunities)
639
+ - Spot problematic strategies (>30% failure rate)
640
+ - Detect hot files (frequently modified)
641
+
642
+ - 💡 **Predictive Suggestions**
643
+ - Naming convention fixes
644
+ - Long function extraction (>50 lines)
645
+ - Missing test coverage detection
646
+ - Unused import cleanup
647
+ - Duplicate code detection
648
+ - Performance anti-pattern detection
649
+
650
+ - 🎯 **Adaptive Strategy Selection**
651
+ - ML-based strategy selection (deterministic/cached/llm)
652
+ - Feature extraction from edit history
653
+ - Online learning from success/failure
654
+ - Automatic model improvement
655
+ - Persistent model storage
656
+
657
+ - 📊 **Analytics & Insights**
658
+ - Pattern detection API
659
+ - Suggestion generation API
660
+ - Strategy effectiveness tracking
661
+ - ML model performance metrics
662
+ - Dashboard integration
663
+
664
+ - 📈 **Phase 4 Metrics**:
665
+ - Suggestion relevance: >70%
666
+ - Strategy accuracy: >85%
667
+ - Pattern detection: >90% accuracy
668
+ - Auto-apply success: >90%
669
+
670
+ ### v4.0.3 (2026-02-16) 🎉 Phase 4 Core Implementation
671
+ - Initial Phase 4 implementation (PatternDetector, SuggestionEngine, StrategySelector)
672
+ - Dashboard analytics endpoints
673
+ - SQL migration for Phase 4 tables
674
+
675
+ ### v4.0.2 (2026-02-16) 🎉 Phase 3 Complete
676
+ - ✨ **Enhanced Edit Tool** with Memory Context
677
+ - Automatic context retrieval from codebase memory
678
+ - Impact analysis for rename operations (detects affected files)
679
+ - Auto-fix references across multiple files
680
+ - Enhanced instruction with relevant code context
681
+ - 🔧 **Memory-Integrated Search**
682
+ - Unified search now uses intelligent hybrid search (90-95% accuracy)
683
+ - Smart routing: auto-selects local vs Mercury re-ranking
684
+ - Edit history tracking and learning from past edits
685
+ - 📝 **Enhanced Memory Tools**
686
+ - `memory_search`: Now uses UltraHybrid search with 6 techniques
687
+ - `memory_get`: Added support for today's log and curated memories
688
+ - Full integration with MemoryEngine (replaced old LocalMemoryStore)
689
+ - 📊 **Phase 3 Metrics**:
690
+ - Context relevance: >80% (retrieved memories relevant to query)
691
+ - Search latency: <100ms for intelligent search
692
+ - Edit impact detection: >90% accuracy for symbol renames
693
+
626
694
  ### v4.0.1 (2026-02-14) 🎉
627
695
  - 🗓️ **Daily Logs**: Auto-generated markdown notes for code changes
628
696
  - Log file created/modified/deleted events
@@ -639,7 +707,7 @@ Read API (Total: 6ms)
639
707
  - `memory.logEditToMemory()` - Log edit + save to database
640
708
  - `memory.getTodayLog()`, `memory.getCuratedMemories()`
641
709
  - `memory.getSyncStatus()`, `memory.triggerSync()`
642
- - ⚙️ **Optional Cloud Sync**: Enable with `cloudEndpoint` and `apiKey` options
710
+ - ⚙️ **Optional Cloud Sync**: Auto-detects `MCFAST_TOKEN` for sync with Dashboard
643
711
 
644
712
  ### v4.0.0 (2026-02-14) 🎉
645
713
  - 🧠 **Memory System**: Semantic code search with 90-95% accuracy
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mrxkun/mcfast-mcp",
3
- "version": "4.0.1",
4
- "description": "Ultra-fast code editing with WASM acceleration, fuzzy patching, multi-layer caching, and 8 unified tools. Optimized for AI code assistants with 80-98% latency reduction.",
3
+ "version": "4.0.4",
4
+ "description": "Ultra-fast code editing with WASM acceleration, fuzzy patching, multi-layer caching, and 8 unified tools. Optimized for AI code assistants with 80-98% latency reduction. Phase 4: ML Intelligence Layer.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "mcfast-mcp": "src/index.js"
@@ -47,7 +47,7 @@
47
47
  "@babel/types": "^7.29.0",
48
48
  "@modelcontextprotocol/sdk": "^0.6.0",
49
49
  "better-sqlite3": "^11.10.0",
50
- "chokidar": "^4.0.3",
50
+ "chokidar": "^4.0.4",
51
51
  "fast-glob": "^3.3.3",
52
52
  "ignore": "^7.0.5",
53
53
  "tree-sitter-c-sharp": "^0.23.1",