这是一个与 Webex API 集成的 Model Context Protocol (MCP) 服务器的 TypeScript 实现。
git clone https://github.com/bharath063/webex-mcp
npm install
npm run build
构建完成后,会生成一个 dist/index.js 文件。然后可以将此文件配置到 Claude Desktop 和其他应用程序中。有关详细的配置说明,请参阅“使用”部分。 4. (可选)使用 MCP Inspector 测试服务器: 首先,在项目根目录下创建一个 .env 文件,并添加你的 WEBEX_ACCESS_TOKEN:
WEBEX_ACCESS_TOKEN=your_webex_access_token
然后运行以下命令启动 MCP Inspector:
npm run inspect
运行命令后,MCP Inspector 将在 http://localhost:5173(默认端口:5173)可用。在浏览器中打开此 URL 开始测试。
连接到 Claude Desktop 在你的 Claude Desktop 配置文件中添加以下内容(macOS 上位于 ~/Library/Application Support/Claude/claude_desktop_config.json,Windows 上位于 %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"webex": {
"command": "{{PATH_TO_NODE}}", // 运行 `which node` 并在此处放置输出结果
"args": ["/absolute/path/to/webex-mcp/dist/index.js"], // 进入仓库,运行 'pwd'
"env": {
"WEBEX_ACCESS_TOKEN": "your_webex_access_token"
}
}
}
}
更新配置文件后,需要重启 Claude Desktop。重启后,你应该会在输入框右下角看到一个锤子图标。更多详细信息,请访问 官方 MCP 文档
webex-mcp/
├── src/
│ ├── index.ts # 主服务器入口点
├── package.json
├── tsconfig.json
└── .env.example
本项目采用 MIT 许可证。详情见 LICENSE 文件。