|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 1.8.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#188](https://github.com/sapientpants/deepsource-mcp-server/pull/188) [`1f08756`](https://github.com/sapientpants/deepsource-mcp-server/commit/1f087560776a215db89ac2caa7e20f6f4af505fc) - Consolidate to single canonical entrypoint and registry |
| 8 | + |
| 9 | + This refactoring consolidates multiple entry points and tool registry implementations into a single, feature-flag-controlled architecture, addressing technical debt and simplifying the codebase. |
| 10 | + |
| 11 | + ### New Features |
| 12 | + - **Feature Flags System**: Control experimental features via environment variables |
| 13 | + - `FEATURE_TOOL_DISCOVERY`: Enable automatic tool discovery from filesystem |
| 14 | + - `FEATURE_ENHANCED_LOGGING`: Enable additional debug information |
| 15 | + - `FEATURE_METRICS`: Enable metrics collection (future) |
| 16 | + - `FEATURE_CACHE`: Enable caching layer (future) |
| 17 | + - **Unified Tool Registry**: All registry functionality now in single `ToolRegistry` class |
| 18 | + - Tool discovery (when feature flag enabled) |
| 19 | + - Metadata support for categorization and filtering |
| 20 | + - Enhanced tool information methods |
| 21 | + - **Consolidated Configuration**: Centralized configuration management |
| 22 | + - `config/features.ts`: Feature flag management |
| 23 | + - `config/default.ts`: Default configurations |
| 24 | + - Environment-specific settings |
| 25 | + |
| 26 | + ### Improvements |
| 27 | + - Single entry point (`src/index.ts`) for all server startup scenarios |
| 28 | + - Consistent module structure with clear boundaries |
| 29 | + - Reduced code duplication and maintenance burden |
| 30 | + - Better separation between core and experimental features |
| 31 | + - Improved testability with feature flag control |
| 32 | + |
| 33 | + ### Deprecations (Backward Compatible) |
| 34 | + |
| 35 | + The following are deprecated but still functional with warnings: |
| 36 | + - `src/index-registry.ts` → Use `src/index.ts` |
| 37 | + - `src/server/index-enhanced.ts` → Features integrated into main server |
| 38 | + - `src/server/tool-registry-enhanced.ts` → Features merged into `ToolRegistry` |
| 39 | + - `validateEnvironment()` → Use `getConfig()` from `config/index.js` |
| 40 | + - `createAndConfigureToolRegistry()` → Use `DeepSourceMCPServer.create()` |
| 41 | + |
| 42 | + ### Migration |
| 43 | + - No breaking changes - existing code continues to work |
| 44 | + - See MIGRATION.md for detailed migration instructions |
| 45 | + - Deprecation warnings guide users to new patterns |
| 46 | + - Feature flags default to `false` for backward compatibility |
| 47 | + |
| 48 | + ### Technical Details |
| 49 | + - Eliminates circular dependencies |
| 50 | + - Follows SOLID principles and DRY |
| 51 | + - Maintains 100% backward compatibility |
| 52 | + - Sets foundation for future extensibility |
| 53 | + |
3 | 54 | ## 1.7.1 |
4 | 55 |
|
5 | 56 | ### Patch Changes |
|
0 commit comments