Files
conversation-history/SquareMCP/2026-06-12-reviewer-account-handoff.md
T

127 lines
4.3 KiB
Markdown

# Reviewer Account Setup — kimi-cli Handoff
**Date:** 2026-06-12
**Status:** PARTIAL — account created, email connection blocked by Redis
**Related:** [[2026-06-12-v1-launch-deployment]], [[2026-06-12-claude-mcp-directory-submission]]
---
## What's already done
- App account created: `reviewer@squaremcp.com` / `SquareMCPReview2026!`
- Account ID: `8e97af56-7b4a-4371-b816-32f6ed51ddcc`
- API key: `fdb6fb01bb7f4c50a9ab329c7287b81c`
- `sqcp_reviewer` added to `ACCOUNT_PARAM_SCHEMA` enum in `src/manifest.ts` (uncommitted)
- `SQCP_REVIEWER_EMAIL` + `SQCP_REVIEWER_PASSWORD` added to `hermes-k8s.yaml` (already saved, not yet applied)
---
## Steps for kimi-cli to complete
### Step 1 — Create the mailbox on the mail server
SSH into the mail server at `23.120.207.35` and create the reviewer@squaremcp.com mailbox. Same setup as other sqcp accounts (Dovecot/Postfix, password "onelove").
```bash
# On mail server (23.120.207.35) — adjust for whatever user management tool is in use
# For Dovecot with passwd-file or similar:
doveadm user add reviewer@squaremcp.com
# OR for virtual mailboxes:
echo "reviewer@squaremcp.com:{PLAIN}onelove" >> /etc/dovecot/users
# Then reload Dovecot
doveadm reload
```
Verify IMAP access:
```bash
curl -v --ssl-reqd "imaps://23.120.207.35:30993" \
--user "reviewer@squaremcp.com:onelove" \
--request "LIST \"\" \"*\""
```
### Step 2 — Fix Redis (if still down)
Check Redis status on the hermes-mcp pod:
```bash
kubectl exec -n fetcherpay deployment/hermes-mcp -- redis-cli -u "redis://:redis_secure_2024@10.152.183.80:6379" ping
```
If Redis is down, restart the hermes-mcp pod (it reconnects on startup):
```bash
kubectl rollout restart deployment/hermes-mcp -n fetcherpay
kubectl rollout status deployment/hermes-mcp -n fetcherpay
```
### Step 3 — Deploy manifest.ts change (sqcp_reviewer enum)
The `src/manifest.ts` change (adding `sqcp_reviewer` to the account enum) is uncommitted. Build and deploy:
```bash
# Commit
git add src/manifest.ts
git commit -m "feat(manifest): add sqcp_reviewer account to ACCOUNT_PARAM_SCHEMA enum"
# Build + push
docker build -t localhost:32000/hermes-mcp:reviewer-account .
docker push localhost:32000/hermes-mcp:reviewer-account
# Update image SHA in hermes-k8s.yaml, then apply
# The SQCP_REVIEWER env vars are already in hermes-k8s.yaml
kubectl apply -f hermes-k8s.yaml
kubectl rollout status deployment/hermes-mcp -n fetcherpay
```
### Step 4 — Connect reviewer@squaremcp.com email to the reviewer account
After Redis is confirmed healthy and the new pod is running:
```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 response: `{"success": true}` or `{"connected": true}`.
### Step 5 — Deploy privacy.html + terms.html (Action 6 from v1-launch-deployment)
See [[2026-06-12-v1-launch-deployment]] → Action 6.
```bash
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 the 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"
```
---
## Verification checklist
- [ ] `curl -v imaps://23.120.207.35:30993` with reviewer creds → IMAP OK
- [ ] `kubectl exec ... redis-cli ping` → PONG
- [ ] `curl https://hermes.squaremcp.com/openapi.json | jq '.paths | keys[] | select(test("obsidian"))'` → sqcp_reviewer in account enum (or check via tool list)
- [ ] Email connect API → `{"success":true}`
- [ ] Smoke test: `curl -H "x-api-key: fdb6fb01bb7f4c50a9ab329c7287b81c" https://hermes.squaremcp.com/api/email/messages` → returns inbox (not error)
- [ ] `curl -s https://squaremcp.com/privacy | grep "June 12, 2026"` → match
---
## Why this matters
The reviewer@squaremcp.com account is the test account for the Claude.ai MCP Directory submission (Page 3 of the Google Form). Anthropic reviewers will use these credentials to test the full OAuth flow and tool calls. The email connection must be live before the form is submitted.