Skip to content

The agent that grows with you

fix(mcp): treat empty preloaded env value as absent so required secrets still raise

Halldrix2434cffd4556
diff --git a/hermes_cli/mcp_catalog.py b/hermes_cli/mcp_catalog.py
index 6a7da08dbd0..0455270faf2 100644
--- a/hermes_cli/mcp_catalog.py
+++ b/hermes_cli/mcp_catalog.py
@@ -467,7 +467,7 @@ def _prompt_env_vars(specs: List[EnvVarSpec], preloaded: Optional[Dict[str, str]
collected: Dict[str, str] = {}
for spec in specs:
pre = preloaded.get(spec.name)
- if pre is not None:
+ if pre:
collected[spec.name] = pre
continue
existing = get_env_value(spec.name) if spec.secret else None