Huntress API MCP Server
镜像
概述
Huntress API MCP 服务器提供编程访问 Huntress 功能的工具,包括账户管理、组织管理、代理管理和事件报告等。
快速安装
# 1. 克隆仓库
git clone <repository-url>
# 2. 安装依赖
npm install
# 3. 创建环境配置
cp .env.example .env
# 编辑 .env 文件填入您的 API 凭据
# 4. 构建服务器
npm run build
配置
在 .env
文件中设置以下变量:
HUNTRESS_API_KEY=your_api_key_here
HUNTRESS_API_SECRET=your_api_secret_here
MCP 集成
将以下配置添加到您的 MCP 设置中:
{
"mcpServers": {
"huntress": {
"command": "node",
"args": ["path/to/huntress-server/build/index.js"],
"env": {
"HUNTRESS_API_KEY": "your_api_key_here",
"HUNTRESS_API_SECRET": "your_api_secret_here"
}
}
}
}
核心功能
- 账户管理:
get_account_info
- 组织管理:
list_organizations
,get_organization
- 代理管理:
list_agents
,get_agent
- 事件报告:
list_incident_reports
,get_incident_report
- 摘要报告:
list_summary_reports
,get_summary_report
- 账单报告:
list_billing_reports
,get_billing_report
注意事项
- 速率限制:每分钟 60 个请求(滑动窗口)
- API 凭据可在
<your_account_subdomain>.huntress.io
获取
许可证
MIT 许可证