Hermes Agent 是 Nous Research 的 2026 年自主任务执行框架。它附带 40 多个内置工具和本机 MCP 支持,这意味着您可以使用 Scavio 对其进行扩展,以实现实时网络、购物、视频和讨论搜索。本教程逐步介绍如何将 Scavio 的 MCP 服务器连接到在本地 Qwen 3.5 上运行的 Hermes 设置。
前置条件
- 从 hermes-agent.nousresearch.com 安装 Hermes Agent
- 通过 Ollama 或 vLLM 的本地 Qwen 3.5+ 实例
- Scavio API 密钥
- 用于 MCP 服务器的 Node.js 20+
操作指南
步骤 1: 安装Hermes代理
根据官方文档下载并安装 Hermes Agent。
# Follow instructions at hermes-agent.nousresearch.com步骤 2: 开始你当地的法学硕士
通过 Ollama 启动 Qwen 3.5。
ollama run qwen3.5:4b步骤 3: 在Hermes工具网关中注册Scadio
编辑 ~/.hermes/tools.json 以添加 Scavio MCP 服务器。
{
"mcpServers": {
"scavio": {
"command": "npx",
"args": ["-y", "@scavio/mcp"],
"env": { "SCAVIO_API_KEY": "sk_live_..." }
}
}
}步骤 4: 使用工具网关启动 Hermes
启动 Hermes,指向您本地的 Qwen 端点。
hermes --model http://localhost:11434 --tools scavio步骤 5: 运行自主任务
要求 Hermes 进行需要实时数据的研究。
hermes task 'Find the top 5 Reddit posts about LangGraph this week and summarize the common complaints'Python 示例
# Hermes runs autonomously. To validate Scavio independently:
import os, requests
r = requests.post('https://api.scavio.dev/api/v1/search',
headers={'x-api-key': os.environ['SCAVIO_API_KEY']},
json={'platform': 'reddit', 'query': 'langgraph', 'sort': 'new', 'time': 'week'})
print(r.json()['posts'][:5])JavaScript 示例
const res = await fetch('https://api.scavio.dev/api/v1/search', {
method: 'POST',
headers: { 'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({ platform: 'reddit', query: 'langgraph', sort: 'new', time: 'week' })
});
console.log((await res.json()).posts.slice(0, 5));预期输出
Hermes runs through a multi-step plan: scavio.search_reddit for LangGraph posts, scavio.get_reddit_post for top comments on each, then synthesizes the common complaints into a report.