We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4175bf8 commit 3b61bd6Copy full SHA for 3b61bd6
AgentCrew/modules/agents/manager.py
@@ -314,6 +314,13 @@ def update_llm_service(self, llm_service):
314
# Update the LLM service for the current agent
315
self.current_agent.update_llm_service(llm_service)
316
317
+ from AgentCrew.modules.mcpclient.manager import MCPSessionManager
318
+
319
+ # Reinitialize MCP session manager for the current agent
320
+ mcp_manager = MCPSessionManager.get_instance()
321
+ if mcp_manager.initialized:
322
+ mcp_manager.initialize_for_agent(self.current_agent.name)
323
324
# Reactivate the agent with the new LLM service
325
self.current_agent.activate()
326
0 commit comments