Webex消息工具

一个MCP服务器,将Webex消息作为工具暴露给Claude和其他MCP客户端使用。

  • by ayourtch-llm
  • Rust
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 ayourtch-llm/mcp-webex-messaging

使用说明

mcp-webex消息传递

一 主控程序 服务器,将Webex消息作为Claude和其他MCP客户端的工具公开。

工具

工具 说明
send_webex_message 通过电子邮件地址向某人发送直接消息
get_webex_messages 从1:1直接对话中检索最近的消息

send_webex_message

参数 类型 必填 说明
recipient_email string yes 收件人的电子邮件地址
message_text string yes 消息内容
use_markdown boolean no 以Markdown格式发送(默认值:false)

get_webex_messages

参数 类型 必填 说明
recipient_email string yes 此人的电子邮件地址
max integer no 要检索的最大邮件数(默认值:10)

配置

服务器从中读取配置 WEBEX_APCHAT_SECRET 先是环境变量,然后回退到 ~/.config/apchat/env.

示例 ~/.config/apchat/env:

WEBEX_APCHAT_SECRET=your-webex-personal-access-token
WEBEX_PERMITTED_USERS=you@example.com,colleague@example.com

WEBEX_APCHAT_SECRET(必填)

您的Webex个人访问令牌。从以下位置获取一个 developer.webex.com.

WEBEX_PERMITED_USER(可选)

以逗号分隔的可发送邮件的电子邮件地址白名单。如果此密钥不存在或为空,则允许使用所有地址。如果设置,则任何针对不在列表中的地址的工具调用都会被拒绝并出错。

构建

cargo build --release

二进制文件位于 target/release/mcp-webex-messaging.

与Claude Code一起使用

添加 ~/.claude.json 在...之下 mcpServers:

{
  "mcpServers": {
    "webex": {
      "command": "/path/to/mcp-webex-messaging",
      "args": []
    }
  }
}

替换 /path/to/mcp-webex-messaging 带有编译二进制文件的绝对路径。

运行测试

cargo test