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