mirror of
https://github.com/run-llama/notebookllama.git
synced 2026-07-01 22:14:04 -04:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user