Skip to content
Read the original: Mastra BlogOfficial
Published
Pick60/100

Mastra adds background MCP tasks for long-running tool calls

AIMastra 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.

AIWhy 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.

Read the original mastra.ai
Source details

Mastra Blog · mastra.aiPublished · added here

Original title: Introducing MCP Tasks in Mastra