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
//! MCP tool definitions and dispatch for the code graph.
//!
//! Split into two sub-modules:
//! - `definitions`: JSON Schema tool descriptors (`def_*` functions)
//! - `handlers`: tool call implementations (`handle_*` functions)
use ;
use Value;
pub use get_tool_definitions;
pub use handle_tool_call;
/// Maximum character length for a tool response before truncation.
const MAX_RESPONSE_CHARS: usize = 15_000;
/// A tool definition exposed by the MCP server.
/// The result of a tool call, including the JSON response and the file
/// paths that were touched (used to track saved tokens).