Back to MCP directory
publicPublicdnsLocal runtime

genm_mcp-server-discord-webhook

一个通过MCP服务器向Discord webhook发送消息的工具

article

README

🚀 MCP 服务器 Discord 网络钩

MCP 服务器 Discord 网络钩可助力您通过 Discord 网络钩轻松发送消息,为您的消息传递提供便捷途径。

中文 README

🚀 快速开始

本项目能让您借助 Discord 网络钩在 MCP 服务器上发送消息。以下是使用前的安装和配置步骤。

📦 安装指南

使用以下命令进行安装:

npm install @genpm/mcp-server-discord-webhook

📚 详细文档

🔧 配置

在您的 MCP 配置文件中添加如下内容:

{
  "mcpServers": {
    "discord-webhook": {
      "command": "npx",
      "args": [
        "-y",
        "@genpm/mcp-server-discord-webhook"
      ],
      "env": {
        "DISCORD_WEBHOOK_URL": "your-discord-webhook-url"
      },
      "alwaysAllow": [
        "send_message"
      ]
    }
  }
}

✨ 主要特性

send_message

该功能可向 Discord 发送消息。具体参数如下:

  • content:消息内容(必填)
  • username:显示名称(可选)
  • avatar_url:头像 URL(可选)

💻 使用示例

<use_mcp_tool>
<server_name>discord-webhook</server_name>
<tool_name>send_message</tool_name>
<arguments>
{
  "content": "测试消息",
  "username": "自定义名称"
}
</arguments>
</use_mcp_tool>

🔧 技术细节

此项目运用 GitHub Actions 实现持续集成,并能自动发布到 npm。当您推送新版本标签(例如 v1.0.0)时,会自动执行以下步骤:

  1. 构建包
  2. 运行测试
  3. 发布到 npm
  4. 创建 GitHub 发布

有关发布流程的更多详细信息,请参见 CHANGELOG.md

📄 许可证

本项目采用 MIT 许可证。

👨‍💻 作者

genm

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client