@@ -30,7 +30,7 @@ public class Arguments {
3030
3131 private URI connectionUri ;
3232 private String connectionLabel = TsurugiMcpServer .SERVER_NAME ;
33- private long connectionTimeoutMillis = Long . MAX_VALUE ;
33+ private long connectionTimeout = 30 ;
3434 private List <String > enableToolList = TsurugiMcpTool .toolNames ();
3535 private List <String > disableToolList = new ArrayList <>();
3636 private boolean resourceEnable = true ;
@@ -67,17 +67,17 @@ public String getConnectionLabel() {
6767 @ Parameter (order = 12 , //
6868 names = { "--connection-timeout" }, //
6969 arity = 1 , //
70- description = "Connection timeout (in milliseconds )." , //
70+ description = "Connection timeout (in seconds )." , //
7171 required = false )
72- public void setConnectionTimeoutMillis (long value ) {
72+ public void setConnectionTimeout (long value ) {
7373 if (value < 0 ) {
7474 throw new IllegalArgumentException (MessageFormat .format ("timeout must be >= 0 (specified: {0})" , value ));
7575 }
76- this .connectionTimeoutMillis = value ;
76+ this .connectionTimeout = value ;
7777 }
7878
79- public long getConnectionTimeoutMillis () {
80- return connectionTimeoutMillis ;
79+ public long getConnectionTimeout () {
80+ return connectionTimeout ;
8181 }
8282
8383 public static class ToolNameValidator implements IParameterValidator {
0 commit comments