Shared boocontext MCP client (boocontext_client.ts) wrapping the existing mcp-client.ts callTool() infrastructure with 32KB truncation and error handling. Used by get_code_health. 4 new first-class agent tools backed by the boocontext MCP server: - get_code_health — A-F grades per file across 7 dimensions, project health summary, refactoring candidates (wraps boocontext_health) - get_code_impact — merged symbol trace + blast radius in one call (wraps boocontext_impact, replaces two-step get_symbol_info+get_blast_radius) - get_type_info — TypeScript type recovery via type-inject MCP (wraps boocontext_types, returns signatures, interfaces, generics, JSDoc) - get_code_map — DCP-compressed context map with compress toggle (wraps boocontext_map, 10x token reduction vs full scan) All 4 registered in ALL_TOOLS as read-only tools.
21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
// codecontext tool registry. Re-exports ToolDefs so tools.ts can pull them
|
|
// in one line. v1.12: 8 original tools. v1.16: +4 codesight-merge tools.
|
|
|
|
export { getCodebaseOverview } from './get_codebase_overview.js';
|
|
export { getFileAnalysis } from './get_file_analysis.js';
|
|
export { getSymbolInfo } from './get_symbol_info.js';
|
|
export { searchSymbols } from './search_symbols.js';
|
|
export { getDependencies } from './get_dependencies.js';
|
|
export { watchChanges } from './watch_changes.js';
|
|
export { getSemanticNeighborhoods } from './get_semantic_neighborhoods.js';
|
|
export { getFrameworkAnalysis } from './get_framework_analysis.js';
|
|
export { getBlastRadius } from './get_blast_radius.js';
|
|
export { getHotFiles } from './get_hot_files.js';
|
|
export { getRoutes } from './get_routes.js';
|
|
export { getMiddleware } from './get_middleware.js';
|
|
// v2.8.14-domain2-phase1: boocontext-backed tools.
|
|
export { getCodeHealth } from './get_code_health.js';
|
|
export { getCodeImpact } from './get_code_impact.js';
|
|
export { getTypeInfo } from './get_type_info.js';
|
|
export { getCodeMap } from './get_code_map.js';
|