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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user