fix(mcp): close hosted OAuth lifecycle gaps

This commit is contained in:
Teknium
2026-07-17 01:00:44 -07:00
parent 6045529724
commit ebd737f4d9
13 changed files with 261 additions and 44 deletions
+8 -5
View File
@@ -264,11 +264,14 @@ def _resolve_mcp_server_config(config: dict) -> dict:
"""
from tools.mcp_tool import _interpolate_env_vars
try:
from hermes_cli.env_loader import load_hermes_dotenv
load_hermes_dotenv()
except Exception: # pragma: no cover — defensive
pass
from agent.secret_scope import current_secret_scope
if current_secret_scope() is None:
try:
from hermes_cli.env_loader import load_hermes_dotenv
load_hermes_dotenv()
except Exception: # pragma: no cover — defensive
pass
return _interpolate_env_vars(config)