feat: upgrade to v0.3.0 with PostgreSQL sessions, daemon mode and setup wizard#9
Open
imdeniil wants to merge 8 commits into
Open
feat: upgrade to v0.3.0 with PostgreSQL sessions, daemon mode and setup wizard#9imdeniil wants to merge 8 commits into
imdeniil wants to merge 8 commits into
Conversation
- Add Telegram daemon for shared connection across multiple terminals
- Replace SQLite with PostgreSQL for session storage (PostgresSession)
- Add Docker Compose setup with PostgreSQL and daemon containers
- Add HTTP proxy client for MCP servers to communicate with daemon
- Add interactive setup wizard (mcp-telegram setup)
- Add new CLI commands: daemon, start --daemon, setup
- Add database migrations for schema initialization
- Update README with daemon mode documentation
Architecture:
MCP Terminal 1 ─┐
MCP Terminal 2 ─┼──▶ Telegram Daemon ──▶ PostgreSQL
MCP Terminal N ─┘ │
▼
Telegram
This allows multiple AI agents/terminals to share a single Telegram
connection without re-authentication or session conflicts.
- setup: auto-create database and run migrations - setup: better error messages and instructions - login: support PostgreSQL mode when DATABASE_URL is set - login: create account in database if not exists - login: update account with user info after auth - Add test_chain.sh for verification
- setup creates database + runs migrations - Authenticates with Telegram - Optionally starts daemon - Provides final instructions This wizard will: 1. Configure PostgreSQL database (create + migrate) 2. Set Telegram API credentials 3. Authenticate with Telegram 4. Optionally start daemon
- Split setup into sync wrapper and async implementation - Fix daemon startup outside of async context - Update README with simplified setup instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR upgrades mcp-telegram to v0.3.0, introducing several major features and stability improvements:
mcp-telegram setupcommand that automates database creation, migrations, and Docker integration.access_hasherrors by syncing entity caches.Changes
PostgresSessionclass insession.py.daemon.pywith robust API and lifecycle management.