Skip to content
James Ross
SaaS · Escale OnlineLive, pre-launch

Mailprompt.ai

AI Email Marketing for Online Stores

AI-assisted email marketing for online stores: describe a flow in chat, a human approves, and Amazon SES sends—billed by emails sent rather than contacts.

stack: TypeScript · pnpm Monorepo · Amazon SES · MCP (36 tools) · OAuth 2.1 + PKCE · RFC 9728 · Dry-Run Guardrails · Shopify App

01 / Problem

The problem

Traditional ecommerce email platforms charge by contact count and lock automation behind rigid builders, while naive AI integrations risk sending unapproved campaigns or leaking static API keys.

Both the in-app chat assistant and external MCP hosts need identical tool behavior, scoped authorization, and mandatory human sign-off before any message leaves Amazon SES.

02 / Architecture

The build

  • 24-package TypeScript monorepo separating API, worker, billing, sending, rendering, templates, DNS, webhooks, integrations, OAuth, MCP, and SDK.
  • Single 36-tool registry powering both the in-app chat interface and a remote MCP server, with credit-spending tools defaulting to dry-run and requiring explicit confirmation.
  • In-house OAuth 2.1 server implementing PKCE, dynamic client registration, 5-minute codes, 1-hour access tokens, 30-day refresh tokens with refresh-family revocation on replay, and RFC 9728 metadata.
  • Amazon SES delivery billed by emails sent rather than contacts, a free store grader, and a Shopify app with theme and web-pixel extensions (in development).

03 / Diagram

System schematic

01 / CLIENTSIn-App Chat &Remote MCPOAuth 2.1 + PKCE02 / SHARED SURFACE36-Tool Registry24-package TS monorepoRFC 9728 metadataDry-run default on spend03 / GUARDRAILHuman Approval& ConfirmationPer-send billing04 / SENDAmazonSESApproved dispatch
Mailprompt.ai authorization and dry-run approval boundary between chat / OAuth 2.1 MCP clients, the 36-tool registry, and Amazon SES delivery.

04 / Scope

Status & scale

MCP tool registry

36 tools

Monorepo

24 packages

Core build sprint

4 days (Nov 11–14, 2026)

Shopify app

In development

05 / Stack

Components

  • TypeScript
  • pnpm Monorepo
  • Amazon SES
  • MCP (36 tools)
  • OAuth 2.1 + PKCE
  • RFC 9728
  • Dry-Run Guardrails
  • Shopify App

06 / Writing