Running a coding agent
The mailpiece CLI reaches your whole newsletter from the terminal, so any agent that runs shell commands can work with it. mailpiece mcp serves it as MCP tools, and only reads until you pass --writes. mailpiece skill install gives your agent the skill for setting Mailpiece up and using it.
Each agent has its setup: Claude Code, Codex, OpenCode, Cursor, Gemini CLI, Claude Desktop, GitHub Copilot CLI, VS Code, Cline and Zed. The rest is in Agents and the CLI.
git clone https://github.com/mailpiece/mailpiece-cli.git
cd mailpiece-cli && make build
mailpiece auth login TOKEN --account 834206594 --api-url https://app.example.com
mailpiece skill install
claude mcp add mailpiece -- mailpiece mcp --writes