Testing Cyber Monday Subject Lines in Zed
Zed is fast, keyboard-driven, and increasingly capable as an AI coding environment — which makes it a natural place to drive Cyber Monday subject line tests through marginal's email MCP server. This guide walks through connecting Zed to marginal and running a full subject line test without leaving your editor.
Why run Cyber Monday tests from Zed
Cyber Monday is a short, high-stakes window. You don't have days to wait on a marketing tool round-trip — you want to draft, launch, and measure in the same flow you already work in. With marginal exposed as an MCP server, Zed's AI agent can call email tools directly, so your subject line experiments live alongside the code and copy you're already editing.
marginal is hosted, so there's nothing to deploy. Point Zed at the endpoint, add your API key, and the agent gains access to the full test lifecycle: generate variants, launch a send, and pull results.
- Stay in one window — no context switching to a separate dashboard
- AI agent email marketing that triggers from natural-language prompts
- Fast iteration suits the compressed Cyber Monday timeline
- Free tier covers 100 experiments/month for testing the workflow
Connecting Zed to the marginal MCP server
Zed supports MCP servers, so adding marginal means registering the endpoint and your Bearer API key. Use the hosted endpoint at https://marginal.sh/mcp and authenticate with a key in the marg_live_... format.
Once configured, Zed's assistant can discover marginal's four tools — generate_variants, launch_test, get_results, and recommend_next — and orchestrate a subject line A/B test on your behalf. Full setup details live in the docs at https://marginal.sh/docs/.
- Registry: sh.marginal/mcp
- Endpoint: https://marginal.sh/mcp
- Auth: Bearer API key (marg_live_...)
- Verify the connection by asking Zed to list available marginal tools
Running a Cyber Monday subject line A/B test
Start by asking Zed's agent to brainstorm angles for your Cyber Monday promotion — urgency, percentage-off framing, free shipping, or last-chance messaging. The generate_variants tool turns that intent into a set of distinct subject line candidates you can review inline.
When you're happy with the shortlist, have the agent call launch_test to send the variants to your audience split. marginal handles the managed send and tracks opens and clicks, then surfaces within-test lift so you can see which Cyber Monday subject line is pulling ahead.
- generate_variants — produce candidate Cyber Monday subject lines
- launch_test — fire the managed send and subject line test
- get_results — read open/click rates and lift metrics
- recommend_next — let the agent suggest a follow-up variant
Reading results and iterating fast
After the send goes out, prompt Zed to fetch results. marginal returns open and click tracking plus within-test lift, so you don't have to compute statistical comparisons by hand. The agent can read those numbers and tell you which subject line variant won the split.
Because Cyber Monday traffic moves quickly, use recommend_next to spin a sharper variant for a later send wave — applying what the winning subject line taught you about tone and offer framing, all from inside Zed.
- Compare variants using within-test lift rather than raw opens alone
- Use recommend_next to feed winners into a second send
- Keep the whole subject line A/B test loop inside your editor
Get started with marginal
marginal is a hosted email marketing MCP server at marginal.sh. Sign up free, create an API key, and connect https://marginal.sh/mcp from Cursor, Codex, or Claude Desktop.
- 100 experiments/month on the free tier
- Four MCP tools: generate_variants, launch_test, get_results, recommend_next
- Listed in the MCP Registry as sh.marginal/mcp