Files
hermes-agent/tools
John Paul Soliva 4fbbfac901 fix(mcp): hash the endpoint and executable the transport actually uses
The cross-profile identity digest covered config headers, identity_header,
secret-source env and cwd, but not two more per-profile resolutions the
transport performs: _run_http() swaps in a server_json live endpoint (URL and
bearer token) read from the active profile, and _run_stdio() resolves a bare
npx/npm/node through _resolve_stdio_command(), which can land under the
profile's own HERMES_HOME. Two profiles with those differences hashed equal
and could share one live connection.

_resolved_identity now resolves both exactly as the transport does. The new
test module imports the repository YAML module and passes explicit encodings
so it collects under scripts/run_tests.sh and clears the Windows-footgun gate.

(cherry picked from commit 637872d55bc81609657ed82139546709f6b99ccd)
2026-09-26 22:40:54 +05:30
..