Commit Graph

5 Commits

Author SHA1 Message Date
Oleg Proskurin f4b75ebb7d telegram: make MCP config portable across machines
- .mcp.json: switch telegram-* args to relative path (scripts/telegram-mcp.sh)
  so the committed config no longer pins a single user's home directory
- telegram-mcp.sh / regen_telegram_session.sh: drop hardcoded fallbacks for
  TELEGRAM_MCP_BIN / TELEGRAM_MCP_DIR; require them from .env with explicit
  error messages naming the missing variable
- .env.example: document per-machine path variables and per-account session
  strings, with a warning not to copy sessions between devices (Telegram
  revokes the auth key when one session is used from two IPs)
- CLAUDE.md: add a Bootstrap-on-a-new-machine section with the setup steps,
  the portability rationale, and a troubleshooting table for the common
  MCP / session failure modes

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-08 01:36:15 +07:00
usulpro 80c918d282 telegram: move session secrets to .env, launch MCP via wrapper
- .mcp.json: both telegram servers now start via scripts/telegram-mcp.sh
  <usulsu|helper> instead of hardcoding session strings — config is now
  secret-free and safe to commit.
- scripts/telegram-mcp.sh: sources .env, selects the per-account session
  string (TELEGRAM_SESSION_STRING / TELEGRAM_SESSION_STRING_HELPER), execs
  the telegram-mcp binary (path overridable via TELEGRAM_MCP_BIN).
- scripts/regen_telegram_session.sh: rewritten — captures the generated
  string, saves it to .secrets/session_<account>.txt, and upserts it into
  .env. Fixes the broken /projects/... generator path.
- package.json: tg:session:usulsu / tg:session:helper npm scripts.
- .gitignore: ignore .secrets/.

Root cause of the dead session: hardcoded strings lived in git, so laptop
and VPS shared one auth_key across two IPs and Telegram revoked it. Strings
now live only in local, gitignored files — one per device/account.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 00:44:06 +07:00
Oleg Proskurin 631ddddb37 update 2026-06-07 18:24:57 +07:00
Oleg Proskurin 5ee998da5a add trello mcp 2026-05-30 15:43:40 +07:00
Oleg Proskurin 57ab1cde1a update 2026-05-27 20:35:21 +07:00