Commit graph

5 commits

Author SHA1 Message Date
a7344fa332 fix: break feedback loop - only write to inbox from send_message tool
Previously the outbound loop wrote every message to inbox, causing
the homelab bot to process its own responses as new tasks. Now only
explicit claude.ai send_message tool calls write to inbox.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:53:04 +00:00
10f6dbbd19 fix: frame inbox messages as tasks with instruction to acknowledge
Claude was just echoing raw text. Now messages include framing:
"[MCP Bridge Task from claude.ai] <message>" with instruction
to acknowledge and begin working.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:41:24 +00:00
65f84f9552 feat: write outbound MCP messages to homelab bot inbox
MCP bot now writes to ~/homelab/telegram/inbox alongside posting
to the group chat, so the homelab bot can process the messages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:29:37 +00:00
8ede43395e fix: log MCP bot's own outbound messages to database
Bot can't see its own messages via Telegram polling. Now logs them
directly after sending so they appear in pull_updates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 11:55:32 +00:00
1cb16e6e8f feat: MCP bridge - Telegram group logger + FastMCP HTTP server
Single-process Python app that:
- Runs a Telegram bot in a group chat, logging all messages/files to libsql
- Exposes send_message, pull_updates, queue_status MCP tools over HTTP
- Downloads and stores file attachments with Telegram file_id + local path
- Accessible via NetBird mesh at mgmt.mg:8321 (no auth needed)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 23:56:05 +00:00