We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf1f341 commit 18f37a0Copy full SHA for 18f37a0
videosdk-agents/videosdk/agents/agent.py
@@ -137,9 +137,11 @@ async def initialize_mcp(self) -> None:
137
138
async def add_server(self, mcp_server: MCPServiceProvider) -> None:
139
"""Internal Method: Initialize the MCP server and register the tools"""
140
+ existing_tool_count = len(self.mcp_manager.tools)
141
await self.mcp_manager.add_mcp_server(mcp_server)
- self._tools.extend(self.mcp_manager.tools)
142
-
+ new_tools = self.mcp_manager.tools[existing_tool_count:]
143
+ self._tools.extend(new_tools)
144
+
145
@abstractmethod
146
async def on_enter(self) -> None:
147
"""Called when session starts, to be implemented in your custom agent implementation."""
0 commit comments