Repository navigation
feat: add Hermes as a supported MCP client - #1403
Conversation
Hermes Agent reads stdio MCP servers from `mcp_servers.<name>` in `config.yaml`. REA had no Hermes client, so setup could not register it and Hermes users had to wire the server up by hand. - SupportedClients: add the `hermes` format and client definition, resolving the config path from HERMES_HOME, else the platform default that Hermes's own resolver uses (LOCALAPPDATA/hermes on Windows, ~/.hermes elsewhere), including HERMES_DATA_DIR_SUFFIX. - ClientConfigurationDocument: parse and serialize Hermes YAML, upserting the rea entry into the parsed document so user comments and unrelated settings are preserved; emit `enabled: true` since Hermes connects entries unless disabled. - ClientRegistrationStatus: forward the Hermes location variables so status checks resolve the same path as setup. - Tests: cover path resolution on both platforms and the register/read/uninstall round trip, and clear the Hermes location variables between tests. - delilah 🌸
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Verified Hermes dce1e9b with Python 3.14.6 against the merged implementation and a production-only, nested-dependency REA installation on Linux x64. YAML setup/repeat/doctor, native profile skill loading, plain chat, all 139 server tools, deferred search/describe/call, Unicode paths and schema-valid analysis Evidence passed; owned shutdown was clean. This also exercises the production YAML dependency. Repeatable checks: #1511. Loopback model only; live provider and Windows remain unverified. |
|
TL;DR: I checked Hermes Agent (MIT) setup on main after the merge, in fake home folders on Linux. Setup, doctor, a repeat setup and uninstall all worked. One gap: setup ignores the profile Hermes marks as active. Hermes itself is not installed here, so I checked the files that setup writes. All runs used main
The gap: the active profile I made a home with Small notes
Not run
Thanks, zaydiscold, for adding Hermes and for the careful path handling. Test setup
🤖 Generated with Claude Code (Opus 5.5) 🦊 |
* feat: add Hermes as a supported MCP client Hermes Agent reads stdio MCP servers from `mcp_servers.<name>` in `config.yaml`. REA had no Hermes client, so setup could not register it and Hermes users had to wire the server up by hand. - SupportedClients: add the `hermes` format and client definition, resolving the config path from HERMES_HOME, else the platform default that Hermes's own resolver uses (LOCALAPPDATA/hermes on Windows, ~/.hermes elsewhere), including HERMES_DATA_DIR_SUFFIX. - ClientConfigurationDocument: parse and serialize Hermes YAML, upserting the rea entry into the parsed document so user comments and unrelated settings are preserved; emit `enabled: true` since Hermes connects entries unless disabled. - ClientRegistrationStatus: forward the Hermes location variables so status checks resolve the same path as setup. - Tests: cover path resolution on both platforms and the register/read/uninstall round trip, and clear the Hermes location variables between tests. - delilah 🌸 * docs: document the Hermes client and its config path - delilah 🌸 * refactor(setup): resolve skill destinations per client * fix(setup): install Hermes skills in the active profile * fix(setup): identify each client skill action uniquely --------- Co-authored-by: morluto <[email protected]>
Hermes users currently have to register REA by hand. This adds
rea setup --client hermes, doctor support, and owned-registration uninstall using Hermes'sconfig.yaml/mcp_serversformat. Existing settings and YAML comments are preserved, backups precede updates, and repeated setup is a no-op.Setup resolves the active Hermes home, including whitespace trimming, environment-variable and home expansion, platform defaults, and
HERMES_DATA_DIR_SUFFIX. The bundled skill installs in that profile'sskills/reverse-engineer-anythingdirectory, which Hermes discovers by default. Setup previews, installation, doctor and uninstall share the client-specific skill destinations.YAML is a direct runtime dependency. The package verifier now installs with npm's nested production dependency layout, preventing an unrelated hoisted dependency from masking a missing runtime dependency. Before this correction, that install succeeded but both CLI help and setup crashed with
ERR_MODULE_NOT_FOUND: yaml.Validation on macOS with Node 24.18.0 / npm 11.16.0:
npm run check,npm run docs:check,npm run verify:test-discovery,npm run verify:package, andnpm pack --dry-runpassed.npx --package <tarball> rea-agentsworkflow with nested dependencies andHERMES_HOME=" ~/profile "passed setup, doctor with skill validation, and uninstall. The skill appeared in the expanded profile's personal skill directory.No analysis provider behavior changed. Hermes native skill-loader/interactive sessions and native Windows execution were not run in this maintainer validation; skill-root and home semantics were checked against upstream source. No version bump or generated outputs are committed.