使用说明
🪝 mcp webhook
强大的MCP服务器,为您的AI代理提供webhook消息传递功能
通过Claude、Dive和其他MCP兼容的AI系统向任何webhook端点发送消息。非常适合通知、警报和自动消息传递。
✨ 特性
🌐 通用Webhook支持
|
🎨 定制
|
🔌 MCP集成
|
🛡️ 简单安全
|
🚀 安装
入门指南
将以下配置添加到MCP客户端:
{
"mcpServers": {
"webhook": {
"command": "npx",
"args": ["-y", "@kevinwatt/mcp-webhook"],
"env": {
"WEBHOOK_URL": "your-webhook-url"
}
}
}
}
MCP客户端配置
Dive
- 打开 潜水桌面
- 点击 “+添加MCP服务器”
- 粘贴上面提供的配置
- 点击 “保存” 你准备好了!
Claude Code
使用Claude Code CLI添加webhook MCP服务器(引导):
claude mcp add webhook -- npx @kevinwatt/mcp-webhook
然后在您的环境或配置中设置webhook URL。
Claude Desktop
添加到您的 claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - 窗户:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"webhook": {
"command": "npx",
"args": ["-y", "@kevinwatt/mcp-webhook"],
"env": {
"WEBHOOK_URL": "your-webhook-url"
}
}
}
}
Cursor
首选 Cursor Settings -> MCP -> New MCP Server.使用上面提供的配置。
VS Code / Copilot
通过VS Code CLI安装:
code --add-mcp '{"name":"webhook","command":"npx","args":["-y","@kevinwatt/mcp-webhook"],"env":{"WEBHOOK_URL":"your-webhook-url"}}'
或者跟随 MCP安装指南 使用上面的标准配置。
Windsurf
跟随 配置MCP指南 使用上面的标准配置。
Cline
跟随 临床MCP配置指南 并使用上面提供的配置。
Warp
首选 Settings | AI | Manage MCP Servers -> + Add 到 添加MCP服务器.使用上面提供的配置。
JetBrains AI Assistant
首选 Settings | Tools | AI Assistant | Model Context Protocol (MCP) -> Add.使用上面提供的配置。
通过Smithery安装
通过以下方式自动安装适用于Claude Desktop的MCP Webhook服务器 史密瑟里:
npx -y @smithery/cli install @kevinwatt/mcp-webhook --client claude
手动安装
npm install -g @kevinwatt/mcp-webhook
🛠️ 可用工具
| Tool | Description |
|---|---|
send_message |
向配置的webhook端点发送消息
|
💡 使用示例
基本消息
"Send a message to webhook: Hello World!"
"Send 'Build completed successfully' to the webhook"
"Notify the team: Deployment finished"
自定义用户名
"Send a message with username 'Deploy Bot': Production update complete"
"Send content='Server restarted', username='System Monitor'"
与阿凡达
"Send a message with custom avatar: content='Alert!', avatar_url='https://example.com/alert.png'"
自动化示例
"Send a webhook message when the build completes"
"Notify via webhook: All tests passed!"
"Send deployment status to the webhook channel"
🔧 配置
环境变量
| 变量 | 描述 | 必填 |
|---|---|---|
WEBHOOK_URL |
webhook端点URL | 是 |
示例配置
Discord Webhook:
{
"env": {
"WEBHOOK_URL": "https://discord.com/api/webhooks/..."
}
}
Slack传入Webhook:
{
"env": {
"WEBHOOK_URL": "https://hooks.slack.com/services/..."
}
}
Mattermost Webhook:
{
"env": {
"WEBHOOK_URL": "https://your-mattermost.com/hooks/..."
}
}
🏗️ 建筑
构建于
主要特点
- ✅ 简单:最少的设置,只需提供一个webhook URL
- ✅ 灵活的:适用于任何与webhook兼容的服务
- ✅ 类型安全:完全支持TypeScript
- ✅ 轻量级:最小依赖性
🤝 贡献
欢迎投稿!
- 克隆该仓库
- 创建要素分支(
git checkout -b feature/amazing-feature) - 提交您的更改(
git commit -m 'Add amazing feature') - 推到分支(
git push origin feature/amazing-feature) - 打开拉取请求
📝 许可证
此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。