Skip to content

Commit 4b46bb3

Browse files
Alexandre Zajacrhernandez35
authored andcommitted
feat(mcp): increase default HTTP proxy timeout from 60s to 5 minutes
MCP tool calls often back long-running operations like database queries or Lambda invocations that routinely exceed 60 seconds. The previous default caused consistent timeouts for legitimate use cases. The .timeout(Duration) builder method remains available for callers who need a specific value. This change only affects the fallback default when no timeout is explicitly configured.
1 parent ab7a64d commit 4b46bb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mcp/mcp-server/src/main/java/software/amazon/smithy/java/mcp/server/HttpMcpProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private HttpMcpProxy(Builder builder) {
4747
this.endpoint = URI.create(builder.endpoint);
4848
this.name = builder.name != null ? builder.name : sanitizeName(endpoint.getHost());
4949
this.signer = builder.signer;
50-
this.timeout = builder.timeout != null ? builder.timeout : Duration.ofSeconds(60);
50+
this.timeout = builder.timeout != null ? builder.timeout : Duration.ofMinutes(5);
5151
}
5252

5353
private static String sanitizeName(String host) {

0 commit comments

Comments
 (0)