@mastra/mcp 0.3.11-alpha.1 → 0.4.0-alpha.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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/mcp@0.3.11-alpha.1 build /home/runner/work/mastra/mastra/packages/mcp
2
+ > @mastra/mcp@0.4.0-alpha.2 build /home/runner/work/mastra/mastra/packages/mcp
3
3
  > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.4.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 13811ms
9
+ TSC ⚡️ Build success in 15436ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.2
13
13
  Writing package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.2
15
15
  Writing package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 10935ms
16
+ DTS ⚡️ Build success in 12299ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- CJS dist/index.cjs 129.02 KB
21
- CJS ⚡️ Build success in 3412ms
22
- ESM dist/index.js 128.98 KB
23
- ESM ⚡️ Build success in 3413ms
20
+ ESM dist/index.js 129.07 KB
21
+ ESM ⚡️ Build success in 3839ms
22
+ CJS dist/index.cjs 129.12 KB
23
+ CJS ⚡️ Build success in 3839ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mastra/mcp
2
2
 
3
+ ## 0.4.0-alpha.2
4
+
5
+ ### Minor Changes
6
+
7
+ - a3b2fb3: send mcp name on error connecting to it
8
+
3
9
  ## 0.3.11-alpha.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -4338,7 +4338,7 @@ To fix this you have three different options:
4338
4338
  this.logger.error(`MCPConfiguration errored connecting to MCP server ${name}`, {
4339
4339
  error: e instanceof Error ? e.message : String(e)
4340
4340
  });
4341
- throw e;
4341
+ throw new Error(`Failed to connect to MCP server ${name}: ${e instanceof Error ? e.message : String(e)}`);
4342
4342
  }
4343
4343
  this.logger.debug(`Connected to ${name} MCP server`);
4344
4344
  return mcpClient;
package/dist/index.js CHANGED
@@ -4336,7 +4336,7 @@ To fix this you have three different options:
4336
4336
  this.logger.error(`MCPConfiguration errored connecting to MCP server ${name}`, {
4337
4337
  error: e instanceof Error ? e.message : String(e)
4338
4338
  });
4339
- throw e;
4339
+ throw new Error(`Failed to connect to MCP server ${name}: ${e instanceof Error ? e.message : String(e)}`);
4340
4340
  }
4341
4341
  this.logger.debug(`Connected to ${name} MCP server`);
4342
4342
  return mcpClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp",
3
- "version": "0.3.11-alpha.1",
3
+ "version": "0.4.0-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -117,7 +117,7 @@ To fix this you have three different options:
117
117
  this.logger.error(`MCPConfiguration errored connecting to MCP server ${name}`, {
118
118
  error: e instanceof Error ? e.message : String(e),
119
119
  });
120
- throw e;
120
+ throw new Error(`Failed to connect to MCP server ${name}: ${e instanceof Error ? e.message : String(e)}`);
121
121
  }
122
122
 
123
123
  this.logger.debug(`Connected to ${name} MCP server`);