🚀 mcp-wecombot服务器
](https://smithery.ai/server/@gotoolkits/mcp-wecombot-server)
一个MCP服务器应用程序,向WeCom群组机器人发送各种类型的消息。
安装
通过Smithery安装
通过以下方式自动为Claude Desktop安装mcp-wecombot服务器 史密瑟里:
npx -y @smithery/cli install @gotoolkits/mcp-wecombot-server --client claude-desktop手动安装
# clone the repo and build
$ git clone https://github.com/gotoolkits/mcp-wecombot-server.git
$ cd mcp-wecombot-server && make build
$ sudo ln -s $PWD/dist/mcp-wecombot-server_xxx_xxxx /usr/local/bin/mcp-wecombot-server
# "$PWD/dist/mcp-wecombot-server_xxx_xxxx" replace with the actual binary file name
#You can also download and use the pre-compiled release binary package.配置
{
"mcpServers": {
"mcp-wecombot-server": {
"command": "mcp-wecombot-server",
"env": {
"WECOM_BOT_WEBHOOK_KEY": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
}
}
}
}用法
- send_text
向WeCom群发送短信
- send_markdown
向微信群发送降价消息
- send_image
向WeCom群发送图片消息
- send_news
向微信群发送新闻消息,新闻包括标题、描述、网址、图片网址
- send_template_card
向微信群发送模板卡片消息
- 上传文件
上传文件到WeCom
样品
> prompt: 给我在WeCom发送一条文本消息,消息内容为:这是一条测试消息
> prompt: 给我在WeCom发送一条markdown消息,消息内容为:# 这是一条测试 Markdown 消息
> prompt: 给我在WeCom发送一条图文消息,图文标题为:这是一条图文消息,图文描述为:这是一条图文消息,图文链接为:https://github.com/gotoolkits,图文图片为:https://gips3.baidu.com/it/u=1502376378,1119109542&fm=3081&app=3081&f=JPEG?w=2560&h=1688
> Send me a text message on WeCom with the content: This is a test message.
> Send me a Markdown message on WeCom with the content: # This is a test Markdown message
> Send me a graphic message on WeCom with the title: This is a graphic message, the description: This is a graphic message, the link: https://github.com/gotoolkits, and the image: https://gips3.baidu.com/it/u=1502376378,1119109542&fm=3081&app=3081&f=JPEG?w=2560&h=1688
微信机器人
微信集团机器人配置指南可参考: https://developer.work.weixin.qq.com/document/path/91770
WECOM_BOT_WEBHOOK_KEY是机器人WEBHOOK密钥
例如:
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa
“693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa”是您自己的WECOM_BOT_WEBHOOK_KEY
