-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Description
I'm using an MCP server tool that can take several minutes to complete.
I tried passing the timeout as part of the call, as well as setting defaultToolTimeout on the MCP server definition.
Langchain is setting the timeout, but it is then intercepting the timeout value and setting up its own timeout signal but isn’t passing the timeout value to the MCP call. As a result, the underlying library times out the request after the default 60 seconds.
The issue seems to be that the "timeout" value is removed from the configuration passed to the MCP tool call:
Simply removing this line fixes the issue, but I'm not sure what other side effects that change might have.
Metadata
Metadata
Assignees
Labels
No labels