feat(cli): add --connect-timeout flag to hermes mcp add

Persists as the server's connect_timeout in config, which the probe
now honors. CLI-flag portion of PR #54494; the probe-wrapper portion
was superseded by resolving connect_timeout inside _probe_single_server.
This commit is contained in:
Sam Beran
2026-07-05 15:21:00 -07:00
committed by Teknium
parent a348368019
commit d52d2973a1
3 changed files with 28 additions and 0 deletions
+3
View File
@@ -397,6 +397,7 @@ def cmd_mcp_add(args):
auth_type = getattr(args, "auth", None)
preset_name = getattr(args, "preset", None)
raw_env = getattr(args, "env", None)
raw_connect_timeout = getattr(args, "connect_timeout", None)
server_config: Dict[str, Any] = {}
try:
@@ -442,6 +443,8 @@ def cmd_mcp_add(args):
server_config["args"] = cmd_args
if explicit_env:
server_config["env"] = explicit_env
if raw_connect_timeout is not None:
server_config["connect_timeout"] = raw_connect_timeout
issues = validate_mcp_server_entry(name, server_config)
if issues: