Skip to content

Commit 481e334

Browse files
committed
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
1 parent e22ee5f commit 481e334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/notebookllama/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from llama_index.tools.mcp import BasicMCPClient
77
from typing import Annotated, List, Union
88

9-
MCP_CLIENT = BasicMCPClient(command_or_url="http://localhost:8000/mcp")
9+
MCP_CLIENT = BasicMCPClient(command_or_url="http://localhost:8000/mcp", timeout=120)
1010

1111

1212
class FileInputEvent(StartEvent):

0 commit comments

Comments
 (0)