How I built an agentic writing pipeline on Mastra: researcher, writer, editor, human approval, and the token-limiter bug that made revisions invent details.
I followed the Mastra tutorial to build and publish a simple MCP server, then connected it to a self-built agent and to Claude. Here is what the protocol actually does under the hood and what surprised me.