@@ -43,6 +43,7 @@ class AgentCoder(Coder):
4343 def __init__ (self , * args , ** kwargs ):
4444 self .recently_removed = {}
4545 self .tool_usage_history = []
46+ self .loaded_custom_tools = []
4647 self .tool_usage_retries = 20
4748 self .last_round_tools = []
4849 self .tool_call_vectors = []
@@ -90,6 +91,7 @@ def __init__(self, *args, **kwargs):
9091 self .agent_config = self ._get_agent_config ()
9192 self ._setup_agent ()
9293 ToolRegistry .build_registry (agent_config = self .agent_config )
94+ self .loaded_custom_tools = ToolRegistry .loaded_custom_tools
9395 super ().__init__ (* args , ** kwargs )
9496
9597 def _setup_agent (self ):
@@ -196,6 +198,9 @@ def _initialize_skills_manager(self, config):
196198
197199 def show_announcements (self ):
198200 super ().show_announcements ()
201+ if self .loaded_custom_tools :
202+ self .io .tool_output (f"Loaded custom tools: { ', ' .join (self .loaded_custom_tools )} " )
203+
199204 skills = self .skills_manager .find_skills ()
200205 if skills :
201206 skills_list = []
@@ -295,21 +300,6 @@ async def _execute_local_tool_calls(self, tool_calls_list):
295300 tasks .append (result )
296301 else :
297302 tasks .append (asyncio .to_thread (lambda : result ))
298- elif self .mcp_tools :
299- for server_name , server_tools in self .mcp_tools :
300- if any (
301- t .get ("function" , {}).get ("name" ) == norm_tool_name
302- for t in server_tools
303- ):
304- server = self .mcp_manager .get_server (server_name )
305- if server :
306- for params in parsed_args_list :
307- tasks .append (
308- self ._execute_mcp_tool (server , norm_tool_name , params )
309- )
310- break
311- else :
312- all_results_content .append (f"Error: Unknown tool name '{ tool_name } '" )
313303 else :
314304 all_results_content .append (f"Error: Unknown tool name '{ tool_name } '" )
315305 if tasks :
0 commit comments