anime-connect-mcp-bot
anime-connect-mcp-bot
Anime Connect アプリのチャットを監視し、データ(メッセージ、アラート)をAIアシスタント(Claude)が参照できるツールとして公開するMCPサーバー。
レイヤー
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