Skip to content

Long timeouts on MCP calls ignored #9136

@SimoneGianni

Description

@SimoneGianni

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions