@mastra/mcp 2.1.1-alpha.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-mcp
|
|
|
3
3
|
description: Documentation for @mastra/mcp. Use when working with @mastra/mcp APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/mcp"
|
|
6
|
-
version: "2.1.1
|
|
6
|
+
version: "2.1.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -23,7 +23,7 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
23
23
|
### Reference
|
|
24
24
|
|
|
25
25
|
- [Reference: Tool configuration](references/reference-editor-tools.md) - Configure Editor agent tools from Mastra, MCP, workspace, and provider sources, including descriptions, display conditions, and resolution order.
|
|
26
|
-
- [Migration: @mastra/mcp v1 to v2](references/reference-migrations-mcp-v2.md) - @mastra/mcp
|
|
26
|
+
- [Migration: @mastra/mcp v1 to v2](references/reference-migrations-mcp-v2.md) - Migrate @mastra/mcp to v2, which serves only the MCP 2026-07-28 revision and replaces elicitation with suspend/resume. Clients still connect to older servers.
|
|
27
27
|
- [MCP](references/reference-migrations-upgrade-to-v1-mcp.md) - MCP (Model Context Protocol) tool execution context has been reorganized, and deprecated client classes have been removed.
|
|
28
28
|
- [Reference: MCPClient](references/reference-tools-mcp-client.md) - The MCPClient class provides a way to manage multiple MCP server connections and their tools in a Mastra application.
|
|
29
29
|
- [Reference: MCPServer](references/reference-tools-mcp-server.md) - The MCPServer class provides the functionality to expose your existing Mastra tools and Agents as a Model Context Protocol (MCP) server.
|
|
@@ -204,7 +204,7 @@ export const mastra = new Mastra({
|
|
|
204
204
|
|
|
205
205
|
> **Authentication:** Protect HTTP MCP servers with OAuth middleware. Visit [OAuth protection](https://mastra.ai/reference/tools/mcp-server) for setup instructions.
|
|
206
206
|
|
|
207
|
-
Registered servers are served at `/api/mcp/:serverId/mcp` over Streamable HTTP.
|
|
207
|
+
Registered servers are served at `/api/mcp/:serverId/mcp` over Streamable HTTP. Because every request is self-contained, the same server runs unchanged on long-lived hosts and serverless platforms.
|
|
208
208
|
|
|
209
209
|
A tool that needs something from the user before it can finish calls `context.suspend()` with a payload and declares a `resumeSchema`. The server turns that into an `input_required` round and runs the tool again with the answer in `context.resumeData`. Clients answer those rounds with the `inputRequests` handler on their server definition. Visit [Asking the caller for input](https://mastra.ai/reference/tools/mcp-server) and [Answering input requests](https://mastra.ai/reference/tools/mcp-client).
|
|
210
210
|
|
|
@@ -244,7 +244,7 @@ servers: {
|
|
|
244
244
|
|
|
245
245
|
### `roots` and `sampling`
|
|
246
246
|
|
|
247
|
-
Clients no longer advertise `roots`. `setRoots()` and `sendRootsListChanged()` are gone. Servers neither request sampling nor advertise it. A server that embeds a `roots/list` or `sampling/createMessage` request in `input_required` isn't answered: the client has no handler for those methods
|
|
247
|
+
Clients no longer advertise `roots`. `setRoots()` and `sendRootsListChanged()` are gone. Servers neither request sampling nor advertise it. A server that embeds a `roots/list` or `sampling/createMessage` request in `input_required` isn't answered: the client has no handler for those methods. The call fails instead of fabricating a response.
|
|
248
248
|
|
|
249
249
|
### `logging/setLevel` and `sendLoggingMessage`
|
|
250
250
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp",
|
|
3
|
-
"version": "2.1.1
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"vitest": "4.1.11",
|
|
52
52
|
"zod": "^4.6.4",
|
|
53
53
|
"zod-to-json-schema": "^3.25.1",
|
|
54
|
-
"@internal/ai-sdk-v5": "0.0.
|
|
55
|
-
"@internal/
|
|
56
|
-
"@internal/
|
|
57
|
-
"@internal/test-utils": "0.0.
|
|
58
|
-
"@
|
|
59
|
-
"@mastra/
|
|
60
|
-
"@mastra/
|
|
61
|
-
"@
|
|
54
|
+
"@internal/ai-sdk-v5": "0.0.85",
|
|
55
|
+
"@internal/llm-recorder": "0.0.74",
|
|
56
|
+
"@internal/lint": "0.0.138",
|
|
57
|
+
"@internal/test-utils": "0.0.74",
|
|
58
|
+
"@mastra/core": "1.72.0",
|
|
59
|
+
"@mastra/observability": "1.18.2",
|
|
60
|
+
"@mastra/schema-compat": "1.3.12",
|
|
61
|
+
"@internal/types-builder": "0.0.113"
|
|
62
62
|
},
|
|
63
63
|
"homepage": "https://mastra.ai",
|
|
64
64
|
"repository": {
|