Skip to content

fix(image): install Hermes's MCP support - #13389

Merged
cv merged 1 commit into
v1from
fix/hermes-mcp-extra
Oct 17, 2026
Merged

cv merged 1 commit into
v1from
fix/hermes-mcp-extra

Conversation

@cv

@cv cv commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

Failure

Hermes images couldn't use MCP servers. A fabric_agent with an mcp block got a toolset with no tools, and nothing reported it: Hermes logged nothing, and no request reached the server. A live multi-agent trial found it when a buyer agent never called its booking service.

The image installs Hermes with --no-deps, then adds image/fabric/hermes-dependencies.lock. That lock held Hermes's core dependencies only, so Hermes's mcp extra was missing. The image also sets HERMES_DISABLE_LAZY_INSTALLS=1, so Hermes couldn't install it on demand. Fabric's Hermes adapter configures MCP servers natively but leaves Hermes's dependencies to whoever provides Hermes.

Decision

  • Lock: add Hermes's mcp extra, mcp==2.0.0 and httpx2==2.7.0, resolved against the existing pins with uv for CPython 3.13 on Linux ARM64, the only platform Hermes is built for. This adds 11 packages, each with the hash of the wheel the image installs, and leaves every existing line and its order unchanged.
  • starlette: the extra pins starlette==1.3.1, but the lock already pins 1.6.0 for Hermes's core dependencies. mcp accepts 1.6.0, which also fixes the CVE the extra's pin addresses, so it stays at 1.6.0.
  • Notes: the lock's header and image/NOTICE.md now mention the extra.
  • New image test: test_hermes_can_reach_mcp_servers checks Hermes's own availability. It loads the MCP SDK the way Hermes does on first use (_ensure_mcp_sdk()), then checks that Hermes can reach HTTP servers.

Validation

  • Before: the previous Hermes image had no mcp package; Hermes's _MCP_AVAILABLE and _MCP_HTTP_AVAILABLE were both false.
  • After: cargo images build --platform linux/arm64 hermes built the image, and test_image.py, run as the image workflow runs it, passes all 10 tests, including the new one.
  • Other checks: cargo images qualify --lifecycle hermes passes, ruff check and format --check pass on the test, and cargo ci passes.

Only the Hermes image changes.

Hermes images lacked Hermes's mcp extra, so MCP servers configured through
Fabric loaded with no tools and no error. The Hermes lock adds mcp and httpx2
against the existing pins, keeping starlette at the core pin, and an image test
checks that Hermes can reach MCP servers over HTTP.
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 7499ec2 into v1 Oct 17, 2026
@cv
cv deleted the fix/hermes-mcp-extra branch October 17, 2026 22:00
cv added a commit that referenced this pull request Oct 18, 2026
…13393)

Stacked on #13392.

## Failure

The only hand-written HCL example, `examples/hcl/travel`, has a single
agent. Nothing showed or tested how NemoClaw's providers compose for
several agents with different harnesses, models, credentials and network
policies. A live trial of such a team found problems that no
single-agent example exercises: #13389, #13391 and #13392, and
NVIDIA/NeMo-Fabric#433.

## Decision

`examples/hcl/travel-team` adds a team of six agents as plain OpenTofu
HCL, all running Hermes on Fabric through `fabric-agent-ctl`:

- **Four researchers** (flights, stays, transport, attractions) on a
local Ollama model, with Brave web search and `GET` access to their own
sources.
- **A scheduler** on a hosted model, delegating one feasibility review.
- **A buyer** on a hosted model that reaches a booking service over MCP.
OpenShell's MCP grant limits it to the listed tools, since Hermes can't
filter a server's tools.

One table of roles drives the sandboxes, registrations, grants, agent
configurations and toolsets, so adding a researcher is one entry. An
agent's configuration change replaces its sandbox through
`terraform_data` and `replace_triggered_by`. Policies hold only the
access no attached provider grants. Handoffs use embedded JSON Schemas,
and the `agents` output gives what `fabric-agent-ctl invoke` needs.
`WALKTHROUGH.md` explains the HCL file by file, and every excerpt in it
matches the files.

What the live trial on a DGX Spark changed in the example:

- **Toolsets:** each role lists its toolsets. With no list Hermes
enables all of its defaults, so the buyer had terminal and code
execution.
- **Reasoning:** models use Hermes's `custom` provider, which sends
`reasoning_effort: "none"`. With reasoning on, Nemotron missed Fabric's
320-second invocation deadline.
- **Researchers:** a search budget, "keep only options whose price you
found", and option IDs prefixed with the topic, since IDs collided
across researchers.
- **Buyer:** books each distinct option once, quotes everything before
booking anything, and has enough turns for a full itinerary.
- **Hosted model:** the default is now
`nvidia/nemotron-3-super-120b-a12b`, because the earlier one was
retired.
- **Scheduler:** runs on Hermes, not Deep Agents, until
NVIDIA/NeMo-Fabric#433 lets Deep Agents turn reasoning off.

The README lists what isn't covered yet:

- agents calling each other (#13311, #13312);
- approval inside the workflow (#13314);
- the booking service's key (#13313);
- Fabric's 320-second invocation deadline.

## Validation

- **New test:** `crates/nemoclaw-e2e/tests/travel_team_example.rs`
applies the directory unchanged against the bundle's providers, with
fakes for the engines, gateway and model server. It checks each
sandbox's providers, grants, toolsets and configuration, an unchanged
second plan, that a hosted-model change replaces only the scheduler's
and buyer's sandboxes, and teardown. Each OpenTofu command takes under a
second; the test takes 5 seconds.
- **`cargo ci`:** passes, with 1542 unit tests and 151 lifecycle tests.
`fern check` reports no errors.
- **Live:** on a DGX Spark with a managed OpenShell gateway, Nemotron 3
Nano on Ollama, Nemotron 3 Super on NVIDIA's API, Brave, and a test MCP
booking service, one trip took about four minutes. The buyer quoted and
then booked all 18 itinerary options once each, through the MCP grant.
Researchers' prices remained partly unconfirmed with the small local
model, so the README says to review them before approving.

The trial also found that `tofu destroy` can't remove gateway storage,
which NemoClaw retains by design, and that the docs don't say how to
remove it by hand. That's outside this PR.
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance integration: hermes Hermes integration behavior platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance integration: hermes Hermes integration behavior platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants