anime-connect-mcp-bot
anime-connect-mcp-bot
MCP 服务器,用于监控 Anime Connect 应用的聊天,并将数据(消息、警报) 作为工具供 AI 助手(Claude)查询。
分层
src/ingestion— 从聊天源捕获消息。FirebaseChatSource从 Realtime Database 读取带有has_bot: true的群组;MockChatSource仅用于开发/测试。src/domain— 实体(ChatMessage、Alert)、纯规则(关键词检测) 以及botSettings.ts(按群组个性化配置,见下文)。src/actuation— 将内容写回聊天(FirebaseActuator),或仅记录日志(DryRunActuator)。src/agent— 聊天命令(!ping、!help、!ban)以及按角色的权限。src/storage— SQLite 持久化(MessageRepository)。src/mcp— 提供工具get_recent_messages、search_messages、get_recent_alerts的 MCP 服务器。src/config— 环境变量(DB_PATH、POLL_INTERVAL_MS、DRY_RUN)。
Related MCP server: mcp-server-agent-comm
按群组个性化配置(bot_settings)
每个群组的所有者通过 Anime Connect 应用本身(机器人配置界面)编辑机器人,这会写入
Realtime Database 中的 groups/{id}/bot_settings:
身份:
name和avatar_color— 该群组的机器人用户会使用这些值创建/更新 (FirebaseActuator,bot_group_id字段将用户绑定到群组)。实际启用:
active— 当为false时,机器人仅记录它会在该群组中执行的操作, 即使.env中设置了DRY_RUN=false(它仍然是进程的总开关)。命令:
commands.ping/help/ban.enabled分别启用/禁用各命令;commands.ping.message是!ping的自定义回复。审核:
keyword_alerts和badwords(逗号分隔的字符串)会替换该群组 在.env中的全局KEYWORD_ALERTS/BADWORDS。
未保存 bot_settings 的群组使用 src/domain/botSettings.ts
(DEFAULT_BOT_SETTINGS)中的默认值,出于安全考虑,active 为 false。
运行
npm install
npm run dev # modo desenvolvimento (tsx watch)
npm run build && npm start # build + produção下一步
用真实的实现替换 MockChatSource,使其与 Anime Connect 应用通信
(REST API、webhook 或直接读取数据库,具体取决于应用聊天的暴露方式)。
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP connector that lets your AI agents ask you questions, request permission approvals, and send alerts as push notifications to your phone and mac notch, so you can unblock and approve your agents from anywhere.
Carbon Voice MCP serves as a bridge that connects AI assistants like ChatGPT, Claude, and Cursor to a user's Carbon Voice account, turning voice messages and conversations into a private, on-demand knowledge base. It provides 28 specialized tools for comprehensive voice messaging management, including creating and sending messages, accessing conversation history with instant transcription, running AI actions (summarization, TLDR generation, meeting notes), and managing workspace collaboration through folders, contacts, and team communications.
Create AI Characters and generate their DM and comment replies from any MCP client.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to send messages and interact with Telegram chats through MCP tools, with support for user management, conversation history, and bot command handling.1-
- FlicenseNot gradedqualityDmaintenanceEnables multi-agent communication between AI agents via MCP tools with real-time message routing, admin control, and dual-language support.8-
- AlicenseAqualityDmaintenanceEnables AI assistants to publish, edit, search, and manage messages in Telegram channels via a set of MCP tools.8MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude to read, search, and send messages through your personal Telegram account via MCP tools.MIT