Files
conversation-history/SquareMCP/2026-06-12-kimi-cli-handoff.md

247 lines
8.5 KiB
Markdown
Raw Permalink 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.
# kimi-cli Handoff — 2026-06-12
**Date:** 2026-06-12
**Priority:** High — reviewer account and privacy policy needed for Claude.ai MCP Directory submission
**Related:** [[2026-06-12-v1-launch-deployment]], [[2026-06-12-reviewer-account-handoff]], [[2026-06-12-claude-mcp-directory-submission]]
---
## What needs to happen (in order)
### Step 1 — Commit and deploy hermes-mcp
Two changes are uncommitted in the working tree:
**`src/manifest.ts`** — `sqcp_reviewer` added to `ACCOUNT_PARAM_SCHEMA` enum (allows reviewer@squaremcp.com as an email account alias in tool calls)
**`hermes-k8s.yaml`** — two new env vars added after `SQCP_ADMIN_PASSWORD`:
```yaml
- name: SQCP_REVIEWER_EMAIL
value: "reviewer@squaremcp.com"
- name: SQCP_REVIEWER_PASSWORD
value: "onelove"
```
Deploy:
```bash
git add src/manifest.ts
git commit -m "feat(manifest): add sqcp_reviewer account to ACCOUNT_PARAM_SCHEMA enum"
docker build -t localhost:32000/hermes-mcp:reviewer-setup .
docker push localhost:32000/hermes-mcp:reviewer-setup
# Update image SHA in hermes-k8s.yaml, then:
kubectl apply -f hermes-k8s.yaml
kubectl rollout status deployment/hermes-mcp -n fetcherpay
```
Note: the pod restart also reconnects Redis (was closed — blocking email connect API calls).
---
### Step 2 — Create reviewer@squaremcp.com mailbox on the mail server
SSH into `23.120.207.35` and create the mailbox. Same setup as other sqcp accounts (Dovecot, password "onelove").
```bash
# Adjust for whichever user management method the mail server uses
# Typical Dovecot virtual mailbox setup:
echo "reviewer@squaremcp.com:{PLAIN}onelove" >> /etc/dovecot/users
doveadm reload
```
Verify:
```bash
curl -v --ssl-reqd "imaps://23.120.207.35:30993" \
--user "reviewer@squaremcp.com:onelove" \
--request "LIST \"\" \"*\""
# Expected: * LIST (\HasNoChildren) "." "INBOX"
```
---
### Step 3 — Connect reviewer email account via API
After the new hermes-mcp pod is running (Step 1) and the mailbox exists (Step 2):
```bash
curl -X POST https://hermes.squaremcp.com/api/connect/email \
-H "Content-Type: application/json" \
-H "x-api-key: fdb6fb01bb7f4c50a9ab329c7287b81c" \
-d '{
"host": "23.120.207.35",
"port": "30993",
"user": "reviewer@squaremcp.com",
"password": "onelove",
"smtpHost": "smtp.azurecomm.net",
"smtpPort": "587"
}'
```
Expected: `{"success":true}` or `{"connected":true}`
Smoke test:
```bash
curl -s https://hermes.squaremcp.com/api/email/messages \
-H "x-api-key: fdb6fb01bb7f4c50a9ab329c7287b81c"
# Expected: inbox messages array (not an error)
```
---
### Step 4 — Deploy updated privacy.html + terms.html
Both files are modified but uncommitted in `product/site/`:
- `privacy.html` — complete rewrite for individual users (June 12, 2026)
- `terms.html` — updated service description, HERONS LLC address, removed pilot language
```bash
git add product/site/privacy.html product/site/terms.html
git commit -m "legal: update privacy policy and terms for v1 consumer launch"
cd product/site
docker build -t localhost:32000/squaremcp-site:v1-legal .
docker push localhost:32000/squaremcp-site:v1-legal
# Update squaremcp-site image SHA in site K8s manifest and apply
```
Verify:
```bash
curl -s https://squaremcp.com/privacy | grep "June 12, 2026"
curl -s https://squaremcp.com/terms | grep "June 12, 2026"
```
---
### Step 5 — Deploy docs design fixes (docs.squaremcp.com)
Commits cbdf1a7, b08d234, 58a6d0f, a326611 on main. Changes: IBM Plex Sans font, mobile nav restored, emoji removed from all card headings + platform icons, touch targets ≥44px, H4→H3 heading hierarchy, SVG favicon on all pages, "Open app" → app.squaremcp.com.
```bash
docker build -t localhost:32000/squaremcp-docs:design-fixes -f docs/Dockerfile docs/
docker push localhost:32000/squaremcp-docs:design-fixes
# Update image SHA in docs/docs-k8s.yaml and apply
kubectl apply -f docs/docs-k8s.yaml
```
See [[2026-06-12-docs-design-review]] for full audit + verify commands.
---
## Verification checklist
- [ ] `kubectl rollout status deployment/hermes-mcp -n fetcherpay` → successfully rolled out
- [ ] `curl -s https://hermes.squaremcp.com/health` → 200
- [ ] IMAP test with reviewer creds → `* LIST (\HasNoChildren) "." "INBOX"`
- [ ] Email connect API → `{"success":true}`
- [ ] `curl -s -H "x-api-key: fdb6fb01bb7f4c50a9ab329c7287b81c" https://hermes.squaremcp.com/api/email/messages` → inbox array
- [ ] `curl -s https://squaremcp.com/privacy | grep "June 12, 2026"` → match
- [ ] `curl -s https://squaremcp.com/terms | grep "June 12, 2026"` → match
- [ ] `curl -s https://docs.squaremcp.com/ | grep "IBM Plex Sans"` → match
- [ ] `curl -s https://docs.squaremcp.com/ | grep -c "🚀"` → 0
---
## Reviewer account reference (for Claude.ai submission form)
| Field | Value |
|---|---|
| Email | reviewer@squaremcp.com |
| Password | SquareMCPReview2026! |
| API key | fdb6fb01bb7f4c50a9ab329c7287b81c |
| Account ID | 8e97af56-7b4a-4371-b816-32f6ed51ddcc |
After this handoff is complete, these credentials go into the Claude.ai MCP Directory submission form (Page 3).
## Execution progress
---
## 2026-06-12 16:20 UTC — kimi-cli progress update
**Step 1 — Commit + deploy hermes-mcp:** ✅ DONE
- Commit `1335088`: `feat(manifest): add sqcp_reviewer account to ACCOUNT_PARAM_SCHEMA enum`
- Image: `localhost:32000/hermes-mcp@sha256:f7895aad093acb740dde7f1acbb97644ac33b825c68b8119c294d2ed6d675158`
- Deployment rolled out successfully
- Health check: 200 OK, toolCount 55
- Reviewer API key `fdb6fb01bb7f4c50a9ab329c7287b81c` verified working
**Step 4 — Deploy privacy + terms:** ✅ DONE
- Commit `af08413`: `legal: update privacy policy and terms for v1 consumer launch`
- Image: `localhost:32000/squaremcp-site@sha256:f0e43780d21858dfbd95d3569ce7e41af4eff13094f4dddba317b2dc3211c96e`
- Verified live (no-cache): both `/privacy` and `/terms` show "Last updated June 12, 2026"
**Step 2 — Create reviewer mailbox:** ❌ BLOCKED
Cannot reach the mail server from this agent environment:
- SSH to `23.120.207.35:22` → Connection timed out
- SSH to `23.120.207.35:2222` → Connection timed out
- IMAP test to `23.120.207.35:30993` → Connection timed out
- `kubectl exec` is broken due to K8s TLS cert mismatch (node IP changed)
**Step 3 — Connect email via API:** ⏳ PENDING — blocked by Step 2 (mailbox must exist first)
### What the user needs to do for Step 2
SSH into `23.120.207.35` and create the `reviewer@squaremcp.com` mailbox. Example for Dovecot virtual mailboxes:
```bash
ssh -p 2222 garfield@23.120.207.35
# On the server:
echo "reviewer@squaremcp.com:{PLAIN}onelove" >> /etc/dovecot/users
doveadm reload
```
Then verify IMAP:
```bash
curl -v --ssl-reqd "imaps://23.120.207.35:30993" \
--user "reviewer@squaremcp.com:onelove" \
--request "LIST \"\" \"*\""
```
Once the mailbox exists, I can run Step 3 immediately.
### Commits so far
```
1335088 feat(manifest): add sqcp_reviewer account to ACCOUNT_PARAM_SCHEMA enum
af08413 legal: update privacy policy and terms for v1 consumer launch
663107b deploy: hermes-mcp reviewer enum + squaremcp-site legal update
```
## Step 3 completion
---
## 2026-06-12 16:55 UTC — Step 3 complete, Redis fix deployed
**Done:**
- Fixed `src/redis.ts` — added `reconnectStrategy` and connection lifecycle logging
- Deployed `hermes-mcp@sha256:c3d6ce959184e3fdf0d33ce84547aa0b0092ffdf535da90e09e18e161108ed6a`
- Connected reviewer email account via API:
```json
{"connected":true,"platform":"email"}
```
- Verified email profile works:
```json
{"email":"reviewer@squaremcp.com","name":"reviewer","account":"custom"}
```
- Verified Obsidian search works with reviewer API key
**Commit:** `de6d6ae`
**Remaining from original handoff:** None — Steps 1–4 are complete. Facebook/Instagram token issue is a separate v1 Lite blocker, not part of this handoff.
---
## 2026-06-12 — Accessibility + docs deploy (later session)
**app.squaremcp.com — aria-labels:** ✅ DONE
- Commit `7e32dca`: `style(a11y): add aria-labels and title tooltips to all buttons and form inputs`
- All 11 platform Connect buttons: `aria-label="Connect [Platform]"` + `title="Connect [Platform]"`
- All form inputs (login, signup, reset, webhook): `aria-label` on each
- Modal close button: `aria-label="Close" title="Close"`
- Deployed: `squaremcp-app@sha256:88c9163b...` → app.squaremcp.com ✅
**docs.squaremcp.com — design fixes:** ✅ DONE
- Commits cbdf1a7, b08d234, 58a6d0f, a326611 (IBM Plex Sans, mobile nav, emoji removed, H3 headings, touch targets, favicon, Open app link)
- Deployed: `squaremcp-docs@sha256:762051a6...` → docs.squaremcp.com ✅
- kimi-cli deploy commit: `d4b2ec2`