MCP 服务器 Discord Webhook

MCP 服务器 Discord Webhook

一个用于向 Discord Webhook 发送消息的 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 工具发送消息,示例如下:

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