- src/tracking-links.ts — create, get, record click, validate URL, bot detection
- src/tracking-links.test.ts — 20 tests, all passing
- src/db.ts — tracking_links table, post_drafts table, 6 pilot columns on customers
- src/index.ts — public GET /t/:token redirect route (no auth)
Analytics (click count) is fire-and-forget after redirect.
MySQL is source of truth; redirect never depends on Redis.
Related: SquareMCP/2026-06-09-tracking-links-deployment.md