Discord网络钩子集成
STDIO用于发送Discord消息的MCP服务器
用于发送Discord消息的MCP服务器
An MCP server for posting messages to Discord webhooks.
npm install @genpm/mcp-server-discord-webhook
Add the following to your MCP configuration file:
{ "mcpServers": { "discord-webhook": { "command": "npx", "args": [ "-y", "@genpm/mcp-server-discord-webhook" ], "env": { "DISCORD_WEBHOOK_URL": "your-discord-webhook-url" }, "alwaysAllow": [ "send_message" ] } } }
Sends a message to Discord.
Parameters:
content
: Message content (required)username
: Display name (optional)avatar_url
: Avatar URL (optional)Example:
<use_mcp_tool> <server_name>discord-webhook</server_name> <tool_name>send_message</tool_name> <arguments> { "content": "Test message", "username": "Custom Name" } </arguments> </use_mcp_tool>
This project uses GitHub Actions for continuous integration and automated publishing to npm. When you push a new version tag (e.g., v1.0.0
), it will automatically:
For more details about the release process, see CHANGELOG.md.
MIT
genm