返回提交历史
Modified
g4f/mcp/tools.py
+2
-1
XFEstudio/gpt4free
Update tools.py
70bd1069
代码差异
1 个文件
+2
-1
@@ -26,7 +26,7 @@ from aiohttp import ClientSession
26
26
class MCPTool(ABC):
27
27
"""Base class for MCP tools"""
28
28
29
def __init__(self, safe_mode: bool = False) -> None:
29
def __init__(self, safe_mode: bool = False, github_token: Optional[str] = None):
30
30
"""Initialize tool with optional safe mode.
31
31
32
32
Args:
@@ -35,6 +35,7 @@ class MCPTool(ABC):
35
35
sensitive listing operations are blocked.
36
36
"""
37
37
self.safe_mode = safe_mode
38
self.github_token = github_token
38
39
39
40
@property
40
41
@abstractmethod