Skip to content

Release v2.2.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 04:39
· 39 commits to main since this release

DevMind MCP v2.2.0

Major Features

AI Enhancement Suite - 7 new intelligent modules for automated context processing:

1. Smart Query Enhancer

  • 11 search templates for code_search, bug_fix, test_search, etc.
  • 266+ Chinese-English synonym mappings for improved recall
  • Query intent detection with automatic keyword expansion
  • File type weighting based on query intent

2. Auto Memory Classifier

  • 18 context types automatic classification (CODE_CREATE, CODE_MODIFY, BUG_FIX, etc.)
  • Force remember detection for IMPORTANT/CRITICAL keywords
  • Memory tier decision: silent/notify/none
  • Impact level assessment: breaking/major/minor/patch

3. Context Enricher

  • 25+ programming language detection
  • Function/class/component extraction from code
  • Business domain analysis (15 domains: auth, payment, database, API, etc.)
  • Issue/PR number extraction (#123, PR #456 patterns)
  • Auto tag generation and code quality scoring

4. Batch Processor

  • 100+ item parallel processing for bulk operations
  • Multi-file change aggregation with transaction support
  • Configurable concurrency control with deduplication
  • Large batch optimization (1000+ → 100 items)

5. Performance Optimizer

  • Multi-level caching with LRU + TTL strategy
  • Retry mechanism with exponential backoff (3 attempts default)
  • Performance monitoring with metrics tracking
  • Decorator pattern: @cached, @monitored

6. Session Auto-Caching

  • Cross-tool session awareness and automatic reuse
  • 50%+ reduction in duplicate database queries

7. Enhanced File Detection

  • Git integration for detecting modified/staged files
  • Content analysis for extracting file paths
  • Multi-file auto-detection converting to files_changed format
  • Confidence-based file suggestion ranking

Technical Improvements

MCP Server Integration

  • All 7 AI enhancement modules fully integrated into handleRecordContext and handleSemanticSearch
  • Automatic type classification: No need to manually specify context_type
  • Query enhancement: Automatic synonym expansion and intent detection
  • Context enrichment: Automatic metadata extraction (functions, business domains, tags)

Testing Results

  • 33 test cases with 87.88% pass rate
  • Performance benchmarks: 3ms classification, 2ms enrichment, 1ms query enhancement (100 operations)
  • TypeScript compilation: No errors, full build success

Code Statistics

Total Added: ~3,600 lines across 8 files

  • src/mcp-server.ts: +104 lines (AI integration)
  • src/session-manager.ts: +193 lines (auto-caching)
  • src/utils/query-enhancer.ts: +524 lines (search enhancement)
  • src/utils/auto-memory-classifier.ts: +499 lines (auto-classification)
  • src/utils/context-enricher.ts: +597 lines (context enrichment)
  • src/utils/batch-processor.ts: +538 lines (batch processing)
  • src/utils/performance-optimizer.ts: +574 lines (performance)
  • test-ai-enhancements.js: +527 lines (test suite)

User Experience

Before:

  • Manual context type specification required
  • Basic keyword search with limited recall
  • No automatic metadata extraction
  • Manual file tracking needed

After:

  • AI automatically classifies context types with 70%+ confidence
  • Intelligent search with synonym expansion and template matching
  • Automatic extraction of functions, classes, business domains, tags
  • Complete file change tracking with Git integration

Backward Compatibility

  • 100% backward compatible: All existing API calls work unchanged
  • No configuration required: AI enhancements activate automatically
  • Opt-in behavior: If user provides files_changed, auto-detection is skipped

Version Upgrade

  • package.json: 2.1.15 → 2.2.0
  • src/mcp-server.ts: Version string updated to 2.2.0


Installation

Via npx (recommended, no installation needed):

npx -y devmind-mcp@2.2.0

Or install globally:

npm install -g devmind-mcp@2.2.0

NPM Package

Documentation