You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(mcp): refactor dev_inspect and optimize pattern analysis
BREAKING CHANGE: dev_inspect no longer requires 'action' parameter
Major Changes:
- Refactored dev_inspect to single-purpose tool
(finds similar files + pattern analysis)
- Created PatternAnalysisService with 5 pattern extractors
(imports, error handling, types, testing, size)
- Optimized pattern analysis with batch scanning (5-10x faster)
- Fixed semantic search to use document embeddings
instead of path strings
- Fixed --force flag to properly clear vector store
- Removed outputSchema from all 9 MCP adapters
to fix Cursor/Claude compatibility
- Added extension filtering for relevant file comparisons
Performance Improvements:
- Batch scan all files in one pass
(1 ts-morph initialization vs 6)
- Added searchByDocumentId for embedding-based similarity
- Pattern analysis now 500-1000ms (down from 2-3 seconds)
Bug Fixes:
- Fixed findSimilar to search by embeddings, not file paths
- Fixed force re-index to actually clear old data
- Fixed race condition in LanceDB table creation
- Fixed all MCP protocol compliance issues
New Features:
- Test utilities in core/utils
(reusable isTestFile, findTestFile)
- Vector store clear() method
- searchByDocumentId() for similarity search
- Comprehensive pattern analysis (5 categories)
Documentation:
- Updated README.md with pattern categories
- Updated CLAUDE.md with new dev_inspect description
- Complete rewrite of dev-inspect.mdx website docs
- Added migration guide from dev_explore
Tests:
- All 1100+ tests passing
- Added 10 new test-utils tests
- Pattern analysis service fully tested
0 commit comments