LW

loonghao/wecom-bot-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

106 stars 20 forks 品質 89 トレンド 20MIT

loonghao/wecom-bot-mcp-server は、https://github.com/loonghao/wecom-bot-mcp-server. からインポートされたMCPサーバー候補です。

概要

loonghao/wecom-bot-mcp-server は、https://github.com/loonghao/wecom-bot-mcp-server. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

WeCom(WeChat Work)ボット向けのモデルコンテキストプロトコル(MCP)準拠サーバー実装です。

英語 |中文

特徴

  • 複数のメッセージタイプのサポート:
  • マークダウンメッセージ(@mentionsとフォントの色付き)
  • Markdown V2メッセージ(表、リスト、埋め込み画像を含む)
  • 画像メッセージ(base64/ローカルファイル/URL)
  • ファイルメッセージ
  • テンプレートカードメッセージ(text_noticeおよびnews_notice)
  • マルチボットサポート:複数のWeComボットを設定して使用すること
  • @mentionサポート(ユーザーIDまたは電話番号による)
  • メッセージ履歴の追跡
  • 設定可能なログシステム
  • 全型注釈
  • ピダンティックベースデータ検証

要件

  • Python 3.10+
  • WeComボットのウェブフックURL(WeComグループ設定から取得)

設置

WeCom Bot MCP Serverをインストールする方法はいくつかあります:

1.自動インストール(推奨)

####Smethery(Claudeデスクトップ用)を使った:

VSCodeとCline拡張を使った場合:

  1. VSCode マーケットプレイスから Cline Extension をインストールする
  2. コマンドパレットを開く(Ctrl+Shift+P / Cmd+Shift+P)
  3. 「Cline: Install Package」で検索します
  4. 「wecom-bot-mcp-server」と入力し、Enterキーを押してください

2.手動設定

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

WeCom Bot MCP Server

A Model Context Protocol (MCP) compliant server implementation for WeCom (WeChat Work) bot.

English | 中文

Features

  • Support for multiple message types:
    • Markdown messages (with @mentions and font colors)
    • Markdown V2 messages (with tables, lists, embedded images)
    • Image messages (base64/local file/URL)
    • File messages
    • Template card messages (text_notice and news_notice)
  • Multi-bot support: Configure and use multiple WeCom bots
  • @mention support (via user ID or phone number)
  • Message history tracking
  • Configurable logging system
  • Full type annotations
  • Pydantic-based data validation

Requirements

  • Python 3.10+
  • WeCom Bot Webhook URL (obtained from WeCom group settings)

Installation

There are several ways to install WeCom Bot MCP Server:

Using VSCode with Cline Extension:

  1. Install Cline Extension from VSCode marketplace
  2. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  3. Search for “Cline: Install Package”
  4. Type “wecom-bot-mcp-server” and press Enter

2. Manual Configuration (uvx)

Add the server to your MCP client configuration file:

// For Claude Desktop on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
// For Claude Desktop on Windows: %APPDATA%\Claude\claude_desktop_config.json
// For Windsurf: ~/.windsurf/config.json
// For Cline in VSCode: VSCode Settings > Cline > MCP Settings
{
  "mcpServers": {
    "wecom": {
      "command": "uvx",
      "args": [
        "wecom-bot-mcp-server"
      ],
      "env": {
        "WECOM_WEBHOOK_URL": "your-webhook-url"
      }
    }
  }
}

Configuration

Setting Environment Variables

Single Bot (Default)

# Windows PowerShell
$env:WECOM_WEBHOOK_URL = "your-webhook-url"

# Optional configurations
$env:MCP_LOG_LEVEL = "DEBUG"  # Log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL
GitHub で README 全文を見る

インストール

uvx wecom-bot-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

// For Claude Desktop on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json // For Claude Desktop on Windows: %APPDATA%\Claude\claude_desktop_config.json // For Windsurf: ~/.windsurf/config.json // For Cline in VSCode: VSCode Settings > Cline > MCP Settings { "mcpServers": { "wecom": { "command": "uvx", "args": [ "wecom-bot-mcp-server" ], "env": { "WECOM_WEBHOOK_URL": "your-webhook-url" } } } }