@@ -130,9 +130,6 @@ impl McpManager {
130130 } ,
131131 )
132132 . await ?;
133-
134- // Note: We don't add dynamic server tools to the inventory
135- // They are fetched directly from the client in list_tools_for_request()
136133 Ok ( client)
137134 }
138135
@@ -165,14 +162,6 @@ impl McpManager {
165162 ///
166163 /// Returns a HashMap mapping (server_label, tool_name) -> (Tool, server_url)
167164 /// Includes both static tools (from config) and dynamic tools (from request servers)
168- ///
169- /// # Arguments
170- /// * `dynamic_servers` - List of (server_label, server_url) pairs from the request
171- ///
172- /// # Returns
173- /// HashMap where:
174- /// - Key: (server_label, tool_name) - composite key for unique identification
175- /// - Value: (Tool, server_url) - tool definition and URL for execution
176165 pub async fn list_tools_for_request (
177166 & self ,
178167 dynamic_servers : & [ ( String , String ) ] ,
@@ -261,17 +250,6 @@ impl McpManager {
261250 ///
262251 /// This method is used for dynamic MCP servers where the tool is identified
263252 /// by both server_url and tool_name (rather than from the static inventory).
264- ///
265- /// # Arguments
266- /// * `server_url` - URL of the MCP server to call the tool on
267- /// * `tool_name` - Name of the tool to call
268- /// * `args_map` - Optional map of arguments to pass to the tool
269- ///
270- /// # Returns
271- /// Tuple of (output_str, success, error):
272- /// - output_str: JSON string of the result or error message
273- /// - success: true if the call succeeded, false otherwise
274- /// - error: Optional error message if the call failed
275253 pub async fn call_tool_by_url (
276254 & self ,
277255 server_url : & str ,
0 commit comments