Mastra Blog·· 1 天前AI 评分58
Mastra 推出内置 MCP 服务器,在 /api/mcp 暴露 agents、workflows 和 tools
Introducing Mastra's Built-in MCP Server
AI 导读
Mastra 发布了一个内置 MCP 服务器,安装 @mastra/mcp 包并配置好认证提供方后,即可在 /api/mcp 暴露其 agents、workflows 和 tools。该服务器自带 call_agent、start_workflow 和 get_trace 工具,每次 MCP 调用都会走与标准 HTTP 请求相同的服务器路由和 RBAC/FGA 校验,用户可通过 toolsets、include 和 exclude 限制暴露范围。它要求 @mastra/core@1.83.0 或更高版本,Mastra 文档中说明了如何用 claude mcp add 和 bearer token 将其连接到 Claude Code。
来源:Mastra Blog · mastra.ai