Files
hermes-agent/tools
kshitijk4poor 6ca1924763 revert: stop hoisting the MCP stdio command's directory to PATH[0]
This reverts commit 79dbb1450e (#124792).

_resolve_stdio_command passes _prepend_path the directory the command
resolved into, not the managed Node directory. After 79dbb145 that
directory moved to PATH[0] even when it was already on PATH, so:

- the reported layout (system Node with npx first, managed dir behind)
  was unchanged: which() finds the system npx, whose dir is already first;
- a command found later on PATH now shadowed every earlier entry for the
  child's other bare lookups. With the store-first PATH pm.activate()
  gives the Hermes process, a brew-installed MCP command hands its
  children brew's node/python3/git instead of the pinned store copies.

Restore the prepend-only-when-absent behaviour.
2026-09-28 02:03:42 +05:30
..