Hermes AgentでMCPサーバが使いたいよ

Artificial Intelligence

続いて今度は、このエージェントツールでMCPサーバを使うための方法について。

やっぱりMCPサーバの存在って非常にありがたいもので、いろんな意味で情報探索であったり、最新情報の適用であったりと様々な局面で活躍してくれます。その登録方法は非常にシンプルです。

以下のコマンドを実行します。

$ hermes config edit

末尾に以下のような感じでセクションを足し、必要なMCPサーバを追加します。

mcp_servers:
  github:
    url: "https://api.githubcopilot.com/mcp"
    headers:
      Authorization: "Bearer github_pat_1***************................"
  serpapi:
    url: "https://mcp.serpapi.com/450.....................******************0eac7/mcp"
  context7:
    url: "https://mcp.context7.com/mcp"
    headers:
      Authorization: "Bearer ctx7*******************......................"

通常、こうした情報はJSONで書くことが多いかと思いますが、ここではYAMLで書くことになります。
書式はほんとにそのままJSON書式からYAML書式に置き換えて考えてもらえればよく、これでgithub、serpapi、context7などのMCPサーバが追加できます。

このあたりの反映はセッション開始時に確認できます。ハイライト箇所でMCP検出箇所が確認できます。



██╗  ██╗███████╗██████╗ ███╗   ███╗███████╗███████╗       █████╗  ██████╗ ███████╗███╗   ██╗████████╗
██║  ██║██╔════╝██╔══██╗████╗ ████║██╔════╝██╔════╝      ██╔══██╗██╔════╝ ██╔════╝████╗  ██║╚══██╔══╝
███████║█████╗  ██████╔╝██╔████╔██║█████╗  ███████╗█████╗███████║██║  ███╗█████╗  ██╔██╗ ██║   ██║
██╔══██║██╔══╝  ██╔══██╗██║╚██╔╝██║██╔══╝  ╚════██║╚════╝██╔══██║██║   ██║██╔══╝  ██║╚██╗██║   ██║
██║  ██║███████╗██║  ██║██║ ╚═╝ ██║███████╗███████║      ██║  ██║╚██████╔╝███████╗██║ ╚████║   ██║
╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝╚══════╝      ╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚═╝  ╚═══╝   ╚═╝

╭────────────────────────────────────────────────────────────────────────────────────────── Hermes Ag                                             ───────────────────────────────────────────────────────────────────────────────────────────╮
│                                          Available Tools                                                                                                                                                                                  │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⡀⠀⣀⣀⠀⢀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      browser: browser_back, browser_click, ...                                                                                                                                                        │
│      ⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣇⠸⣿⣿⠇⣸⣿⣿⣷⣦⣄⡀⠀⠀⠀⠀⠀⠀      browser-cdp: browser_cdp, browser_dialog                                                                                                                                                         │
│      ⠀⢀⣠⣴⣶⠿⠋⣩⡿⣿⡿⠻⣿⡇⢠⡄⢸⣿⠟⢿⣿⢿⣍⠙⠿⣶⣦⣄⡀⠀      clarify: clarify                                                                                                                                                                                 │
│      ⠀⠀⠉⠉⠁⠶⠟⠋⠀⠉⠀⢀⣈⣁⡈⢁⣈⣁⡀⠀⠉⠀⠙⠻⠶⠈⠉⠉⠀⠀      code_execution: execute_code                                                                                                                                                                     │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⡿⠛⢁⡈⠛⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      computer_use: computer_use                                                                                                                                                                       │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠿⣿⣦⣤⣈⠁⢠⣴⣿⠿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      cronjob: cronjob                                                                                                                                                                                 │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠻⢿⣿⣦⡉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      delegation: delegate_task                                                                                                                                                                        │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢷⣦⣈⠛⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      discord: discord                                                                                                                                                                                 │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⠦⠈⠙⠿⣦⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      (and 24 more toolsets...)                                                                                                                                                                        │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣤⡈⠁⢤⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀                                                                                                                                                                                                       │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠷⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      MCP Servers                                                                                                                                                                                      │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠑⢶⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      github (http) — 47 tool(s)                                                                                                                                                                       │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠁⢰⡆⠈⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      serpapi (http) — 5 tool(s)                                                                                                                                                                       │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⠈⣡⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀      context7 (http) — 2 tool(s)                                                                                                                                                                      │
│      ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀                                                                                                                                                                                                       │
│                                          Available Skills                                                                                                                                                                                 │
│  gemini-3.1-pro-preview · Nous Research  autonomous-ai-agents: claude-code, codex, hermes-agent, kanban-codex-...                                                                                                                         │
│               /home/aiuser               creative: architecture-diagram, ascii-art, ascii-video, b...                                                                                                                                     │
│     Session: 20260529_201104_fe0a12      data-science: jupyter-live-kernel                                                                                                                                                                │
│                                          devops: kanban-orchestrator, kanban-worker, webhook-sub...                                                                                                                                       │
│                                          email: himalaya                                                                                                                                                                                  │
│                                          gaming: minecraft-modpack-server, pokemon-player                                                                                                                                                 │
│                                          general: dogfood, yuanbao                                                                                                                                                                        │
│                                          github: codebase-inspection, github-auth, github-code-r...                                                                                                                                       │
│                                          mcp: native-mcp                                                                                                                                                                                  │
│                                          media: gif-search, heartmula, songsee, spotify, youtub...                                                                                                                                        │
│                                          mlops: audiocraft-audio-generation, benchmark-openai-a...                                                                                                                                        │
│                                          note-taking: obsidian                                                                                                                                                                            │
│                                          productivity: airtable, google-workspace, linear, maps, nano-...                                                                                                                                 │
│                                          red-teaming: godmode                                                                                                                                                                             │
│                                          research: arxiv, blogwatcher, llm-wiki, polymarket, resea...                                                                                                                                     │
│                                          smart-home: openhue                                                                                                                                                                              │
│                                          social-media: xurl                                                                                                                                                                               │
│                                          software-development: debugging-hermes-tui-commands, hermes-agent-ski...                                                                                                                         │
│                                                                                                                                                                                                                                           │
│                                          82 tools · 86 skills · 3 MCP servers · /help for commands                                                                                                                                        │
│                                          ⚠ 257 commits behind — run hermes update to update                                                                                                                                               │
╰───────────────────────────────────────────────────────────────────────────────────────────────

コメント

タイトルとURLをコピーしました