Skip to content

v0.3.0 — telegram-ads-mcp

Latest

Choose a tag to compare

@zai-one zai-one released this 01 Sep 11:09

Operator-facing follow-up to v0.2.0. Unofficial MCP for ads.telegram.org. TON cabinet, billed in Gram. Cookies stay in a gitignored .env.

Что стало лучше / What got better

  • Stats. get_ad_stats echoes request period (5min = last 24h, day = lifetime). summary.spend and charts.budget are already scaled (spend_already_scaled / values_already_scaled) — do not divide. No CSV tool; optional dump is gitignored reports/.
  • Session. Dead cookies: INSTALL.md DevTools clicks (F12 → Application → Cookies → ads.telegram.org) into .env only, then reload_session. Never paste values into chat.
  • Bugs / Issues. Playbook Found a bug → Issue (offer, do not open unasked). Local uv run python scripts/check_security.py --issue draft.md prints gh issue create or refuses; does not open. Issue form forbids cookies and hashes.
  • Write gate. write_gated now includes tool, class, would_send (intended args, no secrets) and sent: false. Not a platform dry-run.
  • Audience / events. Access denied → code: access_denied, hint: skip. Do not retry-loop.
  • Create. launch_ad takes topics, exclude_*, locations. Drops langs when specific channels are set (platform Target invalid).
  • Later campaign service. Wheel JSON Schema (telegram_ads_mcp/schemas/) names campaign brief / review artifact / stats dump. This repo is still not that SaaS.
  • Local notes. AGENTS.local.md is gitignored. Client playbook stays AGENTS.md. MCP JSON without secrets: mcp.json.example.

Use it

  • Clone, uv sync, copy .env.example.env. Command: telegram-ads-mcp.
  • Agent setup: paste INSTALL.md (includes starring the repo).
  • Playbook: ads://playbook / AGENTS.md.

Not in this tag

PyPI is not published. Live write-checks against a cabinet are still operator-side (OFFLINE.md). Not in this tag: confirm_hash in-memory handle, live upload_media pin, Playwright preview, 26th tool, connecting Cursor mcp.json with real cookies.

License is LicenseRef-ZAI-ONE (not MIT): run against your own cabinet; do not copy or remix; file Issues.