Skip to content

Allow to configure readTimeout for HttpClient based McpClientTransport #498

@quaff

Description

@quaff

Expected Behavior
The McpClientTransport builder should expose method to set read timeout of HTTP request, and requestTimeout of McpClient should be applied to its underlying McpClientTransport.

Current Behavior
HttpRequest is created by HttpClientSseClientTransport and HttpClientStreamableHttpTransport but without setting timeout.

Context
https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpRequest.html#timeout()

The effect of not setting a timeout is the same as setting an infinite Duration, i.e. block forever.

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