# Mastra adds background MCP tasks for long-running tool calls

> Original title: Introducing MCP Tasks in Mastra

- Source: Mastra Blog
- Published: 2026-11-11T05:00:00.000Z
- Bad Influence: https://badinfluence.news/items/cn48c3298dmtouxl42aiiror4
- Original: https://mastra.ai/blog/introducing-mcp-tasks

## Summary

Mastra introduces tasks for its MCPServer and MCPClient, letting long-running tool calls run in the background while the agent keeps responding. The server returns a task ID at once, and the client polls until the task reaches a completed, failed, or cancelled state. The feature requires @mastra/mcp 2.7.0 or later and @mastra/core 1.81.0 or later, and the API is still experimental and may change between releases.

## Why it matters

The post explains how MCP tasks let long tool calls run in the background without blocking the agent, which matters for anyone building slow agent workflows.
