Mastra 发布 MCP 任务与可观测性更新
原标题:November 2, 2026
AI 摘要
Mastra 发布多项更新:@mastra/mcp 新增实验性的、由 Mastra 存储支持的 MCP 任务,使长时间运行的工具、Agent 和工作流可以立即返回任务,并支持跨实例轮询、应答、取消,以及重启后恢复;后台任务支持非 Agent 所有者,并新增保留期、并发覆盖和排队恢复;可观测性新增执行结果、停止原因、模型/提供商和首 token 延迟(TTFT)记录;核心包新增仪表盘与保存视图的 schema,playground-ui 新增 DashboardRenderer 和 Saved Views;频道 Agent 可将需认证的二进制附件下载到工作区。此外还包含多项破坏性变更,如移除部分 playground-ui 组件和 core 子路径。
正文节选
## Highlights ### MCP Tasks (Storage-backed, restart-safe long-running execution) `@mastra/mcp` adds experimental Mastra-storage-backed MCP tasks so long-running tools/agents/workflows can return immediately with a task, be polled/answered/cancelled across instances, and survive restarts with shared storage and unified tracing. ### Background Tasks for Non-Agent Owners (Retention, Concurrency, Queued Resume) Mastra background tasks now support non-agent owners (e.g., MCP servers) with pe