Hermes Agent 是一个自我完善的自主代理,随着时间的推移,它会创造和完善技能。默认情况下,其研究技能依赖于法学硕士的培训数据,而这些数据对于定价、工具版本和市场趋势等主题来说已经过时。通过连接 MCP 搜索服务器,Hermes 可以访问实时网络数据,从而使其研究成果准确且最新。本教程使用 Hermes Agent 的配置文件系统配置 Scavio 的 MCP 服务器。
前置条件
- 安装 Hermes 代理 (v0.12.0+)
- 来自 scavio.dev 的 Scavio API 密钥
- 基本熟悉 Hermes Agent 资料
操作指南
步骤 1: 创建研究档案
Hermes Agent 使用配置文件来分隔上下文和工具访问。使用 MCP 搜索创建专门的研究资料。
# In your Hermes Agent config (hermes.config.json):
{
"profiles": {
"research": {
"description": "Research profile with live web search",
"mcp_servers": [
{
"name": "scavio-search",
"url": "https://mcp.scavio.dev/mcp",
"auth": {
"type": "header",
"key": "x-api-key",
"value": "$SCAVIO_API_KEY"
}
}
]
}
}
}步骤 2: 验证工具发现
使用研究配置文件启动 Hermes 并验证它是否发现搜索工具。
hermes --profile research
# In the Hermes shell:
> /tools
# Should list: google_search, reddit_search, youtube_search,
# amazon_search, walmart_search, and 6 more from Scavio步骤 3: 创建基于搜索的研究技能
定义一项技能,在将声明包含在输出中之前使用实时搜索来验证声明。
# Example skill prompt for Hermes:
# "Research {topic} using web search. For every factual claim
# (pricing, version, feature), verify it with a live search
# before including it. Cite the source URL for each verified claim.
# Do not include any unverified claims."
# The skill will use google_search, reddit_search, etc. automatically
# when it encounters claims that need verification.步骤 4: 使用定价比较任务进行测试
给 Hermes 一个任务,需要当前数据来验证接地工作。
# In Hermes research profile:
> Compare the pricing of Tavily, Serper, and SerpAPI search APIs.
# Include current tier names and prices.
# Hermes should call google_search for each tool's pricing page
# and return verified, current pricing instead of training data.Python 示例
# Hermes Agent MCP config for research profile:
import json
config = {
'profiles': {
'research': {
'mcp_servers': [{
'name': 'scavio-search',
'url': 'https://mcp.scavio.dev/mcp',
'auth': {'type': 'header', 'key': 'x-api-key', 'value': '$SCAVIO_API_KEY'}
}]
}
}
}
print(json.dumps(config, indent=2))JavaScript 示例
// Hermes Agent MCP config:
const config = {
profiles: {
research: {
mcp_servers: [{
name: 'scavio-search',
url: 'https://mcp.scavio.dev/mcp',
auth: { type: 'header', key: 'x-api-key', value: '$SCAVIO_API_KEY' }
}]
}
}
};
console.log(JSON.stringify(config, null, 2));预期输出
Hermes Agent research profile with live search grounding. Research skills verify claims with current web data before including them.