Coverage for /Users/les/Projects/crackerjack/crackerjack/mcp/tools/intelligence_tool_registry.py: 0%

14 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-09-03 15:39 -0700

1from .intelligence_tools import ( 

2 analyze_agent_performance, 

3 execute_smart_agent_task, 

4 get_intelligence_system_status, 

5 get_smart_agent_recommendation, 

6) 

7 

8 

9def register_intelligence_tools(mcp_app) -> None: 

10 @mcp_app.tool() 

11 async def execute_smart_task( 

12 task_description: str, 

13 context_type: str = "general", 

14 strategy: str = "single_best", 

15 max_agents: int = 3, 

16 use_learning: bool = True, 

17 ): 

18 return await execute_smart_agent_task( 

19 task_description, 

20 context_type, 

21 strategy, 

22 max_agents, 

23 use_learning, 

24 ) 

25 

26 @mcp_app.tool() 

27 async def get_agent_recommendation( 

28 task_description: str, 

29 context_type: str = "general", 

30 include_analysis: bool = True, 

31 ): 

32 return await get_smart_agent_recommendation( 

33 task_description, 

34 context_type, 

35 include_analysis, 

36 ) 

37 

38 @mcp_app.tool() 

39 async def intelligence_system_status(): 

40 return await get_intelligence_system_status() 

41 

42 @mcp_app.tool() 

43 async def agent_performance_analysis(): 

44 return await analyze_agent_performance()