Mastra introduces the MCP Tasks feature.
The story so far
Mastra has introduced the MCP Tasks feature to run long tasks in the background. This feature allows users to run long tool calls in the background using tasks through MCPServer and MCPClient, with the agent polling the server until the task is completed and the results are obtained; the agent is blocked during the tool call. The task feature enables the agent to respond to user requests while performing slow or expensive computations, such as the agent running a 30-day warehouse report in the background while continuously answering questions.
AI-written from the reports · Updated 7 days ago
Coverage timeline
Follow the coverage to see every side of the story.
- Mastra BlogIntroducing MCP Tasks in Mastra
Mastra allows users to use tasks to run long tool calls in the background via MCPServer and MCPClient. The agent can poll the server until the task is completed and obtain the results; the agent is blocked during the tool call. The task feature enables the agent to respond to user requests while performing slow or expensive computations, for example, the agent runs a 30-day warehouse report in the background while continuously answering questions.
Heat over time
- Now
- 3
- Peak
- 512 Nov, 06:00
- 24h change
- -49%
Hover or tap the chart to see each hour; use the arrow keys on a keyboard.