Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Hermes Agent Tool Ecosystem and MCP Integration

Hermes Agent Tool Ecosystem and MCP Integration

All of Hermes's capabilities are exposed to the Agent through Tools.

Tools are organized into Toolsets, and Toolsets are combined into platform configurations. This three-layer structure determines what the Agent can do in different scenarios:



工具(Tool)

  └── 工具集(Toolset)         # 相关工具的逻辑分组

        └── 平台配置            # 哪个平台加载哪些工具集

              └── 自定义工具集   # 你自己定义的组合

Toolset management commands



# Open curses TUI, press platform to toggle toolset

hermes tools



# List all tools and their status

hermes tools list



# Enable or disable toolset by name

hermes tools enable NAME

hermes tools disable NAME

In the desktop app, in the Skills & Tools menu on the left:

Closing a toolset makes its toolsdisappear completelyfrom the system prompt, not just disabled - this directly saves Token and prevents the Agent from misusing tools it should not use.


Built-in toolsets at a glance

Hermes provides 70+ built-in tools, divided into 28 toolsets.

The most commonly used toolsets are described below, grouped by function.

File and System

Toolset Core Tools Main Use
file read_file, write_file, list_dir File read/write, directory operations
terminal run_command, run_script Shell command execution
code execute_code Sandboxed code execution (Python/JS/Bash)
computer screenshot, click, type Desktop GUI automation

Web and Content

Toolset Core Tools Main Use
web web_search, web_extract Web search and content extraction
browser navigate, click, fill_form Full browser automation
vision analyze_image, describe_image Image analysis and description
audio transcribe, tts Speech-to-text, text-to-speech

Agent Capabilities

Toolset Core Tools Main Use
memory memory, session_search Memory management and cross-session retrieval
skills skills_list, skill_view, skill_manage Skill management
delegation spawn_agent, spawn_parallel Sub-Agent Delegation and Parallelism
kanban task_create, task_update Multi-Agent Kanban (requires explicit enabling)

Media Creation

The following toolsets require Nous Portal or the corresponding API Key:

Toolset Function Description
image_gen Text-to-image generation Supports 9 models including FLUX, GPT-Image, etc.
tts Text-to-speech 10 TTS providers, including local Piper

Custom Toolsets

You can combine existing toolsets into project-specific toolsets in the configuration file:

Example

File path: ~/.hermes/config.yaml

Custom toolsets: combine existing toolsets into a project-specific configuration

custom_toolsets

:

  data-science

:

   - file

    - terminal

    - code

    - web

Then specify at startup:

Example

Use custom toolsets at startup

hermes

--toolsets

data-science


Six terminal execution backends

The terminal toolset supports six execution backends, which determine where the Agent's Shell commands run, corresponding to different isolation levels and "blast radius".

Backend Command execution location Isolation level Typical scenario
local (default) Local machine, current user permissions None Personal development, daily use
docker Inside a Docker container Full isolation Production deployment, security sandbox
ssh Remote server Network boundary isolation Remote development, high-performance machines
modal Modal cloud sandbox (VM) Full (cloud) Temporary compute, evaluation tasks
daytona Daytona hosted workspace Full (cloud container) Managed cloud development environment
singularity Singularity container Namespace isolation HPC clusters, shared machines

Switching backends

Example

Switch to the Docker backend (recommended for production)

hermes config

set

terminal.backend docker

Switch to the SSH backend

hermes config

set

terminal.backend

ssh

hermes config

set

terminal.ssh_host user

@

your-server.com

Full Docker backend configuration example:

Example

File path: ~/.hermes/config.yaml

Docker backend configuration

terminal

:

  backend

:

docker

  docker_image

:

"nikolaik/python-nodejs:python3.11-nodejs20"

  container_persistent

:

true    

true = bind mount, false = tmpfs temporary

Security principle: the local backend gives the Agent the same file system permissions as you -- suitable for personal machines, not for production services. The docker backend is the simplest and most effective isolation method.

Dangerous command approval

By default, Hermes asks for confirmation before executing potentially destructive commands:

Example

File path: ~/.hermes/config.yaml

Approval mode configuration

approvals

:

  mode

:

manual        

manual (default) | smart | off

  timeout

:

60

       

Number of seconds to wait for approval

  cron_mode

:

deny    

Behavior when a scheduled task encounters a dangerous command: deny | approve

Temporarily bypass approval in a session (use with caution):

Example

Enable YOLO mode, all commands in this session are auto-approved

/

yolo

Enter again to disable

/

yolo


MCP: connecting to the external tool ecosystem

MCP (Model Context Protocol) lets Hermes connect to external tool servers -- GitHub, databases, file systems, browser stacks, internal APIs, etc. -- without modifying core code.

Standard installation already includes MCP support, no extra steps needed.

Two types of MCP servers

Local stdio server: runs locally as a subprocess, communicating via standard input/output:

Example

File path: ~/.hermes/config.yaml

MCP stdio server configuration

mcp_servers

:

  github

:

    command

:

"npx"

    args

:

[

"-y"

,

"@modelcontextprotocol/server-github"

]

    env

:

      GITHUB_PERSONAL_ACCESS_TOKEN

:

"ghp_..."

  filesystem

:

    command

:

"npx"

    args

:

[

"-y"

,

"@modelcontextprotocol/server-filesystem"

,

"/home/user/projects"

]

  git

:

    command

:

"uvx"

    args

:

[

"mcp-server-git"

,

"--repository"

,

"/home/user/project"

]

Applicable scenario: tools are installed locally and need low-latency access to local resources.

Remote HTTP server: connects directly to a remote MCP endpoint:

Example

File path: ~/.hermes/config.yaml

MCP HTTP server configuration

mcp_servers

:

 

Static Bearer Token authentication

  internal_api

:

    url

:

"https://mcp.internal.example.com/mcp"

    headers

:

      Authorization

:

"Bearer ${MY_TOKEN}"

 

OAuth 2.1 authentication (Linear, Sentry, Figma, Stripe, etc.)

  linear

:

    url

:

"https://mcp.linear.app/mcp"

    auth

:

oauth

 

Providers that require pre-registered OAuth clients

  googledrive

:

    url

:

"https://drivemcp.googleapis.com/mcp/v1"

    auth

:

oauth

    oauth

:

      client_id

:

""

      client_secret

:

""

Applicable scenario: tools are hosted remotely, or the organization has an internal MCP interface.

Nous curated MCP catalog

Hermes ships with a Nous-reviewed MCP catalog for one-click install:

Example

Open the interactive selector (default)

hermes mcp

Plain text list

hermes mcp catalog

Install a catalog entry by name

hermes mcp

install

n8n

The selector shows the current status of each entry:



n8n          available              管理和检查 n8n 工作流

linear       enabled                Linear 问题/项目管理(远程 OAuth)

github       installed (disabled)   GitHub 仓库 + PR 工具

Installation automatically completes three steps:

  1. Prompt to configure an API Key or guide OAuth login
  2. Probe the list of tools exposed by the server
  3. Show a tool selection list so you decide which tools to enable

Tool filtering: expose only what you need

Each MCP server supports fine-grained tool filtering to reduce the attack surface available to the Agent:

Example

File path: ~/.hermes/config.yaml

MCP tool filtering configuration

mcp_servers

:

  github

:

    command

:

"npx"

    args

:

[

"-y"

,

"@modelcontextprotocol/server-github"

]

    env

:

      GITHUB_PERSONAL_ACCESS_TOKEN

:

"ghp_..."

    tools

:

      include

:

[

list_issues, create_issue, update_issue, search_code

]

     

Tools not listed are not registered

    resources

:

false

    prompts

:

false

  stripe

:

    url

:

"https://mcp.stripe.com"

    headers

:

      Authorization

:

"Bearer ${STRIPE_KEY}"

    tools

:

      exclude

:

[

delete_customer, refund_payment

]

 

Exclude high-risk operations

Field Behavior
tools.include Register only the tools in the list, exclude everything else
tools.exclude Exclude the tools in the list, register everything else
Both set include takes priority
resources: false Do not expose MCP resource access tools
prompts: false Do not expose MCP prompt tools

Filter rules use the raw MCP tool names (with hyphens/dots), not the underscore version registered by Hermes.

Each MCP server generates an independent toolset

After configuring the github MCP server, Hermes automatically creates at runtime mcp-github the toolset.

You can manage it just like a built-in toolset:

Example

File path: ~/.hermes/config.yaml

Reference MCP tool sets in platform configuration

platform_toolsets

:

  cli

:

   - hermes-cli

    - mcp-github

    - mcp-linear

Reload MCP configuration

After modifying config.yaml, no need to restart the entire Agent:

Example

Reload MCP servers within the session (30-second timeout)

/

reload-mcp

Or from the command line

hermes mcp reload

If OAuth authentication is required, the 30-second timeout is not enough. It is recommended to first add the server configuration, then run hermes mcp login in a new terminal to complete authorization (wait up to 5 minutes).


Editor integration (ACP)

ACP (Agent Communication Protocol) lets Hermes run natively inside the editor -- chat, tool activity, file diffs and terminal commands are all rendered directly in the editor.

Supported editors: VS Code, Zed, the entire JetBrains family.

Standard installation already includes ACP support:

Example

Start Agent mode for the editor to connect

hermes acp

If full dependencies were not included during installation:

Example

Install missing ACP dependencies

cd

~

/

.hermes

/

hermes-agent

uv pip

install

-e

".[acp]"

Editor Integration methods Function
VS Code Extension plugin Inline code completion, code review, refactoring suggestions
Zed Native Agent mode stdio/JSON-RPC communication, context awareness
JetBrains Plugin Code generation, test generation, documentation comments

Editor integration uses the stdio/JSON-RPC protocol to communicate with the Hermes Agent, does not depend on a network connection, and is suitable for offline use.


Voice Mode

Voice mode supports full voice interaction across the CLI and messaging platforms:

Installation and enablement

Example

Install voice dependencies

cd

~

/

.hermes

/

hermes-agent

uv pip

install

-e

".[voice]"

Example

Enable voice mode in the CLI

/

voice on

Press Ctrl+B to start recording, release to send

In messaging platforms

/

voice on    

Enable TTS replies

/

voice tts    

Enable only text-to-speech (not voice input)

/

voice off    

Close

TTS providers

Provider Feature Free or not
Edge TTS Microsoft neural network voices, multilingual Free
Piper Fully local, low latency Free
OpenAI TTS High quality, multiple voices Pay-as-you-go
ElevenLabs Top-tier audio quality, voice cloning Pay-as-you-go
MiniMax Optimized for Chinese Pay-as-you-go
Mistral Voxtral Multilingual Pay-as-you-go

Tool Gateway (Nous Portal subscription)

Subscribe via Nous Portal to get cloud implementations of four tool categories with one click, no need to apply for API Keys separately:

Tool Description
Web Search Search + content extraction (web toolset)
Image generation 9 models: FLUX, GPT-Image, Ideogram, etc.
TTS Text-to-speech
Cloud browser Full browser automation (no local Playwright needed)

Example

OAuth login, automatically configures all the above tools

hermes setup

--portal


Tool security: MCP environment variable isolation

The MCP stdio subprocess receives a filtered environment to prevent accidental credential leaks.

By default only the following variables are passed to the MCP process:



PATH, HOME, USER, LANG, LC_ALL, TERM, SHELL, TMPDIR(以及所有 XDG_* 变量)

All other environment variables (API Key, Token, password) are blocked.

Only variables explicitly declared in the env: block of the MCP server configuration are passed:

Example

File path: ~/.hermes/config.yaml

Only explicitly declared variables are passed into the MCP subprocess

mcp_servers

:

  github

:

    command

:

"npx"

    args

:

[

"-y"

,

"@modelcontextprotocol/server-github"

]

    env

:

      GITHUB_PERSONAL_ACCESS_TOKEN

:

"ghp_..."

 

Only this one is passed in

In addition, error messages from MCP tools are automatically redacted before being returned to the LLM, with sensitive information replaced by [REDACTED].


Common Command Quick Reference

Example

─── Tool Management ────────────────────────────────────────────────

hermes tools                          

Interactive toolset management (TUI)

hermes tools list                    

List all tools and their status

hermes tools

enable

NAME              

Enable a toolset

hermes tools disable NAME            

Disable a toolset

─── MCP Management ────────────────────────────────────────────────

hermes mcp                            

Interactive MCP catalog selector

hermes mcp catalog                    

Plain text catalog list

hermes mcp

install

<

name

           

Install a catalog entry

hermes mcp add NAME

--command

CMD    

Manually add an MCP server

hermes mcp remove NAME                

Remove an MCP server

hermes mcp list                      

List configured servers

hermes mcp

test

NAME                  

Test connection

hermes mcp

login

<

server

           

Complete OAuth authorization

hermes mcp configure

<

server

       

Reconfigure tool selection

hermes mcp reload                    

Reload MCP configuration

─── Terminal Backend ────────────────────────────────────────────────

hermes config

set

terminal.backend docker

hermes config

set

terminal.backend

ssh

hermes config

set

terminal.ssh_host user

@

host

─── ACP Editor Integration ──────────────────────────────────────────

hermes acp

─── Portal Subscription ─────────────────────────────────────────────

hermes setup

--portal