Mastra 发布 MCP v2 重写、新向量存储与 trace 查询增强
原标题:September 22, 2026
AI 摘要
Mastra 发布多项更新,核心是 @mastra/mcp@2.0.0 基于 MCP 2026-07-28 修订版重写,移除 initialize 握手,改用 suspend/resume 机制处理需要输入的工具体。新增 Azure AI Search 和 Weaviate 两个向量存储后端,并为可观测性 trace 查询加入分页、字段发现和增量轮询。持久化 agent 默认不再写入 running 检查点,Memory 新增基于 token 预算的历史裁剪。
正文节选
## Highlights ### MCP v2 (2026-07-28) server architecture in `@mastra/mcp@2.0.0` `@mastra/mcp` is now rebuilt on the MCP 2026-07-28 revision: no initialize handshake/session headers, and tools that need input use first-class suspend/resume (`context.suspend()` + `context.resumeData`) with signed, self-contained continuation state (`requestState`). Server routes now return explicit `{ status: 'suspended', suspendPayload, resumeSchema }` vs `{ status: 'completed', output }`. ### New vector