6.0 KiB
[claude-sonnet-4-6] Session Notes — 2026-05-13
Agent: claude-sonnet-4-6 Topics: Video upload across all platforms, full SaaS platform launch, OpenAPI split, Remotion YC video, usage/billing, TikTok fixes
What was built since 2026-05-08
Eleven commits between the Facebook integration (ffb6756) and today (660b7cd). Major surface areas:
1. Video upload on every social platform
All platforms that support server-side video posting now have it wired end-to-end.
| Platform | Tool | API endpoint | Notes |
|---|---|---|---|
linkedin_upload_video |
LinkedIn Video API (init → upload → register) | Working | |
| Twitter/X | twitter_upload_video_and_tweet |
v1.1 media/upload (INIT → APPEND → FINALIZE) + v2 tweet |
Working |
facebook_create_video_post |
/{pageId}/videos with file_url |
Working | |
instagram_create_reel |
Container → poll → publish (same as photo but media_type: REELS) |
Working | |
| TikTok | tiktok_create_video |
Content Posting API v2 PULL_FROM_URL | Fixed (see below) |
TikTok fixes (7796de1, 30232e3):
- Privacy level changed to
SELF_ONLYfor apps not yet audited by TikTok (sandbox compliance) - OAuth scope expanded to full required set for content posting
- URL verification files added to product/site for TikTok app review
Commit trail: c2eabd8 (LinkedIn), de9d74b (LinkedIn working + static files), ecdf332 (Twitter/FB/Instagram/TikTok)
2. Full SquareMCP SaaS platform — app.squaremcp.com (a5e4c55)
Complete web app deployed alongside the MCP server. Everything a paying customer needs.
Auth:
- JWT sessions with bcrypt password hashing
- Cookie-based sessions + forgot/reset password flow
- Unified middleware accepting API key, OAuth Bearer, or JWT cookie
Per-user credential storage:
- AES-256-GCM encrypted credentials in Redis for all 9 platforms
- Stored per-user, isolated by userId
- Connected via the same
/api/connect/*endpoints
Usage tracking:
src/billing/usage.ts—recordUsage(customerId, tool)called on every tool invocation- Monthly counters per plan: free / starter / growth / enterprise
src/billing/invoices.ts— invoice generation + retrieval
Admin panel:
- Role-based access, customer listing at
/admin
Web UI pages (at app.squaremcp.com):
- Login / register
- Dashboard
- Connections (connect/disconnect platforms)
- Usage (current month tool call counts vs plan limits)
- Invoices
Files:
product/app/app.js— full Express web app (~530 lines)product/app/index.html— UIproduct/app/styles.cssproduct/app/app-k8s.yaml— Kubernetes deploymentproduct/app/nginx-app.conf
3. OpenAPI schema split for ChatGPT (c6b0697)
ChatGPT Custom GPT has a tool limit. Schema split into two:
| Schema | Endpoint | Ops | Covers |
|---|---|---|---|
| Hermes Mail | /openapi-mail.json |
9 | Obsidian + Email |
| Hermes Social | /openapi-social.json |
25 | LinkedIn, TikTok, Instagram, Facebook, Twitter, Telegram, WhatsApp, Discord |
| Full | /openapi.json |
All | Both combined (for MCP / REST clients) |
4. Remotion video project (e599431, 660b7cd)
Remotion (React-based video renderer) added at videos/remotion-demo/.
Marketing compositions:
HeroLogoReveal.tsx— SquareMCP logo revealHeroMCPLayer.tsx— platform connection animationHeroNetwork.tsx— network graphScene1Hook.tsxthroughScene6CTA.tsx— full product demo video sequence
TikTok-specific compositions (videos/remotion-demo/src/scenes/tiktok/):
TikTokHook.tsx,TikTokProblem.tsx,TikTokDemo.tsx,TikTokProof.tsx,TikTokCTA.tsx
YC application video (660b7cd):
YCAppVideo.tsx— 1920×1080, 60s composition- 3s intro card (founder name + company)
- 55s placeholder with branded frame + lower thirds
- 2s outro with logo + tagline
YC_APPLICATION_TALKING_POINTS.md— bullet points + recording tips per YC instructions
5. Hero page update
product/site/index.html— GIF replaced withsquaremcp-hero-loop.mp4(autoplay, muted, loop)- E2E tests updated, baselines regenerated
- Deployed and verified
6. TikTok content marketing
product/animaGen/tiktok_content_prompts.md — content prompts, scripts, and posting schedule for TikTok launch. Created alongside the social video upload capability.
Current platform + capability matrix
| Platform | Text | Photo | Video | Read |
|---|---|---|---|---|
| Yes | — | — | Webhook | |
| Yes | — | — | Yes | |
| Yes | — | Yes | Profile | |
| Yes | Yes | Yes (Reels) | Yes | |
| Yes | Yes | Yes | Yes | |
| Twitter/X | Yes | — | Yes | Yes |
| TikTok | — | — | Yes | Profile |
| Snapchat | — | Mobile only | Mobile only | Profile |
| Telegram | Yes | Yes | — | Updates |
| Discord | Yes | — | — | Yes |
| Obsidian | Yes | — | — | Yes |
Key files added since 2026-05-08
src/billing/usage.ts — recordUsage(), monthly counters
src/billing/invoices.ts — invoice generation
product/app/app.js — full SaaS web app
product/app/index.html + styles.css — web UI
product/app/app-k8s.yaml — k8s deployment
videos/remotion-demo/src/ — Remotion compositions
product/YC_APPLICATION_TALKING_POINTS.md
product/animaGen/tiktok_content_prompts.md
SETUP_GUIDE.md — full setup docs
SOCIAL_PUBLISHING_SETUP.md — platform credential guide
What's still open
- YC application video — record actual founder footage, render via Remotion
- TikTok app review — URL verification files submitted, awaiting approval to lift SELF_ONLY restriction
- Stripe webhook → customer provisioning (noted since 2026-05-08, still not wired)
- MCP session path still uses single-user env vars (multi-tenant MCP not yet wired)
- Email tools (imap/smtp) not yet using
customer.getCredential('email')in multi-tenant mode
claude-sonnet-4-6 | 2026-05-13 | product-incubation