返回提交历史
Modified
g4f/mcp/server.py
+2
-0
XFEstudio/gpt4free
fix: Import read_cookie_files to enable cookie handling in MCPServer
ac1221aa
代码差异
1 个文件
+2
-0
@@ -17,6 +17,7 @@ from typing import Any, Dict, List, Optional, Union
17
17
from dataclasses import dataclass
18
18
19
19
from ..debug import enable_logging
20
from ..cookies import read_cookie_files
20
21
21
22
from .tools import MarkItDownTool, TextToAudioTool, WebSearchTool, WebScrapeTool, ImageGenerationTool
22
23
from .tools import WebSearchTool, WebScrapeTool, ImageGenerationTool
@@ -214,6 +215,7 @@ class MCPServer:
214
215
sys.exit(1)
215
216
216
217
enable_logging()
218
read_cookie_files()
217
219
218
220
async def handle_mcp_request(request: web.Request) -> web.Response:
219
221
nonlocal origin