MCP 服务器 Discord Webhook 是一个能够通过 Discord 网络钩发送消息的工具,有效解决了在 MCP 环境下与 Discord 进行消息交互的问题,为用户提供了便捷的消息发送途径。
MCP 服务器 Discord Webhook 可帮助你轻松地在 MCP 服务器中通过 Discord 网络钩发送消息。下面将为你介绍具体的安装、配置和使用方法。
你可以使用以下命令安装 @genpm/mcp-server-discord-webhook:
npm install @genpm/mcp-server-discord-webhook
在你的 MCP 配置文件中添加以下内容,以完成服务器的配置:
{
"mcpServers": {
"discord-webhook": {
"command": "npx",
"args": [
"-y",
"@genpm/mcp-server-discord-webhook"
],
"env": {
"DISCORD_WEBHOOK_URL": "你的 Discord 网络钩 URL"
},
"alwaysAllow": [
"send_message"
]
}
}
}
该功能允许你向 Discord 发送消息。具体参数如下:
content: 消息内容(必填)username: 显示名称(可选)avatar_url: 头像 URL(可选)示例代码如下:
<server_name>discord-webhookserver_name>
<tool_name>send_messagetool_name>
<arguments>
{
"content": "测试消息",
"username": "自定义名称"
}
arguments>
此项目使用 GitHub Actions 进行持续集成和自动化的 npm 发布。当你推送新版本标签(例如 v1.0.0)时,它将自动执行以下步骤:
有关发布流程的详细信息,请参阅 CHANGELOG.md。
本项目采用 MIT 许可证。
genm