Skip to content

Give Hermes Agent Powers with MCP

Category AI Agents & MCP
Status ๐ŸŸก Partially completed
Repo nextwork-give-hermes-agent-powers-with-mcp
Original NextWork guide nextwork.ai

Learning project

Practice work following a NextWork guide, separate from my production projects.

๐Ÿ“š NextWork learning project. This is a practice project I built while working through NextWork's Give Hermes Agent Powers with MCP guide. It is part of my Learning portfolio and is fully separate from my production projects.

Category: Learning โ€บ AI Agents & MCP
Status: ๐ŸŸก Partial

Overview

MCP (Model Context Protocol) gives an agent new tools without changing the agent. I connected the official Filesystem MCP server to Hermes Agent, sandboxed to one project folder, and asked the agent to summarize a repository using only MCP tool calls. mcp_probe.py talks to the same server with no LLM involved, to prove the tools and the sandbox work.

Summary

The Filesystem MCP server is connected to Hermes, and the agent wrote a repository summary using only MCP tool calls. The GitHub MCP server is configured but wasn't connected, because it would mean giving my GitHub token to an agent driven by a free third-party model.

The checks behind this are in docs/verification.txt.

Skills & tools

Model Context Protocol (MCP), Hermes Agent, Filesystem MCP server, GitHub MCP server, Docker, Python MCP SDK

What I built

  • hermes-mcp.yaml: Filesystem and GitHub MCP server config for Hermes (read-only GitHub toolsets, token from an env var).
  • docs/agent-repo-summary.md: the agent's summary of my URL-shortener learning repo, written only through mcp__filesystem__* calls (11 calls, listed at the end).
  • mcp_probe.py: a raw MCP client that lists the server's tools, reads files, and confirms that paths outside the sandbox are denied.

How to run

pip install mcp                             # Python MCP SDK
python mcp_probe.py "$PWD"                  # talk to the Filesystem MCP server directly
hermes mcp add filesystem --command npx --args -y @modelcontextprotocol/server-filesystem "$PWD"
hermes chat -q "Using only the filesystem MCP tools, summarize this repository."

Verification

I ran the verification command on 2026-12-02. The full output is in docs/verification.txt.

PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python mcp_probe.py "$PWD"

Notes

I ran Hermes with a separate HERMES_HOME, so my everyday agent config was untouched. Spot-check of the agent's summary: one small inaccuracy (it calls the Dockerfile multi-stage, and it isn't). Everything else matches the repo.

What isn't done, and why

The GitHub MCP server (Docker) needs a personal access token. I chose not to hand my real token to an agent whose prompts go to a free hosted model, so hermes-mcp.yaml holds the config, with a read-only toolset and the token read from your shell. The repository summary used a local clone through the Filesystem server instead of the GitHub API.


Original project: https://nextwork.ai/projects/b9f91075-1dd0-4812-a826-8968cd2bdd02 ยท Part of my NextWork Learning portfolio (hub).

Verification output

From docs/verification.txt:

$ PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python mcp_probe.py "$PWD"

16 tools: append_file, copy_file, create_directory, directory_tree, edit_file, get_file_info, list_allowed_directories, list_directory, list_directory_with_sizes, move_file, read_file, read_media_file, read_multiple_files, read_text_file, search_files, write_file
allowed: Allowed directories:
/workspace/nextwork-portfolio/learning/ai-agents-mcp/give-hermes-agent-powers-with-mcp
top level: ['.gitignore', 'README.md', 'docs', 'hermes-mcp.yaml', 'mcp_probe.py']
mcp_probe.py head: """Talk to the Filesystem MCP server directly (no LLM) to prove the connection and tools work.
outside sandbox -> denied
FILESYSTEM MCP OK
Secure MCP Filesystem Server running on stdio
Effective allowed directories (from the command line):
  /workspace/nextwork-portfolio/learning/ai-agents-mcp/give-hermes-agent-powers-with-mcp
Client does not support MCP Roots, using allowed directories set from server args: [
  '/workspace/nextwork-portfolio/learning/ai-agents-mcp/give-hermes-agent-powers-with-mcp'
]
Effective allowed directories (from the command line):
  /workspace/nextwork-portfolio/learning/ai-agents-mcp/give-hermes-agent-powers-with-mcp

[exit code 0]