# AgentCart connection setup

This reference is for a person/operator configuring a Hermes host, not permission
for an agent to alter settings during an unrelated shopping task.

## Install the skill

Once the registry is publicly hosted, replace YOUR-AGENTCART-HOST:

```sh
hermes skills install https://YOUR-AGENTCART-HOST/skills/agentcart-local-shopping/SKILL.md
```

Hermes also installs skills from a GitHub repository/path after the project is
published. The current file is a community skill, not a Nous-approved/bundled skill.
Do not bypass a skill security scan. Publication does not imply automatic adoption.

## Connect the tools

Install the AgentCart project dependencies in an isolated Python environment.
Add an entry to the active Hermes profile's config.yaml, merging with existing
mcp_servers instead of overwriting them. Use absolute paths for your own machine:

```yaml
mcp_servers:
  agentcart:
    command: /absolute/path/to/agentcart/.venv/bin/python
    args: [/absolute/path/to/agentcart/agent_connector/server.py]
    env:
      AGENTCART_REGISTRY: https://YOUR-AGENTCART-HOST
```

On Windows, use the absolute `.venv/Scripts/python.exe` path. The script uses no
relative imports, so no working-directory setting is required. Search and storefront
reads need no customer token. After restarting/reloading the appropriate Hermes
profile, verify that the four AgentCart tools appear.

Optional carts: the customer signs in at `https://YOUR-AGENTCART-HOST/cart-review`
and deliberately creates a one-hour limited agent token. Configure
AGENTCART_AGENT_TOKEN through the host's protected environment/secret mechanism,
never a shared config example, repository or chat. Reissuing revokes the old token.
Customer approval and payment take place outside the delegated tool environment.

## Acceptance test

Ask Hermes: "Use AgentCart to find locally owned shops with wine glasses in
Scituate. Tell me which availability and verification claims are only demo data."
Verify a real search tool call and matching registry records. Then use a staging
merchant to test a hold request. Confirm the agent cannot approve/pay. A stdio
handshake is already tested; a real Hermes model session still needs validation.

References: [Hermes skills](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills/)
and [Hermes MCP](https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp).
