跳到正文
Mastra Blog·· 2 天前AI 评分48

Mastra 推出 MCP Tasks:让 Agent 在长时间运行的 MCP 工具调用中保持响应

Nov 11, 2026Introducing MCP Tasks in MastraUnblock your agents during long-running MCP tool calls.Paul Scanlon

AI 导读

Mastra 为 MCPServer 和 MCPClient 引入 MCP Tasks,支持在后台运行长时间工具调用,客户端通过 task ID 轮询 working、input_required、completed、failed、cancelled 等状态,任务完成后通知 Agent,避免同步调用阻塞 Agent 回应用户。

来源:Mastra Blog · mastra.ai