Architecture notes: multi-tenant encrypted MCP memory on Cloudflare Workers + D1 + Vectorize
ELYRAON · reddit · 2026-12-05
The author shares a production architecture for persistent MCP memory with strict tenant isolation on Cloudflare's edge stack: Workers handle MCP tool calls with per-tenant auth middleware; D1 stores manifests, tenant keys and encryption metadata so unauthorized queries fail before touching embeddings; Vectorize is partitioned strictly by tenant namespace with deterministic gate checks on every read/write path. The key trade-off: keeping cold-start latency low while running full tenant isolation and payload encryption means a tiny Worker bundle and no heavy runtime crypto wrappers. He asks whether others isolate at the index level or spin up separate Workers per workspace.
More from coding & agent
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05
- xAI launches Grok Bot: autonomous AI teammates that live in Slack and Teams — Baconbrix · 2026-12-05
- Dev tries Laravel Go days after launch, deploys web apps to Google Cloud — rseroter · 2026-12-05
- 24 keywords for building better agentic systems, from context engineering to idempotency — AdiPolak · 2026-12-05
- How to sell AI automations for $25K: pitch the week a company's budget unlocks — aryanXmahajan · 2026-12-05
- Full prompt released: build a self-rehearsing clockwork puppet theatre with MiniMax M4 — CtrlAltDwayne · 2026-12-05