1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Analysis tool handlers for the pmcp-based MCP server.
//!
//! This module contains tool handlers for various code analysis operations
//! including complexity analysis, technical debt detection, and code quality metrics.
//!
//! # Module Structure
//!
//! The implementation is split across include files for maintainability:
//! - `analyze_complexity_handler.rs` — Complexity analysis tool
//! - `analyze_debt_handlers.rs` — SATD and dead code analysis tools
//! - `analyze_metrics_handlers.rs` — Lint hotspot, churn, and coupling tools
//! - `analyze_tdg_tool_handlers.rs` — TDG scoring and comparison tools
//! - `analyze_handlers_tests.rs` — Unit tests (complexity, debt, metrics)
//! - `analyze_handlers_tests_tdg.rs` — Unit tests (TDG, deserialization, integration)
use cratetool_functions;
use crate;
use async_trait;
use ToolInfo;
use ;
use Deserialize;
use ;
use PathBuf;
use debug;
// Re-export for convenience.
//
// NOTE (R17-1): AnalyzeDagTool / AnalyzeDeepContextTool / AnalyzeBigOTool are
// *not* aliases for LintHotspotTool / ChurnTool / CouplingTool. They are
// distinct structs defined below that dispatch to the correct
// `tool_functions::*` implementation. The earlier aliases mis-routed three
// MCP tools (see R15 #3 bench matrix).
pub use ;
// Complexity analysis tool handler
include!;
// SATD and dead code analysis tool handlers
include!;
// Lint hotspot, churn, and coupling analysis tool handlers
include!;
// TDG scoring and comparison tool handlers
include!;
// Tests: complexity, debt, and metrics tool handlers
include!;
// Tests: TDG tools, deserialization, and integration tests
include!;