Mastra推出内置MCP服务器
Mastra宣布推出内置MCP服务器。安装@mastra/mcp并配置认证后,智能体、工作流和工具可通过/api/mcp端点访问;服务器提供call_agent、start_workflow和get_trace工具,并支持选择公开范围及现有的RBAC和FGA检查。Mastra还介绍了通过HTTP将服务器连接到Claude Code的方法。
此次发布让MCP客户端可通过统一接口调用Mastra的智能体和工作流,并沿用已配置的认证与访问控制,但主要功能信息来自厂商自述。
You can now expose your agents, workflows, and tools to MCP using the new built-in MCP server. Install @mastra/mcp, configure auth, and your whole Mastra server becomes available at /api/mcp.
The MCP server comes equipped with tools to call_agent, start_workflow, and get_trace. Configured coding agents, or connected MCP clients, can then handle tasks you'd normally do yourself using the Studio UI.
Your browser does not support the video tag.
This release builds on our existing MCP 2.0 support, and joins MCP tasks and MCP events as the latest addition to Mastra's MCP server and client capabilities.
Requests will typically require a bearer token, verified by your auth provider. Each MCP tool call uses the same server routes as standard HTTP requests, and goes through the same RBAC and FGA checks (if configured). You can also choose which agents, workflows, and tools the MCP server exposes.
Get started
Install the following packages, this example uses Mastra platform auth. Any supported auth provider will also work:
#Mastra#Mastra Built-in MCP Server#@mastra/mcp#Mastra Studio#Claude Code