fix: Increase MCP client timeout to 120s

The `extract_file_data` step was timing out after 30 seconds when processing larger or more complex files, causing an McpError.
This change increases the BasicMCPClient timeout to 120 seconds, providing a more stable window for the server to complete its work
This commit is contained in:
Nick Galluzzo
2025-07-12 11:22:54 +07:00
parent e22ee5f713
commit 481e3348fe
+1 -1
View File
@@ -6,7 +6,7 @@ from workflows.resource import Resource
from llama_index.tools.mcp import BasicMCPClient
from typing import Annotated, List, Union
MCP_CLIENT = BasicMCPClient(command_or_url="http://localhost:8000/mcp")
MCP_CLIENT = BasicMCPClient(command_or_url="http://localhost:8000/mcp", timeout=120)
class FileInputEvent(StartEvent):