Files
conversation-history/SquareMCP/2026-06-12-v1-lite-release-plan.md
T

291 lines
16 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# SquareMCP v1 Lite — Release Plan (ChatGPT + Claude)
**Date:** 2026-06-12
**Status:** ACTIVE — shipping today
**Goal:** Live on ChatGPT Custom GPT (shareable link → store review) and Claude Desktop today. Claude.ai web marketplace gated (application required, see below).
**Related:** [[2026-06-09-marketplace-release-checklist]], [[Social Platform Integration Status]]
---
## Why This Scope
Full platform parity is built but not all credentials are deployed and some platforms have app-review gates. This release ships the 4 features that are fully live, have no external review blockers, and tell a clear story:
| Feature | Why it's in v1 |
|---|---|
| **Obsidian** | Zero external API — works the moment credentials are set. Unique differentiator vs every other MCP server. |
| **Email (Yahoo/Gmail/SMTP)** | Universal. No OAuth dance for end users — they connect with an app password. Works with any IMAP/SMTP provider. |
| **Facebook** | Credentials live in K8s, posting confirmed working. Alex Ferrari demo target. |
| **Instagram** | Same Facebook app credentials — once Instagram creds are deployed, this is a one-step add. |
**What's explicitly out of v1 and why:**
| Platform | Status | Why out |
|---|---|---|
| Twitter/X | ❌ Creds not in K8s | Need Twitter Developer app-level credentials deployed |
| TikTok | 🟡 Sandbox only | App review still pending — posts are SELF_ONLY until approved |
| LinkedIn | 🟢 Creds in K8s | Could include but adds OAuth friction for new users; save for v1.1 |
| WhatsApp | 🟡 Session-gated | Recipient must text the number first; confusing for self-serve users |
| Telegram/Discord | 🟡 Bot-only | Requires bot setup; not self-serve yet |
---
## Feature Status (Right Now)
### Obsidian ✅ Ready (with one code change needed)
- REST endpoints live at `/api/obsidian/*` in `openapi.json`
- **Gap:** NOT in `openapi-chatgpt.json` — needs to be added before GPT creation
- MCP tools `obsidian_*` are live and available to Claude Desktop today
- Operations: search notes, read note, write note, append to note, sync status
### Email ✅ Ready
- 4 ops in both specs: `GET /api/email/profile`, `GET /api/email/search`, `GET /api/email/read`, `POST /api/email/send`
- Yahoo (`gheron01@yahoo.com`), Gmail, 7+ accounts configured
- New users connect via `POST /api/connect/email` with IMAP/SMTP credentials
### Facebook ✅ Ready
- Credentials in K8s: `FACEBOOK_DEFAULT_ACCESS_TOKEN`, `FACEBOOK_DEFAULT_PAGE_ID`
- 4 ops: get page, get posts, post text, post photo
- Confirmed working (used for Alex Ferrari demo)
### Instagram ⚠️ Needs credentials deployed
- Code complete, endpoints registered
- `INSTAGRAM_DEFAULT_ACCESS_TOKEN` and `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID` not in K8s (as of 2026-05-15 check)
- **Action for kimi-cli:** Get these from Facebook Developer Console (same app as Facebook), deploy to K8s, rollout
---
## Blockers to Clear Before Submission
### Must-have (block launch)
- [ ] **Add Obsidian to `openapi-chatgpt.json`** — copy ops from `openapi.json` into the ChatGPT spec. This is a code change in `src/manifest.ts`. ~30 min.
- [ ] **Deploy Instagram credentials** — `INSTAGRAM_DEFAULT_ACCESS_TOKEN` + `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID` to K8s. kimi-cli action.
### Must-have for public GPT Store (not for private link / Claude Desktop today)
- [ ] **OpenAI builder verification** — verify identity/org at platform.openai.com. Required to move GPT from private link to public store listing.
- [ ] **Logo 512×512** — needed for GPT Store card and Claude.ai listing. Transparent background, works on dark and light.
### Already done ✅
- [x] Privacy policy live: `https://squaremcp.com/privacy` (HTTP 200 confirmed)
- [x] Terms of service live: `https://squaremcp.com/terms` (HTTP 200 confirmed)
- [x] OpenAPI spec live: `https://hermes.squaremcp.com/openapi-chatgpt.json` (29 ops)
- [x] OAuth wildcard callback covers ChatGPT domains
- [x] MCP server live with full tool list (Claude Desktop works today)
- [x] `/.well-known/oauth-protected-resource` live (Claude.ai OAuth requirement)
---
## ChatGPT Custom GPT — Setup Steps (do today)
### Step 1: Add Obsidian to ChatGPT spec (code change)
Open `src/manifest.ts` and find `getOpenApiSpecChatGPT()`. Add these ops before the social platform ops:
```
GET /api/obsidian/search — search notes
GET /api/obsidian/note — read a note by path
PUT /api/obsidian/note — write/overwrite a note
POST /api/obsidian/note/append — append to a note
```
Copy them from `getOpenApiSpec()` in the same file. Deploy (kimi-cli).
### Step 2: Create the Custom GPT
1. Go to chatgpt.com → Explore GPTs → Create
2. **Name:** `SquareMCP`
3. **Description (shown on card):**
> Your AI assistant for notes and social media. Read and write your Obsidian vault, manage email, and post to Facebook and Instagram — all from a conversation.
4. **Instructions (system prompt):**
> You are SquareMCP, an AI assistant that helps users manage their personal knowledge base and social media presence. You can search and edit their Obsidian notes vault, read and send email, post to Facebook pages, and post to Instagram. When a user asks you to do something, confirm what action you're about to take before executing it. Always confirm before sending any email or publishing any post.
5. **Actions → Add Action:**
- Schema URL: `https://hermes.squaremcp.com/openapi-chatgpt.json`
- Authentication: OAuth 2.0
- Client ID: (from `OAUTH_CLIENT_ID` in hermes-k8s.yaml)
- Client Secret: (from `OAUTH_CLIENT_SECRET`)
- Authorization URL: `https://hermes.squaremcp.com/oauth/authorize`
- Token URL: `https://hermes.squaremcp.com/oauth/token`
- Scope: `mcp`
6. **Conversation starters:**
- `Search my notes for [topic]`
- `Post a Facebook update about [topic]`
- `What emails did I get today?`
- `Add a note to my Obsidian vault`
7. **Save as private** → get shareable link → test full OAuth → tool call flow
8. Once stable → Submit for public store review
### Step 3: Test the private GPT
- Complete OAuth flow (will redirect to `https://hermes.squaremcp.com/login`)
- Run: "Search my notes for SquareMCP"
- Run: "What is the name on my email account?"
- Run: "Get my Facebook page info"
- If all 3 work → submit for public review
---
## Claude Desktop — Setup Steps (works today, no review needed)
Add to `~/.claude/claude_desktop_config.json` (or `~/Library/Application Support/Claude/claude_desktop_config.json` on Mac):
```json
{
"mcpServers": {
"squaremcp": {
"type": "http",
"url": "https://hermes.squaremcp.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY_HERE"
}
}
}
}
```
Get API key: sign up at `app.squaremcp.com` → the key is returned on registration.
This gives Claude Desktop access to all MCP tools including Obsidian, email, Facebook, Instagram, and all other connected platforms.
---
## Claude.ai Web Marketplace (browser)
**Important:** The Claude.ai integration catalog is **gated**. You cannot self-publish today — you must apply and wait for Anthropic approval.
**What to do today:**
1. Go to `claude.ai` → Settings → Integrations (or `claude.ai/integrations`)
2. If there's a "Submit Integration" or "Apply" option, fill it out now — the earlier in the queue the better
3. Required info:
- Integration name: `SquareMCP`
- MCP server URL: `https://hermes.squaremcp.com/mcp`
- OAuth metadata: `https://hermes.squaremcp.com/.well-known/oauth-protected-resource`
- Description: `Post to Facebook and Instagram, manage email, and read/write your Obsidian vault — from Claude.`
- Privacy policy: `https://squaremcp.com/privacy`
- Logo: 512×512 (needed — get this ready)
**While waiting for Anthropic approval:** Claude Desktop works now. Share the Desktop config with any technical users today — they don't need to wait.
---
## GPT Store Listing Copy (draft)
**Name:** SquareMCP
**Short description (150 chars):**
> Post to Facebook & Instagram, manage email, and read/write your Obsidian notes vault — directly from ChatGPT.
**Long description (400 chars):**
> SquareMCP connects ChatGPT to your digital life. Search and update your Obsidian knowledge base by asking questions. Read your inbox, draft replies, and send email across multiple accounts. Post text and photos to Facebook pages and Instagram. One OAuth login connects everything. Built for professionals who want AI in their daily workflow without switching apps.
**Category:** Productivity
**Conversation starters:**
- `What's in my Obsidian notes about [topic]?`
- `Post to my Facebook page: [paste text]`
- `Search my email for messages from [name]`
- `Add a note to my vault called [title]`
---
## v1.1 Next (after this ships and stabilizes)
| Addition | Effort | Gate |
|---|---|---|
| LinkedIn posting | ~0 (creds in K8s) | Deploy creds, add to GPT |
| Twitter/X | ~30 min | Get API credentials deployed |
| WhatsApp broadcast | ~1 hr | Users need to opt-in first (already handled) |
| TikTok | After app review | Waiting on TikTok approval |
---
## Handoff to kimi-cli
Two actions needed before the GPT can be created:
**Action 1 — Code change in `src/manifest.ts`:**
Add Obsidian endpoints (`/api/obsidian/search`, `/api/obsidian/note` GET+PUT, `/api/obsidian/note/append`) to `getOpenApiSpecChatGPT()`. Copy from `getOpenApiSpec()` — same route definitions. Deploy.
**Action 2 — K8s credentials:**
Deploy `INSTAGRAM_DEFAULT_ACCESS_TOKEN` and `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID` to hermes-k8s.yaml and rollout. Get values from Facebook Developer Console → Graph API Explorer → same app as Facebook, with `instagram_basic` + `instagram_content_publish` scopes. Run `GET /me/accounts?fields=name,instagram_business_account` to get the business account ID.
## Design changes (2026-06-12, kimi-cli deploy pending)
**Done (code written, needs commit + deploy):**
- [x] `product/site/index.html` — consumer hero wrapper added above enterprise section. Headline: "Tell Claude what to post. It handles your notes, email, and social." CTA → app.squaremcp.com
- [x] `product/app/index.html` — Obsidian card added, v1 platforms first (purple border), onboarding banner, connected state CSS, welcome copy updated
- [x] `src/index.ts` — OAuth login subtitle updated to: "One login connects Claude and ChatGPT to your notes, email, and social accounts."
**Deployment doc:** [[2026-06-12-v1-launch-deployment]]
---
## kimi-cli progress update
---
## 2026-06-12 10:10 UTC — kimi-cli update
**Done:**
- [x] Added Obsidian endpoints to `getOpenApiSpecChatGPT()` in `src/manifest.ts` (`/api/obsidian/search`, `/api/obsidian/note` GET+PUT, `/api/obsidian/note/append`, `/api/obsidian/sync`)
- [x] Fixed `src/Dockerfile` to copy `scripts/` before `npm install` (postinstall patch script was failing the build)
- [x] Built + pushed `localhost:32000/hermes-mcp@sha256:22d2bfa9732c64c837435bb778787369277a7bbbf20188e90367681c049f5a76`
- [x] Updated `hermes-k8s.yaml` image SHA and applied the deployment
- [x] Verified `https://hermes.squaremcp.com/openapi-chatgpt.json` now returns **33 paths** and includes the 4 Obsidian endpoints
- [x] Verified `/api/obsidian/search` works with API key
**New blocker found:**
- Facebook token in K8s is **expired** (expired 2026-05-12). `/api/facebook/page` returns:
> Error validating access token: Session has expired on Tuesday, 12-May-26 22:00:00 PDT.
- Instagram credentials are **not yet configured** in K8s.
**What I need from you:**
Go to [Facebook Developer Console → Graph API Explorer](https://developers.facebook.com/tools/explorer/) for the same app used for Facebook Page posting, then generate:
1. **Facebook Page access token** with these permissions:
- `pages_manage_posts`
- `pages_read_engagement`
- `pages_show_list`
- `business_management` (if accessing Instagram)
- `instagram_basic`
- `instagram_content_publish`
2. **Instagram Business Account ID** — run this in Graph API Explorer:
```
GET /me/accounts?fields=name,id,instagram_business_account{username,id}
```
Use the `instagram_business_account.id` value.
3. **FACEBOOK_APP_ID** and **FACEBOOK_APP_SECRET** (optional but recommended for automatic long-lived token exchange).
Then paste the values here and I'll deploy them to K8s immediately.
## v1 Lite credential strategy
## 2026-06-12 10:20 UTC — Decision: Option 1 (default credentials)
**Decision:** Ship v1 Lite using SquareMCP's own Facebook/Instagram default credentials. Per-customer OAuth is the right long-term architecture but is not implemented for Facebook/Instagram today (no OAuth connect flow in `src/oauth.ts`).
**Why this is okay for v1 Lite:**
- The GPT spec and tool architecture already support per-customer credentials later via `customer.getCredential()`
- Adding per-customer Facebook/Instagram OAuth would require 2–4 hours of new work + Meta app review
- v1 Lite is positioned as a working demo/private GPT, not a full multi-tenant marketplace integration
- We can upgrade to per-customer OAuth in v1.1 without breaking the ChatGPT action schema
**What this means for the GPT copy:**
- For v1 Lite, the GPT posts to SquareMCP-managed Facebook/Instagram accounts
- Update description/instructions to avoid implying users connect their own business accounts
- Frame it as: "post to SquareMCP's Facebook page and Instagram account" or use it as a managed-service demo
**Remaining action:**
- Get fresh Facebook Page access token + Instagram Business Account ID from Facebook Developer Console
- Deploy to K8s as `FACEBOOK_DEFAULT_ACCESS_TOKEN`, `INSTAGRAM_DEFAULT_ACCESS_TOKEN`, `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID`
- Also add `FACEBOOK_APP_ID` + `FACEBOOK_APP_SECRET` to enable long-lived token exchange later
## 2026-06-13 — Blocker resolved: Facebook access token
**Status:** ✅ FIXED\n\nFresh `FACEBOOK_DEFAULT_ACCESS_TOKEN` deployed to K8s and verified working — `GET /api/facebook/page` now returns:\n\n```json\n{\n \"id\": \"1152192567968569\",\n \"name\": \"Squaremcp\",\n \"category\": \"Business service\",\n \"fan_count\": 0,\n \"followers_count\": 0,\n \"link\": \"https://www.facebook.com/1152192567968569\"\n}\n```\n\nNo more \"Session has expired\" error (previously expired 2026-05-12). Facebook posting is unblocked for the Lodge Brothers pilot and the v1 GTM demo.\n\n**Remaining from the original blocker list:** Instagram credentials (`INSTAGRAM_DEFAULT_ACCESS_TOKEN`, `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID`) still not confirmed deployed — separate action.
## 2026-06-13 — Blocker resolved: Instagram credentials
**Status:** ✅ FIXED (deployed 2026-06-12, re-verified 2026-06-13)\n\n`INSTAGRAM_DEFAULT_ACCESS_TOKEN` and `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID` (`17841422623735880`) are deployed to K8s — confirmed via [[2026-06-12-facebook-token-handoff]] and [[2026-06-12-v1-launch-execution-summary]] (Action 3: DONE, token `expires_at: 0`, non-expiring).\n\nRe-verified live just now via `instagram_get_profile`:\n\n```json\n{\n \"id\": \"17841422623735880\",\n \"username\": \"square.mcp\",\n \"name\": \"Garfield Heron\",\n \"followers_count\": 0,\n \"follows_count\": 0,\n \"media_count\": 0\n}\n```\n\nBoth Facebook and Instagram credential blockers from the original v1 Lite blocker list are now cleared. Same underlying token covers both (`FACEBOOK_DEFAULT_ACCESS_TOKEN` = `INSTAGRAM_DEFAULT_ACCESS_TOKEN`).
## 2026-06-13 — Blocker resolved: 512×512 logo
**Status:** ✅ FIXED (deployed 2026-06-12 16:35 UTC)\n\nPer the [[2026-06-12-v1-launch-execution-summary]] \"512x512 logo\" update, `product/site/squaremcp-logo-512.png` (512×512, transparent) was created from the existing 1024×1024 source, added to the site Dockerfile, and deployed (commit `8eafb2b`).\n\nRe-verified live just now:\n```\nGET https://squaremcp.com/squaremcp-logo-512.png\n→ 200, content-type: image/png, content-length: 13347, last-modified: Fri 12 Jun 2026 16:33:55 GMT\n```\n\n**Use this URL for the GPT Store and Claude.ai listing forms:** `https://squaremcp.com/squaremcp-logo-512.png`\n\n**Note:** [[2026-06-12-claude-mcp-directory-submission]] (Page 4 / Open Items table, last modified 20:46 UTC) still lists this as \"MISSING\" — that note predates or wasn't cross-referenced against the 16:35 UTC logo deploy. Flagging there too.