@mastra/mcp
AI overview
Sign in and the AI will write an overview from our coverage.
Headlines · 2
- Mastra launches built-in MCP server for agents and workflows
Mastra announced a built-in MCP server that exposes agents, workflows, and tools at the /api/mcp endpoint after users install @mastra/mcp and configure authentication. It provides call_agent, start_workflow, and get_trace tools, supports selective exposure, and routes requests through standard Mastra HTTP routes with configured RBAC and FGA checks. Mastra also documents connecting the server to Claude Code over HTTP.
Mastra Blog · 🔥 0 - Mastra ships @mastra/mcp 2.0 with MCP 2026-07-28 sessionless spec support
Mastra says @mastra/mcp 2.0.0 now supports the MCP 2026-07-28 specification, which removes the initialize handshake (SEP-2575) and protocol-level sessions including the Mcp-Session-Id header (SEP-2567), so every request is self-contained. Mastra says MCP servers built with it can now run across load-balanced instances or on serverless platforms that scale to zero; previously a session pinned a client to the instance that issued its session ID, and requests routed elsewhere behind a load balancer could return 400 session not found errors, with sticky sessions or a shared store such as Redis as workarounds. The post also describes new Mcp-Method and Mcp-Name headers, cache hints on list results, a server/discover method and requestState for asking users for input mid-call, notes that tasks are now an official extension Mastra is still investigating, and says the spec deprecates HTTP+SSE transport, roots, sampling, logging and OAuth Dynamic Client Registration, which @mastra/mcp 2.0 has already removed.
Mastra Blog · 🔥 0
Experience and discussion from the community
Share my @mastra/mcp experienceAsk about @mastra/mcp
Nobody has shared their experience with @mastra/mcp yet.