Mastra MCP 2.7 Adds Background Tasks
Mastra’s @mastra/mcp 2.7.0 adds experimental MCP Tasks support, allowing long-running tools to return task handles and run in the background while clients poll for completion. The update keeps agents responsive and reduces failures from HTTP timeouts.
MCP Tasks move slow tool execution closer to production-grade infrastructure, but teams should treat the API as experimental while the ecosystem catches up.
- –Tools support `always`, `auto`, or `off` task execution modes
- –Tasks can pause for human input, resume, fail, complete, or be cancelled
- –Persistent storage lets tasks survive restarts and recover across instances
- –Background execution is especially useful for reports, deployments, batch jobs, and long-running workflows
- –Client and server support must be coordinated because task behavior is opt-in
DISCOVERED
28m ago
2026-11-11
PUBLISHED
1h ago
2026-11-11
RELEVANCE
AUTHOR
mastra