WW

webexsamples/webex-messaging-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5 stars 10 forks 质量 64 趋势 6MIT

一个模式上下文协议(MCP)服务器,为AI助手提供综合访问Cisco Webex通讯能力.

概览

一个模式上下文协议(MCP)服务器,为AI助手提供综合访问Cisco Webex通讯能力. 这个MCP服务器使AI助手能够通过52个不同的工具与Webex消息交互,覆盖: - :发送、编辑、删除并检索消息 - :创建和管理Webex空间 - :团队创建和成员管理 - :用户管理和目录操作 - :事件通知和集成 - :企业内容管理文件夹、房间标签和附件 - QQ:52个工具,涵盖所有主要信息传输操作 - : 生产准备容器 - : STDIO和HTTP(StreamableHTTP)模式 - : : 支持思科企业认证 - : : 完全 TypeScript/JavaScript 执行,并妥善处理出错 - : 简单符号和端点管理 - Node.js 18+(建议20+)。 警告: 如果您用更低的节点运行, 抓取将不会存在 。 工具使用抓取让 HTTP 呼叫 .

概述(AI 翻译)

一个模式上下文协议(MCP)服务器,为AI助手提供综合访问Cisco Webex通讯能力.

□ 概览

这个MCP服务器使AI助手能够通过52个不同的工具与Webex消息交互,覆盖:

  • ** 信件**:发送、编辑、删除并检索信件
  • 房间:创建和管理Webex空间
  • 小组: 团队的创建和成员管理
  • ** 人员**:用户管理和目录操作
  • Webhooks: 事件通知和合并
  • 企业特征:企业内容管理系统文件夹、房间标签和附件

□ 特性

  • ** 完成Webex API覆盖**:52个工具,涵盖所有主要信息传送业务
  • ** Docker Support**:生产准备集装箱化
  • 双向运输:STIO和HTTP(StreamableHTTP)两种模式
  • 企业准备:支持思科企业认证
  • ** 类型安全**:完整类型脚本/Java脚本执行,并妥善处理出错
  • ** 中央化配置**: 简单标志和端点管理

□ 快开始

· 先决条件

  • Node.js 18+(建议20+)。 警告:如果用更低的节点运行,fetch就不会出现.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Webex MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to Cisco Webex messaging capabilities.

Overview

This MCP server enables AI assistants to interact with Webex messaging through 52 different tools covering:

  • Messages: Send, edit, delete, and retrieve messages
  • Rooms: Create and manage Webex spaces
  • Teams: Team creation and membership management
  • People: User management and directory operations
  • Webhooks: Event notifications and integrations
  • Enterprise Features: ECM folders, room tabs, and attachments

Features

  • ✅ Complete Webex API Coverage: 52 tools covering all major messaging operations
  • ✅ Docker Support: Production-ready containerization
  • ✅ Dual Transport: Both STDIO and HTTP (StreamableHTTP) modes
  • ✅ Enterprise Ready: Supports Cisco enterprise authentication
  • ✅ Type Safe: Full TypeScript/JavaScript implementation with proper error handling
  • ✅ Centralized Configuration: Easy token and endpoint management

Quick Start

Prerequisites

  • Node.js 18+ (20+ recommended). Warning: if you run with a lower version of Node, fetch won’t be present. Tools use fetch to make HTTP calls. To work around this, you can modify the tools to use node-fetch instead. Make sure that node-fetch is installed as a dependency and then import it as fetch into each tool file.
  • Docker (optional, for containerized deployment)
  • Webex API token from developer.webex.com

Token Renewal

Webex Bearer tokens are short-lived. Your current token expires in 12 hours. To renew:

  1. Visit: https://developer.webex.com/messaging/docs/api/v1/rooms/list-rooms
  2. Login with your email
  3. Copy the new bearer token from your profile
  4. Update environment variable “WEBEX_PUBLIC_WORKSPACE_API_KEY” with new token (remove "Bearer " prefix)

Installation

  1. Clone and install dependencies:

    git clone 
    cd webex-messaging-mcp-server
    npm install
    
  2. Configure environment:

    cp .env.example .env
    # Edit .env with your Webex API token
    
  3. Test the server:

    # List available tools
    node index.js tools
    
    # Discover tools with detailed analysis
    npm run discover-tools
    
    # Start MCP server (STDIO mode - default)
    node mcpServer.js
    
    # Start MCP server (HTTP mode)
    npm run start:http
    

🔍 Tool Discovery

The server includes comprehensive tool discovery capabilities:

Tool Discovery Commands

# Human-readable tool analysis
npm run discover-tools

# JSON output for programmatic use
npm run discover-tools -- --json

# Filter tools by category
ENABLED_TOOLS=create_message,list_rooms npm run discover-tools

# Get help
npm run discover-tools -- --help

Tool Manifest

The tools-manifest.json file provides:

  • Tool Categories: Messages, Rooms, Teams, Memberships, People, Webhooks, Enterprise
在 GitHub 查看完整 README

安装

docker run -i --rm -e WEBEX_PUBLIC_WORKSPACE_API_KEY -e WEBEX_USER_EMAIL -e WEBEX_API_BASE_URL webex-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "webex-messaging": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "WEBEX_PUBLIC_WORKSPACE_API_KEY", "-e", "WEBEX_USER_EMAIL", "-e", "WEBEX_API_BASE_URL", "webex-mcp-server" ], "env": { "WEBEX_USER_EMAIL": "[email protected]", "WEBEX_API_BASE_URL": "https://webexapis.com/v1", "WEBEX_PUBLIC_WORKSPACE_API_KEY": "your_token_here" } } } }