@mastra/mcp 1.4.2-alpha.1 → 1.4.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @mastra/mcp
2
2
 
3
+ ## 1.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Improved MCP tool discovery to retry once after reconnectable connection errors like `Connection closed` during `tools/list`. ([#15141](https://github.com/mastra-ai/mastra/pull/15141))
8
+
9
+ `MCPClient.listToolsets()`, `listToolsetsWithErrors()`, and `listTools()` now attempt a reconnect before treating transient discovery failures as missing tools.
10
+
11
+ - Fixed MCP server to return HTTP 404 (instead of 400) when a client sends a stale or unknown session ID. Per the MCP spec, this tells clients to re-initialize with a new session, which fixes broken tool calls after server redeploys. ([#15160](https://github.com/mastra-ai/mastra/pull/15160))
12
+
13
+ - Updated dependencies [[`8db7663`](https://github.com/mastra-ai/mastra/commit/8db7663c9a9c735828094c359d2e327fd4f8fba3), [`153e864`](https://github.com/mastra-ai/mastra/commit/153e86476b425db7cd0dc8490050096e92964a38), [`715710d`](https://github.com/mastra-ai/mastra/commit/715710d12fa47cf88e09d41f13843eddc29327b0), [`378c6c4`](https://github.com/mastra-ai/mastra/commit/378c6c4755726e8d8cf83a14809b350b90d46c62), [`9f91fd5`](https://github.com/mastra-ai/mastra/commit/9f91fd538ab2a44f8cc740bcad8e51205f74fbea), [`ba6fa9c`](https://github.com/mastra-ai/mastra/commit/ba6fa9cc0f3e1912c49fd70d4c3bb8c44903ddaa)]:
14
+ - @mastra/core@1.24.0
15
+
3
16
  ## 1.4.2-alpha.1
4
17
 
5
18
  ### Patch Changes
@@ -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: "1.4.2-alpha.1"
6
+ version: "1.4.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.2-alpha.1",
2
+ "version": "1.4.2",
3
3
  "package": "@mastra/mcp",
4
4
  "exports": {
5
5
  "UnauthorizedError": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp",
3
- "version": "1.4.2-alpha.1",
3
+ "version": "1.4.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -52,12 +52,12 @@
52
52
  "vitest": "4.0.18",
53
53
  "zod": "^4.3.6",
54
54
  "zod-to-json-schema": "^3.25.1",
55
- "@internal/lint": "0.0.80",
56
- "@internal/llm-recorder": "0.0.16",
57
- "@mastra/schema-compat": "1.2.7",
58
- "@internal/types-builder": "0.0.55",
59
- "@mastra/core": "1.24.0-alpha.1",
60
- "@internal/test-utils": "0.0.16"
55
+ "@internal/lint": "0.0.81",
56
+ "@internal/llm-recorder": "0.0.17",
57
+ "@internal/types-builder": "0.0.56",
58
+ "@mastra/core": "1.24.0",
59
+ "@internal/test-utils": "0.0.17",
60
+ "@mastra/schema-compat": "1.2.7"
61
61
  },
62
62
  "homepage": "https://mastra.ai",
63
63
  "repository": {