240 lines
10 KiB
Markdown
240 lines
10 KiB
Markdown
# Deployment: SquareMCP v1 Launch — Design + Obsidian Spec + Instagram Creds
|
||
|
||
**Date:** 2026-06-12
|
||
**Branch:** main
|
||
**Status:** READY FOR DEPLOY
|
||
**Service:** hermes-mcp (K8s deployment `hermes-mcp`, namespace `fetcherpay`) + product/site (squaremcp.com) + product/app (app.squaremcp.com)
|
||
**Related:** [[2026-06-12-v1-lite-release-plan]], [[2026-06-12-v1-gtm-features]]
|
||
|
||
---
|
||
|
||
## Overview
|
||
|
||
Five changes grouped into one rollout. All are in `main` branch, uncommitted (staged as working tree changes). Build and deploy together.
|
||
|
||
---
|
||
|
||
## Action 1 — Code changes (already written, need commit + deploy)
|
||
|
||
**Files changed:**
|
||
| File | What changed |
|
||
|---|---|
|
||
| `product/site/index.html` | New consumer hero section added above enterprise hero. SMB/mortgage broker audience. CTA → app.squaremcp.com. |
|
||
| `product/app/index.html` | Obsidian card added. v1 platforms first (Obsidian, Email, Facebook, Instagram). Onboarding banner. Connected state CSS. Welcome copy updated. |
|
||
| `src/index.ts` | OAuth login subtitle updated to value prop. |
|
||
|
||
**Commit message:**
|
||
```
|
||
feat(ui): v1 launch — consumer hero, onboarding flow, Obsidian app card
|
||
```
|
||
|
||
**Deploy:**
|
||
```bash
|
||
# Build hermes-mcp (src/index.ts changed)
|
||
docker build -t localhost:32000/hermes-mcp:v1-launch .
|
||
docker push localhost:32000/hermes-mcp:v1-launch
|
||
# Update image SHA in hermes-k8s.yaml, then:
|
||
kubectl apply -f hermes-k8s.yaml
|
||
kubectl rollout status deployment/hermes-mcp -n fetcherpay
|
||
|
||
# Build + deploy product/site (squaremcp.com)
|
||
cd product/site
|
||
docker build -t localhost:32000/squaremcp-site:v1-launch .
|
||
docker push localhost:32000/squaremcp-site:v1-launch
|
||
# Update squaremcp-site image SHA in K8s manifest and apply
|
||
|
||
# Build + deploy product/app (app.squaremcp.com)
|
||
# This is typically static — copy app/ files to the serving location or rebuild container
|
||
```
|
||
|
||
---
|
||
|
||
## Action 2 — Add Obsidian to `getOpenApiSpecChatGPT()` in `src/manifest.ts`
|
||
|
||
This is a **code change** needed before creating the ChatGPT Custom GPT.
|
||
|
||
Open `src/manifest.ts`. Find `getOpenApiSpecChatGPT()`. Add these 4 operations before the email section. Copy the definitions verbatim from `getOpenApiSpec()` in the same file.
|
||
|
||
**Paths to add:**
|
||
```
|
||
GET /api/obsidian/search — search notes by query
|
||
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
|
||
GET /api/obsidian/sync — sync status
|
||
```
|
||
|
||
After adding, deploy. Verify:
|
||
```bash
|
||
curl https://hermes.squaremcp.com/openapi-chatgpt.json | jq '.paths | keys | length'
|
||
# Should return 38+ (currently 33 after the earlier Obsidian add — wait, check current count)
|
||
curl https://hermes.squaremcp.com/openapi-chatgpt.json | jq '[.paths | keys[] | select(startswith("/api/obsidian"))]'
|
||
# Should return Obsidian paths
|
||
```
|
||
|
||
---
|
||
|
||
## Action 3 — Deploy Instagram credentials to K8s
|
||
|
||
**What:** Add two environment variables to `hermes-k8s.yaml` and rollout.
|
||
|
||
**Values needed from Facebook Developer Console:**
|
||
1. Go to [developers.facebook.com/tools/explorer](https://developers.facebook.com/tools/explorer/)
|
||
2. Select the SquareMCP app (same one used for Facebook Pages)
|
||
3. Generate a Page access token with scopes:
|
||
- `pages_manage_posts`
|
||
- `pages_read_engagement`
|
||
- `pages_show_list`
|
||
- `instagram_basic`
|
||
- `instagram_content_publish`
|
||
4. Run: `GET /me/accounts?fields=name,id,instagram_business_account{username,id}`
|
||
5. Copy `instagram_business_account.id` from the response
|
||
|
||
**K8s env vars to add:**
|
||
```yaml
|
||
- name: INSTAGRAM_DEFAULT_ACCESS_TOKEN
|
||
value: "<page access token from step 3>"
|
||
- name: INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID
|
||
value: "<instagram_business_account.id from step 4>"
|
||
```
|
||
|
||
**Also fix Facebook token (expired 2026-05-12):**
|
||
```yaml
|
||
- name: FACEBOOK_DEFAULT_ACCESS_TOKEN
|
||
value: "<new page access token — same token as INSTAGRAM_DEFAULT_ACCESS_TOKEN>"
|
||
- name: FACEBOOK_DEFAULT_PAGE_ID
|
||
value: "<your Facebook Page ID — already in K8s, just update token>"
|
||
```
|
||
|
||
**Verify after deploy:**
|
||
```bash
|
||
curl -H "Authorization: Bearer $YOUR_API_KEY" https://hermes.squaremcp.com/api/facebook/page
|
||
# Should return page info, not "Session has expired"
|
||
|
||
curl -H "Authorization: Bearer $YOUR_API_KEY" https://hermes.squaremcp.com/api/instagram/profile
|
||
# Should return Instagram profile info
|
||
```
|
||
|
||
---
|
||
|
||
## Action 4 — Create ChatGPT Custom GPT (after Actions 1-3 deployed)
|
||
|
||
1. Go to chatgpt.com → Explore GPTs → Create
|
||
2. **Name:** `SquareMCP`
|
||
3. **Description:**
|
||
> 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:**
|
||
> 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`
|
||
- Auth: 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 flow → tool calls
|
||
|
||
**Smoke test (3 prompts):**
|
||
- "Search my notes for SquareMCP"
|
||
- "What is the name on my email account?"
|
||
- "Get my Facebook page info"
|
||
|
||
All 3 pass → submit for public GPT Store review.
|
||
|
||
---
|
||
|
||
## Action 5 — Apply to Claude.ai web marketplace
|
||
|
||
Go to `claude.ai` → Settings → Integrations → find any "Submit Integration" or "Apply" option.
|
||
|
||
**Info to submit:**
|
||
- 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 (still needed)
|
||
|
||
---
|
||
|
||
## Alex Ferrari prep (before 3:00 PM meeting)
|
||
|
||
- [ ] PILOT_CUSTOMER_ID (`9a3f1a23-3080-4f9f-932c-02dae813ee96`) in K8s (env var rollout)
|
||
- [ ] Alex texts +19547385805 to open WhatsApp session
|
||
- [ ] Fresh draft seeded: "Rates dropped again this week..." → calendly.com/alexferrari/30min
|
||
- [ ] Facebook OAuth tested live
|
||
- [ ] End-to-end test: WhatsApp → approval → Facebook post
|
||
|
||
---
|
||
|
||
## Action 6 — Deploy updated privacy policy + terms (kimi-cli)
|
||
|
||
**Files changed (in main, uncommitted):**
|
||
- `product/site/privacy.html` — complete rewrite. Now covers: individual users, social platform data access, email content, Obsidian vault, how AI systems interact, OAuth, data retention (90 days logs), user rights (disconnect, delete request). Updated date: June 12, 2026.
|
||
- `product/site/terms.html` — targeted updates. Service description now covers consumer use case (personal accounts + social platforms). Removed "pilot intake" language. Added HERONS LLC contact address.
|
||
|
||
**Why needed:** The old privacy policy was written for enterprise B2B pilots and would cause rejection from the Claude.ai MCP Directory submission (which requires coverage of: connected platforms, data access per platform, AI interaction model, user rights).
|
||
|
||
**Deploy command:**
|
||
```bash
|
||
# Rebuild squaremcp-site (same Dockerfile, just HTML changes)
|
||
cd product/site
|
||
docker build -t localhost:32000/squaremcp-site:v1-legal .
|
||
docker push localhost:32000/squaremcp-site:v1-legal
|
||
# Update squaremcp-k8s-ingress.yaml image SHA and apply
|
||
```
|
||
|
||
**Verify:**
|
||
```bash
|
||
curl -s https://squaremcp.com/privacy | grep "June 12, 2026"
|
||
curl -s https://squaremcp.com/terms | grep "June 12, 2026"
|
||
```
|
||
|
||
---
|
||
|
||
## Verification Checklist
|
||
|
||
- [ ] `https://squaremcp.com` — consumer hero visible above enterprise section
|
||
- [ ] `https://app.squaremcp.com` — Obsidian card present, v1 platforms first, onboarding banner
|
||
- [ ] `https://hermes.squaremcp.com/login` — new subtitle: "One login connects Claude and ChatGPT to your notes, email, and social accounts."
|
||
- [ ] `https://hermes.squaremcp.com/openapi-chatgpt.json` — includes `/api/obsidian/*` paths
|
||
- [ ] `GET /api/facebook/page` — returns page info (not expired token error)
|
||
- [ ] `GET /api/instagram/profile` — returns profile (not "credentials not configured")
|
||
|
||
## Deployment execution log
|
||
|
||
---
|
||
|
||
## 2026-06-12 10:45 UTC — kimi-cli execution summary
|
||
|
||
**Commit:** `bc58bef`
|
||
**Repo summary:** `.planning/phases/02-v1-launch-deployment/02-01-SUMMARY.md`
|
||
|
||
**Done:**
|
||
- [x] Built + deployed `hermes-mcp@sha256:1ada6f03...` — Obsidian in ChatGPT spec, login subtitle update
|
||
- [x] Built + deployed `squaremcp-site@sha256:e07e2020...` — consumer hero + logo BMP
|
||
- [x] Built + deployed `squaremcp-app@sha256:c2bc1ee1...` — Obsidian card, v1 platform ordering, onboarding banner
|
||
- [x] Fixed `src/Dockerfile` — copies `scripts/` before `npm install`
|
||
- [x] Committed all 11 files with `feat(ui): v1 launch — consumer hero, onboarding flow, Obsidian app card`
|
||
- [x] Verified live:
|
||
- `hermes.squaremcp.com/health` → 200
|
||
- `hermes.squaremcp.com/openapi-chatgpt.json` → 33 paths, Obsidian endpoints present
|
||
- `hermes.squaremcp.com/api/obsidian/search` → returns notes
|
||
- `squaremcp.com` → consumer hero visible
|
||
- `app.squaremcp.com` → Obsidian card visible
|
||
- `hermes.squaremcp.com/login` → new subtitle visible
|
||
|
||
**Blocked:**
|
||
- [ ] Action 3 — Facebook token expired (2026-05-12); Instagram creds empty. Need user to provide fresh Page access token + Instagram Business Account ID from Facebook Developer Console.
|
||
- [ ] Action 4 — Create ChatGPT Custom GPT (blocked by Action 3)
|
||
- [ ] Action 5 — Apply to Claude.ai marketplace (blocked by Action 3, also needs 512×512 logo)
|
||
|
||
**Next step:** User provides Facebook/Instagram credentials → kimi-cli deploys to K8s → then creates GPT / applies to Claude.ai marketplace.
|
||
|