MCP消息网关
启用通过 MCP 协议向网络钩子端点发送消息的功能,支持自定义内容、显示名称和头像 URL。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"webhook": {
"alwaysAllow": [
"send_message"
],
"args": [
"-y",
"@kevinwatt/mcp-webhook"
],
"command": "npx",
"env": {
"WEBHOOK_URL": "your-webhook-url"
}
}
}
}
该服务需要配置环境变量:WEBHOOK_URL
可用工具 (1 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
send_message 3 个参数 需填 1 项
Send message to webhook endpoint
必填参数:content
服务介绍
MCP Webhook Server
一个与webhooks集成的MCP服务器实现,提供消息发送功能。
特性
- 通用Webhook支持:向任意webhook端点发送消息
- 自定义用户名:为消息设置自定义显示名称
- 头像支持:自定义消息头像
- MCP集成:与Dive及其他兼容MCP的LLM一起工作
安装
npm install @kevinwatt/mcp-webhook
与Dive Desktop配置
- 在Dive Desktop中点击“+ 添加MCP服务器”
- 复制并粘贴此配置:
{
"mcpServers": {
"webhook": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/mcp-webhook"
],
"env": {
"WEBHOOK_URL": "your-webhook-url"
},
"alwaysAllow": [
"send_message"
]
}
}
}
- 点击“保存”以安装MCP服务器
工具文档
- send_message
- 向webhook端点发送消息
- 输入参数:
content(字符串, 必填): 要发送的消息内容username(字符串, 可选): 显示名称avatar_url(字符串, 可选): 头像URL
使用示例
让您的LLM执行以下操作:
"Send a message to webhook: Hello World!"
"Send a message with custom name: content='Testing', username='Bot'"
手动启动
如果需要,可以手动启动服务器:
npx @kevinwatt/mcp-webhook
需求
- Node.js 18+
- 兼容MCP的LLM服务
许可证
MIT
作者
kevinwatt
关键词
- mcp
- webhook
- chat
- dive
- llm
- automation