fix: remove pycache files and finalize integration
This commit is contained in:
1 parent
d68417bbc8
commit
5a8fcda993
4 files changed
+11
-10
No files matched your search
+2
-1
@@ -5,7 +5,7 @@ Enables integration with MCP servers like skills.sh to discover and use tools
|
||||
import json
|
||||
import requests
|
||||
from typing import Dict, List, Any, Optional
|
||||
from langchain.tools import Tool
|
||||
from langchain_core.tools import Tool
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -97,6 +97,7 @@ class MCPClient:
|
||||
return self._available_tools
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to list tools from MCP server {self.server_url}: {e}")
|
||||
self._available_tools = []
|
||||
return []
|
||||
|
||||
def call_tool(self, tool_name: str, arguments: Dict[str, Any]) -> Any:
|
||||
|
||||
Reference in new issue
Block a user