Sync vault notes: April-November 2026 sessions, projects, and architecture

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
garfieldandClaude Sonnet 5.5 committed 2026-11-13 11:00:53 -05:00
1 parent fe4fe656be
commit 994c7ae577
379 files changed
+55216 -107

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
---
tags: [daily, test]
date: 2026-04-15
---
# Daily Note – 2026-04-15
## Morning
Reviewed hermes-mcp deployment. All services up.
## Tasks
- [ ] Verify Obsidian MCP tools
- [ ] Check Syncthing sync status
## Verification
- [x] Obsidian MCP tools verified
+60
View File
@@ -0,0 +1,60 @@
## ChatGPT Conversation Log
## Conversation Transcript
**User:** ![image provided: Miro board screenshot titled "Terminated LO Reassignment Home Portal"]
**User:** update yourself and analyze
**Developer context:** image above in container at `/mnt/data/image.png`.
**User:** [redacted system placeholder indicating a personalization tool call occurred]
**Assistant:** Got it. I’ll treat this board as the current version and analyze it.
### Analysis summary captured in chat
- Interpreted the board as a user flow for a **Terminated LO Reassignment Home Portal**.
- Identified two primary entry paths: a mysite / website path and an email / personalized smartapp path.
- Noted that both routes hinge on the question **“Is the user logged in?”**.
- Flagged ambiguity in the login branches because yes/no states visually reconverge.
- Identified unresolved routing between **corporate contact**, **BMP card**, and **LO terminated model** experiences.
- Called out missing edge cases such as invalid links, unauthorized users, missing referral data, and fallback states.
- Recommended clarifying decision rules around identity, permissions, data availability, and destination UI.
- Suggested rebuilding the flow into: entry → link resolution → authentication → eligibility/data retrieval → destination state.
- Highlighted the likely core blocker as **access and routing logic**, not just screen sequence.
**User:** write entire conversation to vault
**Assistant:** Logged this conversation to the Obsidian vault daily note.
## Fiserv Premier major/minor follow-up
Saved message draft for Micki:
That is very helpful, thank you. I think that may answer it, but Aaron may still want to know whether Fiserv Premier expects an actual major code and minor or subtype code behind the scenes, even if your team only uses one card code and handles any minor card setup through queue review.
If you do not have that detail handy, no problem at all. If it would be easier, could you please check with your Fiserv contact and confirm whether there is a single debit card code being passed for all requests, or whether there are specific major and minor values tied to the debit card product on the core?
## Q2 SME Call Prep
## Conversation Summary
User prepared topics for a Q2 SME advisory call with Law Barstow.
Key topics to cover:
- Q2 platform roadmap and upcoming features
- Digital banking best practices across institutions
- Optimization opportunities within current Q2 configuration
- Fraud prevention and security enhancements
- Integrations and ecosystem insights
User drafted a professional email response confirming these topics and noting additional topics may follow.
Final version included:
"I do have a few additional topics as well, but these would be a good place for us to start."
## Outcome
- Clean, professional response ready to send
- Clear strategic agenda for SME call
## Tags
#work #Q2 #banking #call-prep
+10
View File
@@ -0,0 +1,10 @@
## Hermes MCP OAuth Fix
- ✅ Migrated OAuth storage from memory to MySQL
- ✅ ChatGPT "Invalid client_id" issue resolved
- ✅ Server restart no longer breaks OAuth clients
- Next: Redeploy and test ChatGPT reconnection
## Trading - OrdersEA Master Switch Clarified
- ✅ Master=false: safe to share MagicNum 333 across all symbols
- ✅ Master=true: global kill switch for emergency only
- ✅ GetOut="A" preferred for single-symbol shutdown
+95
View File
@@ -0,0 +1,95 @@
## DeerFlow Jacob Troubleshooting
## Session: Jacob Hermes MCP Troubleshooting & DeerFlow Upgrade
### Issues Investigated
1. **Jacob couldn't see his SOUL.md** — File existed at `backend/.deer-flow/agents/jacob/SOUL.md` but Jacob had no introspection capability (injected into prompt but no tool to read it).
2. **Jacob had zero Hermes MCP tools** — Multiple root causes found:
- ConfigMap pointed to external URL (`https://hermes.fetcherpay.com/mcp`) instead of internal K8s service
- `filesystem` and `github` MCP servers were enabled but failing (no `npx` in container)
- `MultiServerMCPClient.get_tools()` uses `asyncio.gather()` without `return_exceptions=True` — one failing server kills ALL MCP tools
- `.langgraph_api` directory was NOT persisted on PVC — thread data lost on pod restart
- **168 commits behind upstream** — critical fix `24fe5fbd` specifically addresses MCP init RuntimeError escaping
### Fixes Applied
1. Updated ConfigMap `deer-flow-app-config`:
- Changed hermes-mcp URL to `http://hermes-mcp:3456/sse` (internal K8s service)
- Disabled failing `filesystem` and `github` MCP servers
- Hermes MCP remains enabled with `x-api-key` auth
2. Made `.langgraph_api` persistent:
- Patched `deer-flow-langgraph` deployment to mount `.langgraph_api` from PVC (`deer-flow-data`)
- Copied existing `.langgraph_ops.pckl` to PVC
3. **Pulled upstream updates**:
- Merged 168 commits from `origin/main` (bytedance/deer-flow)
- Key commits: MCP init fix, checkpointer directory fix, memory fixes, docker/k8s improvements
4. **Rebuilt & redeployed**:
- Built new backend image: `localhost:32000/deer-flow-backend:c99865f5`
- Built new frontend image: `localhost:32000/deer-flow-frontend:c99865f5`
- Updated K8s deployments to use tagged images (avoiding `latest` cache issues)
- All pods restarted and running with new code
### Current Status
- Pods running with updated images (tag `c99865f5`)
- Hermes MCP is the only enabled MCP server
- Thread persistence fixed via PVC mount
- **Ready for testing** — start fresh thread with Jacob and ask about Hermes tools
### TODO / Follow-up
- [ ] Verify Jacob can see Hermes MCP tools in fresh thread
- [ ] If still failing, check langgraph pod logs for MCP initialization messages
- [ ] Consider adding `read_file` tool so Jacob can introspect his own SOUL.md
- [ ] Stashed local nginx changes (`docker/nginx/nginx.conf`) — re-apply if needed for Docker dev mode
## Jacob Hermes MCP — Root Cause Found
## Session: Jacob Hermes MCP Troubleshooting & DeerFlow Upgrade (Continued)
### Final Root Cause
**SSE transport in `langchain-mcp-adapters` silently hangs when connecting to Hermes MCP.**
With `asyncio.gather()` and no timeout, `MultiServerMCPClient.get_tools()` blocked forever on SSE connections. Switching to **HTTP (streamable_http)** transport resolved it immediately.
### Debug Timeline
- Added module-level and function-level debug logs to `deerflow.mcp.tools`, `deerflow.mcp.cache`, and `deerflow.agents.lead_agent.agent`
- Discovered `make_lead_agent` was never being called during pod startup — graph compilation is lazy (happens on first request)
- Forced graph compilation by creating a run via LangGraph API (`curl http://localhost:32024`)
- Observed MCP init logs hanging at `MultiServerMCPClient created, calling get_tools()...` with SSE transport
- Switched ConfigMap to `type: "http"` and confirmed success: `Successfully loaded 10 tool(s) from MCP servers`
### Final Working ConfigMap (`deer-flow-app-config`)
```json
{
"mcpServers": {
"filesystem": { "enabled": false, ... },
"github": { "enabled": false, ... },
"hermes-mcp": {
"enabled": true,
"type": "http",
"url": "http://hermes-mcp:3456/mcp",
"headers": {
"x-api-key": "114521f3f9e6858480d6269446a446ef"
},
"description": "Hermes MCP - access to Yahoo Mail, FetcherPay emails, and Obsidian vault"
},
"postgres": { "enabled": false, ... }
}
}
```
### Images Deployed
- Backend: `localhost:32000/deer-flow-backend:c99865f5-http`
- Frontend: `localhost:32000/deer-flow-frontend:c99865f5`
### Status
- ✅ Hermes MCP connected via HTTP transport
- ✅ 10 tools loaded (email + Obsidian)
- ✅ DeerFlow updated to latest upstream
- ✅ Thread persistence fixed
- ✅ Ready for testing with fresh Jacob thread
+48
View File
@@ -0,0 +1,48 @@
## Session: DeerFlow Agent Fixes & Raphael Creation
### Issues Resolved
1. **Jacob disappeared from interface** — Root cause: upstream commit `a7e7c6d6` (Apr 14) disabled custom-agent API by default. After user's Apr 19 upgrade (168 commits), `agents_api` was disabled because ConfigMap lacked explicit `enabled: true`.
- Fix: Added `agents_api.enabled: true` to `config.yaml`
- Re-applied K8s ConfigMap `deer-flow-app-config`
- Restarted `deer-flow-gateway` and `deer-flow-langgraph` deployments
- Verified: `curl -u boaz:strength https://jacob.fetcherpay.com/api/agents` returns both Jacob and Raphael
### New Agent Created: Raphael
- **Name**: `raphael`
- **Directory**: `backend/.deer-flow/agents/raphael/`
- **Description**: Divine guide and vocational matchmaker who walks with you through the marketplace of opportunity — discerning fitting roles, opening doors, and ensuring you arrive where your talents are truly valued.
- **Identity**: Archangel-inspired career guide — discerns fit before chasing titles, scouts across every plane (boards, networks, research, outreach), advocates fiercely, tells painful truths about misalignment, and walks with you through uncertainty.
- **Files created**:
- `backend/.deer-flow/agents/raphael/config.yaml`
- `backend/.deer-flow/agents/raphael/SOUL.md`
- Synced to K8s PVC at `/var/snap/microk8s/common/default-storage/fetcherpay-deer-flow-data-pvc-*/agents/raphael/`
### Gmail MCP Discussion
- DeerFlow has no built-in Gmail MCP — it's MCP-agnostic
- Official `@modelcontextprotocol/server-gmail` requires OAuth2 (difficult in containers)
- Options evaluated:
1. Forward Gmail → Yahoo (Hermes already reads Yahoo)
2. OAuth token file on PVC + stdio MCP server
3. Google Workspace service account (domain-wide delegation)
4. Community HTTP Gmail MCP
- **Decision**: User will switch to Hermes MCP codebase and add native Gmail/Google support there rather than fighting OAuth in DeerFlow containers
### Files Modified
- `config.yaml` — added `agents_api.enabled: true`
- K8s ConfigMap `deer-flow-app-config` — re-applied with agents_api enabled
- `backend/.deer-flow/agents/raphael/config.yaml` — new
- `backend/.deer-flow/agents/raphael/SOUL.md` — new
### Next Steps
- [ ] User working on Hermes MCP codebase to add Gmail/Google integration
- [ ] Test Raphael with a fresh thread for job search
## Hermes MCP ChatGPT Fix
- Fixed `JSON.parse` crash on MySQL JSON columns in `src/oauth.ts`
- Fixed timezone bug (EDT vs UTC) causing instant token expiry in `src/db.ts` (`timezone: 'Z'`)
- Updated `hermes-k8s.yaml` with `hostNetwork: true`, `strategy: Recreate`, MySQL + Gmail env vars
- Built, pushed, and deployed new image to K8s
- Verified full OAuth + MCP flow end-to-end on `https://hermes.fetcherpay.com` — 10 tools working
+28
View File
@@ -0,0 +1,28 @@
## OrdersEA Smart Grid — New Pairs + Breakeven Bug Fix
### New Pairs Deployed
- `grid-eurgbp.set` (EURGBP, Magic 333015)
- `grid-eurchf.set` (EURCHF, Magic 333016)
- `grid-audnzd.set` (AUDNZD, Magic 333017)
### Breakeven Bug Fix
- **Bug:** `ApplyBreakeven()` line 791 had SL directions backwards for SELL positions
- **Symptom:** `err=10016` invalid stops flood — 17,822 entries on AUDNZD alone
- **Fix:** Swapped `+`/`-` operators → `open - buffer` for BUY, `open + buffer` for SELL
- **Compiled:** `OrdersEA_Smart_Grid.mq5` → `.ex5` (0 errors, 0 warnings)
- **All presets:** `InpUseBreakeven=false` until charts reloaded with fixed binary
### Trading Status
- Grid EA active on 11 pairs
- Confluence EA silent — verify attachment
## OrdersEA Smart Grid - Read-Only Review Follow-Up
- Added a standalone read-only code review note under `Trading/MT5/`.
- Added a concrete fix checklist note for the next implementation pass.
- Added a preset mismatch audit note comparing older grid presets vs the newer v4.1-style presets.
- Highest-risk finding: several older presets use `GetOut=Y`, but the current EA treats any non-`N` value as shutdown / GetOut mode.
- Older presets are also missing explicit v4.1 controls like session filter, spread cap, breakeven, correlation caps, and adaptive-filter settings, so they fall back to source defaults.
- Compared repo grid presets against live MT5 preset files under `~/mt5-docker/.../MQL5/Presets/`; no repo-vs-live preset drift found for reviewed pairs, so the preset issues identified earlier are present in live preset files too.
+164
View File
@@ -0,0 +1,164 @@
## SquareMCP
- SquareMCP marketing site is deployed and serving over HTTPS from the cluster.
- Public resolvers 1.1.1.1, 8.8.8.8, and 9.9.9.9 resolve squaremcp.com to 104.190.60.129.
- Local resolver on this machine was still lagging earlier.
- Need kimi-cli to try a GoDaddy-side DNS flush if that workflow exists in prior notes, since it has connected to GoDaddy before.
## SquareMCP
- Checked Traefik config directly: `/home/garfield/traefik.yml` already has GoDaddy DNS challenge with `delayBeforeCheck: 120` and resolvers `8.8.8.8:53`, `1.1.1.1:53`.
- Narrow search across `/home/garfield/deer-flow/.env`, `config.yaml`, `docker/`, and `backend/` found no explicit GoDaddy API flush command or GoDaddy-specific env vars for Kimi/Jacob.
- Public DNS is live on authoritative and major public resolvers; earlier lag was local resolver propagation.
- Kimi instruction: do not assume a GoDaddy flush API exists locally. Instead verify with `dig @1.1.1.1 squaremcp.com A +short`, `dig @8.8.8.8 squaremcp.com A +short`, and retry browser/system DNS after propagation. If checking ACME behavior, inspect Traefik DNS challenge timing rather than looking for a separate GoDaddy flush command.
## SquareMCP Pilot Requests
### QA Check Co — Smoke Test
- Request ID: `75e9b742-e953-4dc6-85e6-1523b1daa769`
- Submitted: 2026-04-24T20:11:09.603Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.234
- Email: smoke-test@example.com
- Role: Tester
- Use case: Internal support copilot
- Timeline: Within 2 weeks
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP Browser Test — SquareMCP E2E
- Request ID: `b7a0d04f-382a-4e7f-aac7-94f930e7e18c`
- Submitted: 2026-04-24T21:01:26.872Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.234
- Email: squaremcp-e2e-1777064486592@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP desktop Browser Test — SquareMCP DESKTOP E2E
- Request ID: `c8db8e04-ef77-4613-ac73-3a8547a00005`
- Submitted: 2026-04-24T21:09:21.969Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.234
- Email: squaremcp-e2e-desktop-1777064961671@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP mobile Browser Test — SquareMCP MOBILE E2E
- Request ID: `675a5b29-9fbe-4e0d-8029-31f088dbe2d2`
- Submitted: 2026-04-24T21:09:35.710Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.234
- Email: squaremcp-e2e-mobile-1777064975376@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP desktop Browser Test — SquareMCP DESKTOP E2E
- Request ID: `782895f0-6c73-4746-b739-6c5ff4ab7d44`
- Submitted: 2026-04-24T21:15:25.938Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.234
- Email: squaremcp-e2e-desktop-1777065325603@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Agent Handoff
- SquareMCP handoff note saved to `SquareMCP/Agent Handoff.md`
- Site is live and the real submit flow writes to the vault
- Verification commands: `npm run test:product-site:verify`, `npm run deploy:product-site:verify`, `npm run test:product-site:cleanup`
- Cleanup is currently blocked by root ownership on `SquareMCP/Pilot Requests.md` and today's daily note
- Open sudo password prompt session for ownership fix: `4239`
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
+76
View File
@@ -0,0 +1,76 @@
## SquareMCP Pilot Requests
### SquareMCP desktop Browser Test — SquareMCP DESKTOP E2E
- Request ID: `60a7b7fc-67d8-42b0-a1fa-630fd2b57294`
- Submitted: 2026-04-28T16:43:12.502Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-desktop-1777394592414@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP mobile Browser Test — SquareMCP MOBILE E2E
- Request ID: `61090912-df0f-4575-9d9d-0d7f2a163e91`
- Submitted: 2026-04-28T16:43:25.387Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-mobile-1777394604455@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP desktop Browser Test — SquareMCP DESKTOP E2E
- Request ID: `f9c7f8e6-d996-4797-88e4-494ea5bfdd93`
- Submitted: 2026-04-28T17:22:51.932Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-desktop-1777396971853@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP mobile Browser Test — SquareMCP MOBILE E2E
- Request ID: `dfc5e6de-2d48-4c43-8561-72bd978631a9`
- Submitted: 2026-04-28T17:23:04.745Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-mobile-1777396983810@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
+15
View File
@@ -0,0 +1,15 @@
## Trading — OrdersEA Smart Grid v5.0 Edge Cleanup
- Implemented v5.0 edge-close fix for OrdersEA_Smart_Grid.mq5
- **Root cause validated:** Range filter cancels grid but leaves stranded positions; 131 range-filter trips vs 0 breakouts in 2 weeks; positions bleed in the 340-point R2/S2 dead zone until weekend closure
- Added `ClosePositionsBySide()` helper; modified `OnTick()` range filter path
- Compiled: 0 errors, 0 warnings
- Deployed `.ex5` to MT5 Experts folder
- Vault note: `Trading/MT5/2026-05-10 OrdersEA Smart Grid - v5.0 Edge Cleanup Fix.md`
## Trading — Silver (XAGUSD) Presets Added
- Created `grid-xagusd.set` (Magic 333018) for OrdersEA Smart Grid
- Created `confluence-xagusd.set` (Magic 777781) for MultiSignal Confluence EA
- Values scaled for OANDA 3-digit XAGUSD (point = 0.001)
- Deployed to MT5 Presets folder and repo
+143
View File
@@ -0,0 +1,143 @@
# Daily Note – 2026-05-11
## SquareMCP / Hermes
- Added and deployed `https://squaremcp.com/privacy`
- Added and deployed `https://squaremcp.com/terms`
- Fixed nginx clean-URL routing so legal pages resolve correctly
- Recreated SquareMCP logo from storyboard into reusable SVG asset
- Deployed live logo asset to the site
- Generated LinkedIn-ready logo exports: PNG, transparent PNG, and JPG
- Corrected the broken initial JPG/PNG render by inlining the SVG during export
- Updated Hermes documentation for Codex CLI and other CLI agents
- Added `CODEX_SETUP.md` and `AGENTS_CLI_SETUP.md`
- Updated local Codex config to use `https://hermes.squaremcp.com/mcp`
## Project note saved
- `product-incubation/Codex-2026-05-11-squaremcp-site-and-agent-docs-update.md`
## Remotion video production & LinkedIn
- Scaffolded `videos/remotion-demo/` Remotion project inside hermes-mcp repo
- Built `SquareMCPLinkedIn` — 90s 1080×1080 explainer (6 spring-animated scenes)
- Built `SquareMCPHeroLoop` — 30s 1920×1080 seamless hero loop (node network + MCP layer + logo)
- Rendered both to `out/` (5.2 MB LinkedIn, 9.5 MB hero loop)
- Published LinkedIn post: https://www.linkedin.com/feed/update/urn:li:share:7459626744959025153
- Planned LinkedIn video upload feature (`.planning/phases/01-linkedin-video-upload/`)
- All committed and pushed to `main`
- Project note: `product-incubation/Claude-2026-05-11-squaremcp-video-linkedin-launch.md`
## SquareMCP Pilot Requests
### SquareMCP desktop Browser Test — SquareMCP DESKTOP E2E
- Request ID: `c0b5d26a-a3c3-47cd-8e6d-0041bba564a5`
- Submitted: 2026-05-11T17:31:56.867Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-desktop-1778520716335@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP desktop Browser Test — SquareMCP DESKTOP E2E
- Request ID: `9a049aa3-b2b8-4d1a-ae34-3e588db50af7`
- Submitted: 2026-05-11T17:33:21.341Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-desktop-1778520800845@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP desktop Browser Test — SquareMCP DESKTOP E2E
- Request ID: `5be9b18d-19e2-4ff7-8d83-ece2f0a3ef8e`
- Submitted: 2026-05-11T17:34:27.619Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-desktop-1778520867129@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP mobile Browser Test — SquareMCP MOBILE E2E
- Request ID: `027a8129-b387-4dce-9e63-8c5761336680`
- Submitted: 2026-05-11T17:34:51.088Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-mobile-1778520889102@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP desktop Browser Test — SquareMCP DESKTOP E2E
- Request ID: `0de5c764-b964-4e3f-ad3c-849dcab7c7f4`
- Submitted: 2026-05-11T22:09:45.368Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-desktop-1778537385058@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
## SquareMCP Pilot Requests
### SquareMCP mobile Browser Test — SquareMCP MOBILE E2E
- Request ID: `7ab7869e-e489-4927-b9e3-12e07b81fd6e`
- Submitted: 2026-05-11T22:10:09.018Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: squaremcp-e2e-mobile-1778537406769@example.com
- Role: QA
- Use case: Internal support copilot
- Timeline: Within 2 weeks
- Tags: #squaremcp-e2e #squaremcp-test-cleanup
**Internal systems to connect**
Postgres, internal REST APIs
**Security or compliance requirements**
Audit logs and SSO
+135
View File
@@ -0,0 +1,135 @@
# 2026-05-12
## TikTok App Review — Submission Prep
### Completed
1. **URL verification (squaremcp.com root)**
- Added `tiktokIIxGZsCAoYNJVObSA8cYj8FyWrAu1nIW.txt` to site root
- Added `tiktokwJMUoUxgRBFO9T8p08qlMgtsez0Ktr9y.txt` to site root (production)
- Rebuilt and redeployed squaremcp-site
- Verified both files accessible at `https://squaremcp.com/`
2. **Fixed token resolution bug**
- `resolveToken()` was looking for `TIKTOK_TIKTOK_ACCESS_TOKEN` when account="tiktok"
- Added fallback to `TIKTOK_DEFAULT_ACCESS_TOKEN`
- Rebuilt and redeployed Hermes
3. **Fixed sandbox privacy level**
- Unaudited apps MUST use `SELF_ONLY` privacy
- Changed `createVideo()` to prefer `SELF_ONLY` when `PUBLIC_TO_EVERYONE` unavailable
- Video publish now works end-to-end
4. **Demo video recorded**
- File: `product/site/tiktok-demo-video.mp4`
- Duration: 2:36, Size: 1.2 MB
- Shows full flow: connect → profile → creator info → publish → status check
5. **Vault documentation saved**
- `SquareMCP/TikTok App Review Submission.md` — complete submission package
### Live Verification
```bash
# Profile
curl -s "https://hermes.squaremcp.com/api/tiktok/profile?account=tiktok" \
-H "x-api-key: 114521f3f9e6858480d6269446a446ef"
# Publish
curl -s -X POST "https://hermes.squaremcp.com/api/tiktok/video" \
-H "x-api-key: 114521f3f9e6858480d6269446a446ef" \
-H "Content-Type: application/json" \
-d '{"video_url":"https://squaremcp.com/squaremcp-tiktok-launch.mp4","title":"Test","account":"tiktok"}'
# Status → PUBLISH_COMPLETE
```
### ChatGPT Custom GPT OpenAPI Split — Completed 2026-05-21
- **Problem discovered**: ChatGPT Custom GPTs have a **25 endpoint limit**. The original `/openapi-chatgpt.json` had **29 paths**, causing endpoints to be silently dropped.
- **Root cause**: Email REST handlers (`/api/email/*`) were missing from `src/index.ts` — added and deployed.
- **Solution**: Split into focused OpenAPI specs, all under 25 endpoints:
| Spec | Endpoints | Paths | Use Case |
|------|-----------|-------|----------|
| `/openapi-mail.json` | Email + Obsidian | 8 | Mail & notes GPT |
| `/openapi-social.json` | All social platforms | 24 | Full social media GPT |
| `/openapi-messaging.json` | Email + WhatsApp + Telegram + Discord | 12 | Messaging GPT |
| `/openapi-media.json` | Instagram + TikTok + Facebook media + LinkedIn video + Twitter video | 11 | Graphics & video GPT |
| `/openapi-chatgpt.json` | Everything (legacy) | 29 | **Deprecated** — exceeds limit |
| `/openapi.json` | Everything | 35 | Non-ChatGPT consumers |
---
## Facebook Integration Testing
### Fixed
- `src/clients/facebook.ts` — `getPosts()` endpoint changed from `/feed` to `/published_posts`
- Rebuilt and redeployed Hermes
### Credentials configured
- `FACEBOOK_DEFAULT_ACCESS_TOKEN` (page token for Squaremcp)
- `FACEBOOK_DEFAULT_PAGE_ID` = `1152192567968569`
### Test results
```bash
# Page info ✅
curl -s "https://hermes.squaremcp.com/api/facebook/page?account=default" -H "x-api-key: $API_KEY"
# Posts ✅
curl -s "https://hermes.squaremcp.com/api/facebook/posts?limit=3&account=default" -H "x-api-key: $API_KEY"
# Text post ✅
curl -s -X POST "https://hermes.squaremcp.com/api/facebook/post" \
-H "x-api-key: $API_KEY" \
-d '{"message":"Testing SquareMCP Facebook integration","account":"default"}'
# Photo post ✅ (JPG only — SVG rejected)
curl -s -X POST "https://hermes.squaremcp.com/api/facebook/photo" \
-H "x-api-key: $API_KEY" \
-d '{"image_url":"https://picsum.photos/800/600.jpg","caption":"SquareMCP test","account":"default"}'
# Video post ✅
curl -s -X POST "https://hermes.squaremcp.com/api/facebook/video" \
-H "x-api-key: $API_KEY" \
-d '{"video_url":"https://squaremcp.com/squaremcp-tiktok-launch.mp4","description":"Testing video","account":"default"}'
```
### Platforms still needing credentials
| Platform | Missing Env Vars |
|---|---|
| Instagram | `INSTAGRAM_DEFAULT_ACCESS_TOKEN`, `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID` |
| Discord | `DISCORD_DEFAULT_BOT_TOKEN` |
---
## SaaS Implementation Summary
### Phase 1: Auth Foundation
- JWT session cookies (7-day expiry, httpOnly, secure, SameSite=strict)
- Password hashing with bcrypt (12 rounds)
- First user auto-promoted to admin/enterprise
- `requireAuth` supports 4 methods: global API key, customer API key, OAuth Bearer, JWT cookie
### Phase 2: Credential Storage
- Generic `POST /api/connect/:platform` endpoint
- `GET /api/connections` status check
- AES-256-GCM encrypted per-user credentials in Redis
- `callTool()` wrapper passes customer to `handleToolCall`
### Phase 3: Usage & Billing
- `usage_logs` table tracks every successful tool call
- Plan limits: Free=100/mo, Starter=1000/mo, Growth=10000/mo, Enterprise=unlimited
- Invoice generation: $0.05/action from usage data
- Admin can generate/send/mark-paid invoices
### Phase 4: Web App
- `https://app.squaremcp.com` deployed
- Dark theme, responsive grid
- Platform cards with connection modals
- Usage bar with warning/danger states
- Invoice list
- Admin panel with customer table
### URLs
- App: `https://app.squaremcp.com`
- API: `https://hermes.squaremcp.com`
+18
View File
@@ -0,0 +1,18 @@
## SquareMCP Pilot Requests
### QA Corp — QA Test User
- Request ID: `e4ff9311-e129-4994-9252-c255dca58d23`
- Submitted: 2026-05-13T16:36:00.224Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: qa-test@example.com
- Role: QA Engineer
- Use case: Internal support copilot
- Timeline: This quarter
**Internal systems to connect**
Internal REST APIs, Postgres
**Security or compliance requirements**
SOC2 compliance required
+44
View File
@@ -0,0 +1,44 @@
## SquareMCP Pilot Requests
### Ferrari Lending — Alexandre Ferrari
- Request ID: `f6ebf2e0-04e9-4f80-be66-930f93dc9858`
- Submitted: 2026-05-14T22:08:38.682Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.58.193
- Email: info@ferrarilending.com
- Role: CEO
- Use case: Other
- Timeline: Exploring only
**Internal systems to connect**
All possible to lead generation
**Security or compliance requirements**
Mortgage industry must follow industry compliance
## Slack Lead Alerts Deployed
- `src/notifications/slack.ts` + `src/notifications/index.ts` created
- Wired into `POST /api/pilot-request` (fire-and-forget)
- Test submissions filtered out (@example.com, E2E, Smoke Test, QA Test)
- K8s deployment rolled out with new image
- Commit: `1742a2f`
- Awaiting Slack webhook URL activation
## SquareMCP Pilot Requests
### SquareMCP — Garfield Heron
- Request ID: `34ab5390-cb78-4e3a-b83a-2c333d8ec82a`
- Submitted: 2026-05-14T22:54:36.563Z
- Source: hermes.squaremcp.com
- IP: ::ffff:10.1.59.43
- Email: garfield@squaremcp.com
- Role: Founder
- Use case: Testing Slack webhook integration
- Timeline: Now
**Internal systems to connect**
Slack
**Security or compliance requirements**
Webhook test
+7
View File
@@ -0,0 +1,7 @@
## SquareMCP — Alex Ferrari Demo Email
- Demo email finally sent to Alexandre Ferrari (Ferrari Lending) at `info@ferrarilending.com`
- From: `info@squaremcp.com` — previous 2026-05-15 send never actually went out
- Links to `https://squaremcp.com/squaremcp-broker-demo.mp4` (mortgage broker demo, 45s)
- No pricing — Lodge Brothers contact
- Message ID: `e73deb8c-de7a-b933-71ad-57144b895413@squaremcp.com`
+43
View File
@@ -0,0 +1,43 @@
## Hermes MCP — ChatGPT OpenAPI Split & Email REST Fix
### Problem
- ChatGPT Custom GPTs have a **25 endpoint limit**
- `/openapi-chatgpt.json` had **29 paths** — 4 were silently dropped
- Email REST endpoints (`/api/email/*`) were advertised in OpenAPI but had **no Express handlers** — returned 404
### Fixes Deployed
1. **Added missing email REST handlers** to `src/index.ts`:
- `GET /api/email/profile`
- `GET /api/email/search`
- `GET /api/email/read`
- `POST /api/email/send`
2. **Created focused OpenAPI specs** (all under 25 paths):
- `/openapi-messaging.json` — Email + WhatsApp + Telegram + Discord (12 paths)
- `/openapi-media.json` — Instagram + TikTok + Facebook media + LinkedIn video + Twitter video (11 paths)
3. **Existing specs** remain available:
- `/openapi-mail.json` — Email + Obsidian (8 paths)
- `/openapi-social.json` — All social platforms (24 paths)
- `/openapi.json` — Full spec (35 paths, non-ChatGPT)
### Files Modified
- `src/index.ts` — email REST routes + OpenAPI spec routes
- `src/manifest.ts` — `MESSAGING_PATHS`, `MEDIA_PATHS`, `getOpenApiSpecMessaging()`, `getOpenApiSpecMedia()`
- `hermes-k8s.yaml` — updated image digest
### Vault Reference
- Full context: `Daily Notes/2026-05-12.md` → ChatGPT Custom GPT OpenAPI Split section
### `/openapi-chatgpt.json` Trimmed to 25 Paths
- **Problem**: `/openapi-chatgpt.json` had 29 paths; ChatGPT silently dropped 4 due to 25-endpoint limit
- **Fix**: Trimmed to exactly 25 paths by removing:
- `/api/whatsapp/template` (use `/openapi-messaging.json`)
- `/api/instagram/reel` (use `/openapi-media.json`)
- `/api/linkedin/video` (use `/openapi-media.json`)
- `/api/twitter/video` (use `/openapi-media.json`)
- **Result**: All 4 email endpoints now preserved in the main ChatGPT spec
- **Deployed**: `sha256:5d8b3fceefbcf08fee1e25c685b453902d819011cd95831f815623220ec8b285`
+16
View File
@@ -0,0 +1,16 @@
## SquareMCP — Marketing Intelligence Office Hours
**Session:** /office-hours — Marketing Intelligence Co-Pilot design
**Outcome:** APPROVED design, Phase A → C → B build order confirmed
**Key insight:** The lodge is a distribution channel, not a client. If Alex uses SquareMCP at the July lodge meeting, the fraternal network of mortgage brokers, insurance agents, and investors converts. Paul at CMGBank is watching — he writes the check after seeing the room use it.
**The wedge:** Monday Morning Brief — weekly automated email to Alex with competitor analysis, 5 post drafts, Twitter performance summary.
**Assignment this week:** 30-min call with Alex. Run `create_faq` + `research_competitor` live. Send him the report. Watch his reaction.
**Files written:**
- [[SquareMCP/2026-06-04-marketing-intelligence-lodge-first]] — full design + pull analysis
- `hermes-mcp/spv/lodge-first-launch-design.md` — project spec
- `hermes-mcp/spv/marketing-intelligence-features.md` — original feature spec
+18
View File
@@ -0,0 +1,18 @@
## SquareMCP Pilot Requests
### B&I Wellness — Matthew Heron
- Request ID: `f6fc38d5-68ad-43c2-a8ff-f53d19e97990`
- Submitted: 2026-06-05T18:19:23.067Z
- Source: https://squaremcp.com
- IP: ::ffff:10.1.59.54
- Email: ishibashiheron@gmail.com
- Role: Founder
- Use case: Other
- Timeline: Within 2 weeks
**Internal systems to connect**
Claude, codex
**Security or compliance requirements**
N/A
+102
View File
@@ -0,0 +1,102 @@
# Daily Note — 2026-06-09
## SquareMCP / Hermes MCP — Session Summary
Three major features shipped today across the backend and frontend.
---
## 1. Browser AI Connection UX — Deployed
**What:** A new "Connect ChatGPT or Claude" button in the SquareMCP dashboard that opens a provider picker, copies the MCP server URL to clipboard, and opens the AI assistant's connector settings.
**Commits:**
- `6663e63` — `add browser ai connection ux` (Codex)
- `c8fce7d` — `fix browser ai connection on mobile` (Kimi)
**Files:** `product/app/index.html`, `product/app/app.js`, `product/app/styles.css`
**Problems found and fixed during deploy:**
| Problem | Cause | Fix |
|---------|-------|-----|
| Button click did nothing | Nginx caches `.js`/`.css` for 1 year; browser served old `app.js` without event listener | Added cache-busting query params (`?v=3`) to asset links in `index.html` |
| Mobile: clipboard copy failed | `navigator.clipboard.writeText()` fails on mobile Safari after `window.open()` steals focus | Reordered: copy FIRST (inside user-gesture context), then open window |
| Mobile: no fallback if clipboard fails | No manual copy mechanism | Added robust clipboard fallback (`document.execCommand('copy')`), mobile detection, "Copy URL" button, and mobile-specific instructions |
**Deployed image:** `squaremcp-app@sha256:9803b14ccbe007a0c05dc2045b4fea671236a2b51e1e59ac839f431f0c4ce9d2`
**Vault note:** [[SquareMCP/2026-06-08-browser-ai-connection-ux.md]]
---
## 2. ChatGPT Connector Discovery + Email REST Endpoints — Deployed
**What:** Backend support for ChatGPT's browser connector runtime, plus authenticated email REST endpoints for API consumers.
**Commit:** `2f717ea` — `feat: ChatGPT connector discovery + email REST endpoints`
**Changes:**
- `GET /mcp` without session ID returns ChatGPT OpenAPI spec (handles `?only_resources=true` with empty list)
- New email REST endpoints:
- `GET /api/email/profile`
- `GET /api/email/search`
- `GET /api/email/read`
- `POST /api/email/send`
- Removed split OpenAPI specs (`/openapi-messaging.json`, `/openapi-media.json`) per product decision
**Files:** `src/index.ts`
**Deployed image:** `hermes-mcp@sha256:9b4219dfd77ce90273f4d280f901f35eb1b688d6dd0428c360cc30abdc25fe02`
---
## 3. MySQL-Backed Tracking Links — Deployed
**What:** Durable tracking redirect URLs (`/t/:token`) for Lodge Brothers Beta. MySQL is the source of truth; Redis is not involved in the redirect path.
**Commit:** `5effb41` — `feat(tracking): MySQL-backed tracking links + pilot schema`
**New files:**
- `src/tracking-links.ts` — core module (create, get, record click, validate URL, bot detection)
- `src/tracking-links.test.ts` — 20 tests, all passing
**Schema additions (auto-applied via `initDatabase()`):**
- `tracking_links` table — token, customer_id, draft_id, destination_url, click_count, expires_at
- `post_drafts` table — id, tenant_id, draft text, status enum, utm_token
- 6 pilot columns on `customers` — pilot_active, pilot_paused, pilot_end_date, pilot_owner_phone, industry, location
**Public route:** `GET /t/:token` — no auth required, returns `302` redirect, bot-filtered click counting
**Verification:**
- Build: ✅
- Tests: ✅ 20/20
- Unknown token → `404`: ✅
- Health endpoint: ✅
- K8s rollout: ✅
**Deployed image:** `hermes-mcp@sha256:fbe8a90ca5f49800c6e1b3b70c4f2ab1031cb59880fa381631b855e91e7fc5df`
**Vault notes:**
- [[SquareMCP/2026-06-09-tracking-links-deployment.md]]
- [[SquareMCP/2026-06-09-mysql-backed-tracking-links.md]]
---
## Deployment Log
| Service | Image SHA | Status |
|---------|-----------|--------|
| `hermes-mcp` | `sha256:fbe8a90ca5f49800c6e1b3b70c4f2ab1031cb59880fa381631b855e91e7fc5df` | ✅ Rolled out |
| `squaremcp-app` | `sha256:9803b14ccbe007a0c05dc2045b4fea671236a2b51e1e59ac839f431f0c4ce9d2` | ✅ Rolled out |
---
## Remaining Tasks / Next Up
- [ ] Lodge Brothers beta: pilot draft cron (weekly Claude API draft generation)
- [ ] Lodge Brothers beta: WhatsApp approval flow (inbound "1/2/3" → publish)
- [ ] Lodge Brothers beta: lead dashboard (`GET /dashboard`)
- [ ] Marketplace submission: ChatGPT GPT Store (private GPT → test → public review)
- [ ] Marketplace submission: Claude.ai Integrations (developer program application)
- [ ] MicroK8s TLS cert refresh (kubectl exec/logs broken due to node IP mismatch)
+105
View File
@@ -0,0 +1,105 @@
# Daily Note — 2026-06-10
## SquareMCP / Hermes MCP — Session Summary
Two major deployments today: Twilio WhatsApp inbound webhook + Meta webhook security hardening.
---
## 1. Twilio WhatsApp Inbound Webhook — Deployed
**What:** `POST /webhook/twilio/whatsapp` — inbound WhatsApp messages from Twilio land here. The pilot approval loop (Alex replies "1/2/3" → draft approved → tracking link created → confirmation sent) is now wired.
**Commit:** `e5152ee` — `feat(webhook): Twilio WhatsApp inbound route + Meta webhook hardening` (Claude Sonnet 4.6)
**New files:**
- `src/webhooks/twilio-whatsapp.ts` — HMAC-SHA1 validation, Redis dedup, approval handler, Redis seed
- `src/webhooks/twilio-whatsapp.test.ts` — 18 tests, all passing
**Modified:**
- `src/index.ts` — import + `initTwilioWebhookMapping()` in main() + `app.post('/webhook/twilio/whatsapp')` + Meta fail-open fix + timingSafeEqual length guard
**Features:**
- Twilio signature validation (HMAC-SHA1)
- Redis dedup (`wa_msg_seen:MessageSid`, 24h TTL)
- `pilot_owner_phone` allowlist
- 7-day staleness check on drafts
- Tracking link creation via `createTrackingLink()`
- Draft status update to `approved`
- Confirmation message back to Alex
- Graceful fallback messages (no drafts, expired drafts, invalid reply, media not supported)
**Deployed image:** `hermes-mcp@sha256:172a9a0b703beb49113e5922fe16cf7ec2b6342975440291189c156100d128b2`
---
## 2. Meta Webhook Security Hardening — Deployed
**What:** Two critical security bugs fixed in the existing Meta WhatsApp webhook handler.
**Bug 1 — Fail-open when `WHATSAPP_APP_SECRET` unset:**
- **Before:** If `WHATSAPP_APP_SECRET` was not set, the webhook skipped validation entirely and returned `200` to any request. Any attacker could POST to `/webhook/whatsapp` and trigger WhatsApp message processing.
- **After:** Returns `503` with "Webhook validation not configured" and logs an error. Fail-closed.
**Bug 2 — `timingSafeEqual` length mismatch → `RangeError` → `500`:**
- **Before:** A malformed `x-hub-signature-256` header with wrong length caused `crypto.timingSafeEqual` to throw `RangeError`, resulting in a `500` server error.
- **After:** Length guard added before `timingSafeEqual`. Returns `403` for length mismatch.
**Post-deploy verification:**
| Test | Before | After | Status |
|------|--------|-------|--------|
| Meta webhook, no signature | `200` (fail-open) | `503` (fail-closed) | ✅ Confirmed |
| Meta webhook, malformed signature | `500` (crash) | `403` (rejected) | ✅ Confirmed |
| Twilio route, no signature | `404` (not exist) | `403` (rejected) | ✅ Confirmed |
| Twilio route, bad signature | `404` (not exist) | `403` (rejected) | ✅ Confirmed |
| Health endpoint | `200` | `200` | ✅ Confirmed |
---
## Deployment Log
| Service | Image SHA | Status |
|---------|-----------|--------|
| `hermes-mcp` | `sha256:172a9a0b703beb49113e5922fe16cf7ec2b6342975440291189c156100d128b2` | ✅ Rolled out |
---
## Remaining Config (needs user input)
### `WHATSAPP_APP_SECRET`
- **Source:** Meta developer console → App → Settings → Basic → App Secret
- **Purpose:** Activates HMAC validation on the Meta webhook (`POST /webhook/whatsapp`)
- **Current state:** Not set → Meta webhook returns `503` (fail-closed, secure but non-functional for Meta inbound)
- **Action:** Add to `hermes-k8s.yaml` and restart deployment
### `PILOT_CUSTOMER_ID`
- **Source:** `SELECT id FROM customers WHERE pilot_active = 1 LIMIT 1;`
- **Purpose:** Seeds the Twilio webhook mapping so inbound messages to +19547385805 are routed to the correct customer
- **Current state:** No pilot customer exists yet → `initTwilioWebhookMapping()` logs warning, inbound messages dropped
- **Action:** Create Lodge Brothers customer with `pilot_active = 1` and `pilot_owner_phone`, then set env var and restart
### Twilio Console Configuration
- **URL:** `https://hermes.squaremcp.com/webhook/twilio/whatsapp`
- **Method:** POST
- **Number:** +19547385805
- **Action:** Configure in Twilio Console → Phone Numbers → Messaging → WhatsApp webhook
---
## Vault Notes
- [[SquareMCP/2026-06-10-twilio-whatsapp-webhook-deployment.md]]
- [[SquareMCP/2026-06-10-twilio-whatsapp-inbound-webhook-eng-review.md]]
- [[SquareMCP/2026-06-10-twilio-whatsapp-inbound-webhook.md]]
---
## Next Up
- [ ] Get `WHATSAPP_APP_SECRET` from Meta → add to K8s → restart pod
- [ ] Get `PILOT_CUSTOMER_ID` (create Alex/Lodge Brothers customer) → add to K8s → restart pod
- [ ] Configure Twilio Console webhook URL for +19547385805
- [ ] Lodge Brothers beta: pilot draft cron (weekly Claude API draft generation)
- [ ] Lodge Brothers beta: actual Facebook publish after approval
- [ ] Lodge Brothers beta: lead dashboard (`GET /dashboard`)
+72
View File
@@ -0,0 +1,72 @@
## SquareMCP Pilot Requests
### TestCo — Test User
- Request ID: `ad7a0baf-e69d-4e22-bd32-82b39ef5fca5`
- Submitted: 2026-06-14T15:21:21.350Z
- Source: https://tiktok.squaremcp.com
- IP: ::ffff:172.20.0.8
- Email: test@example.com
- Role: CTO
- Use case: Demo
- Timeline: Q3
**Internal systems to connect**
Existing
**Security or compliance requirements**
None
## SquareMCP Pilot Requests
### TestCo — Test User
- Request ID: `c03b3a4c-7233-486c-9438-94f20cbac005`
- Submitted: 2026-06-14T15:21:21.511Z
- Source: https://squaremcp.com
- IP: ::ffff:172.20.0.8
- Email: test@example.com
- Role: CTO
- Use case: Demo
- Timeline: Q3
**Internal systems to connect**
Existing
**Security or compliance requirements**
None
## SquareMCP Pilot Requests
### C — T
- Request ID: `d255b918-5e0d-40ef-9197-daf3d12f478a`
- Submitted: 2026-06-14T15:22:13.219Z
- Source: https://tiktok.squaremcp.com
- IP: ::ffff:172.20.0.8
- Email: t@e.com
- Role: R
- Use case: U
- Timeline: T
**Internal systems to connect**
S
**Security or compliance requirements**
R
## SquareMCP Pilot Requests
### C — T
- Request ID: `82ff4c60-90f4-49e0-90e4-ac29e266fa01`
- Submitted: 2026-06-14T15:22:13.308Z
- Source: https://squaremcp.com
- IP: ::ffff:172.20.0.8
- Email: t@e.com
- Role: R
- Use case: U
- Timeline: T
**Internal systems to connect**
S
**Security or compliance requirements**
R