LarkAgentX

LarkAgentX

86

Lark MCP is a Python application designed to use Feishu as an AI assistant for function calls and message processing. It features function registration, asynchronous processing, data persistence, and easy deployment, making use of the Model Context Protocol for handling scenarios effectively.

Lark MCP - Feishu All-Scenario Function Call AI Assistant 🚀

Lark MCP is a modern Python application that allows AI models to perform function calls and message processing through Feishu (Lark) without configuring a Feishu bot. Your Feishu account acts as the AI assistant, and functions are automatically called based on scenarios.

Features

  • Reverse engineer Feishu Protobuf over Websockets and API for message monitoring and recording.
  • Custom function registration for AI model calls.
  • Implements Model Context Protocol-based function call framework.
  • Stores messages in a MySQL database using SQLAlchemy.

Key Functions

  • Joke telling, time retrieval, fortune telling, weather fetching, daily speaker count analysis, top speaker retrieval, user messaging, tool listing, and content-based order extraction.

Requirements

  • Python 3.10+, Node.js 18+, MySQL database

Installation

  • Local: Install dependencies using pip.
  • Docker: Build image and run containers using Docker Compose for a complete application environment.

Configuration

  • Setup your environment variables in a .env file, including database and OpenAI API configurations.

Usage

  • Run the application directly or using Docker Compose, which initializes the MCP server, connects to Feishu API, listens for incoming messages, and processes AI function calls.

Contribution

Contributions are welcome through Forking and Pull Requests. Issues and discussion threads are available for support.