Skip to content

feat: add Hermes as a supported MCP client - #1403

Merged
morluto merged 6 commits into
morluto:mainfrom
zaydiscold:feat/hermes-mcp-client
Oct 10, 2026
Merged

morluto merged 6 commits into
morluto:mainfrom
zaydiscold:feat/hermes-mcp-client

Conversation

@zaydiscold

@zaydiscold zaydiscold commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Hermes users currently have to register REA by hand. This adds rea setup --client hermes, doctor support, and owned-registration uninstall using Hermes's config.yaml / mcp_servers format. 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's skills/reverse-engineer-anything directory, 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:

  • 77 targeted filesystem/CLI tests passed; 16 focused skill-plan tests passed after assigning distinct action IDs to personal skill destinations.
  • npm run check, npm run docs:check, npm run verify:test-discovery, npm run verify:package, and npm pack --dry-run passed.
  • An actual packed npx --package <tarball> rea-agents workflow with nested dependencies and HERMES_HOME=" ~/profile " passed setup, doctor with skill validation, and uninstall. The skill appeared in the expanded profile's personal skill directory.
  • Updated against current main without rewriting the contributor's commits.

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.

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 🌸
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@morluto
morluto merged commit f970b88 into morluto:main Oct 10, 2026
17 checks passed
@N0zoM1z0

Copy link
Copy Markdown
Collaborator

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.

@CassieFox23

CassieFox23 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

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 983b070d4.

Check Result
Dry run Planned config.yaml and the skill. Wrote nothing.
Setup without --yes Asked for approval. Wrote nothing.
Setup with --yes Wrote mcp_servers.rea with enabled: true. Put the skill in ~/.hermes/skills.
Doctor with --skill Healthy. Entry and skill aligned, 139 tools.
Second setup No actions. No file changed.
A file with comments and another server All kept, before and after uninstall.
HERMES_HOME as a path, with ~, with $HOME, with spaces Each landed under that path.
HERMES_DATA_DIR_SUFFIX=-beta Used ~/.hermes-beta, as Hermes does.
Uninstall Removed the entry and the skill.

The gap: the active profile

I made a home with ~/.hermes/active_profile set to coder. Setup still wrote ~/.hermes/config.yaml, and doctor said aligned. The Hermes profile docs say hermes profile use coder makes plain hermes commands use that profile. So REA would land in a profile Hermes is not using. I got this from the Hermes docs only, not from a real Hermes run. The open #1504 gives the same result.

Small notes

  • Uninstall leaves mcp_servers: {} and a config.yaml.rea.backup file. Other clients do the same.
  • Setup changes spacing a bit. For example, ["--flag"] becomes [ "--flag" ]. The data stays the same.
  • The bundled SKILL.md lists client IDs, but hermes, pi and qwen_code are missing from that list.

Not run

  • Hermes itself, since it is not installed here.
  • Windows, where Hermes uses %LOCALAPPDATA%.

Thanks, zaydiscold, for adding Hermes and for the careful path handling.

Test setup
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.9
  • CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads
  • RAM: 32 GB
  • Node: 24.18.0
  • Head: 983b070d4 (merge f970b886a)

🤖 Generated with Claude Code (Opus 5.5) 🦊

darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
* 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]>
@morluto morluto added enhancement New feature or request area: mcp MCP server, transport, and tool registration labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: mcp MCP server, transport, and tool registration enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants