MCP ExplorerExplorer

Sit Wechat Bot

@zhangzqson a year ago
4 GPL-3.0
FreeCommunity
AI Systems
一个基于MCP+LangChain的微信群聊机器人

Overview

What is Sit Wechat Bot

sit-wechat-bot is a WeChat group chat bot built on the MCP and LangChain architecture, designed to facilitate interactions within WeChat by leveraging the capabilities of agents that manage the bot’s operations.

Use cases

This bot can be used for automating responses in group chats, managing and sending messages, integrating with external systems through HTTP callbacks, and enhancing user interaction within WeChat groups.

How to use

To set up the bot, users need to install UV for managing the Python environment. After activating the environment, configurations must be set up in a YAML file specifying logging, WCF settings, and HTTP callback details, followed by initiating the agent process in each WeChat instance.

Key features

Key features of sit-wechat-bot include real-time message handling, the ability to send messages through a centralized API, and the modular architecture allowing for the integration of features like logging, WCF operations, and customizable interactions.

Where to use

The bot is ideal for use in collaborative environments such as team projects, community groups on WeChat, and any situation where automated messaging and response management can enhance communication efficiency.

Content

sit-wechat-bot

一个基于 MCP+LangChain 的微信群聊机器人

环境准备

# MacOS/Linux 安装 UV
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows 安装 UV
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# 激活 Python 环境
uv venv

架构设计

Agent

在每个 Windows 节点上有一个微信,每个微信附带有一个 Agent 进程,这个进程用于包装所有的 wcferry 的操作,以便于和微信交互。

配置文件结构:

logger: <日志相关配置>
wcferry: <WCF相关配置>
http_callback: <接收消息并传递给HTTP CALLBACK>

对外提供API接口:

  • 发送消息

Gateway

在中心服务器运行一个Gateway节点,Agent将

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers