@mastra/mcp 0.4.2-alpha.0 → 0.4.2-alpha.3

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.4.2-alpha.0 build /home/runner/work/mastra/mastra/packages/mcp
2
+ > @mastra/mcp@0.4.2-alpha.3 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 16987ms
9
+ TSC ⚡️ Build success in 15408ms
10
10
  DTS Build start
11
+ CLI Target: es2022
11
12
  Analysis will use the bundled TypeScript version 5.8.3
12
13
  Writing package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.ts
13
14
  Analysis will use the bundled TypeScript version 5.8.3
14
15
  Writing package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.cts
15
- DTS ⚡️ Build success in 13751ms
16
- CLI Target: es2022
16
+ DTS ⚡️ Build success in 14088ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- CJS dist/index.cjs 205.23 KB
21
- CJS ⚡️ Build success in 4890ms
22
- ESM dist/index.js 204.37 KB
23
- ESM ⚡️ Build success in 4890ms
20
+ ESM dist/index.js 204.47 KB
21
+ ESM ⚡️ Build success in 4220ms
22
+ CJS dist/index.cjs 205.28 KB
23
+ CJS ⚡️ Build success in 4216ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @mastra/mcp
2
2
 
3
+ ## 0.4.2-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [967b41c]
8
+ - Updated dependencies [4155f47]
9
+ - Updated dependencies [17826a9]
10
+ - @mastra/core@0.9.2-alpha.3
11
+
12
+ ## 0.4.2-alpha.2
13
+
14
+ ### Patch Changes
15
+
16
+ - 26738f4: Switched from a custom MCP tools schema deserializer to json-schema-to-zod - fixes an issue where MCP tool schemas didn't deserialize properly in Mastra playground. Also added support for testing tools with no input arguments in playground
17
+ - Updated dependencies [26738f4]
18
+ - @mastra/core@0.9.2-alpha.2
19
+
20
+ ## 0.4.2-alpha.1
21
+
22
+ ### Patch Changes
23
+
24
+ - 8bb9b4d: Deprecation warning was on the subclass, rather than the deprecated class. So the deprecation warning would show even if you used the new class.
25
+ - Updated dependencies [b804723]
26
+ - @mastra/core@0.9.2-alpha.1
27
+
3
28
  ## 0.4.2-alpha.0
4
29
 
5
30
  ### Patch Changes
@@ -46,16 +46,9 @@ export declare class InternalMastraMCPClient extends MastraBase {
46
46
  private readonly timeout;
47
47
  private logHandler?;
48
48
  private enableServerLogs?;
49
- private static hasWarned;
50
49
  private serverConfig;
51
50
  private transport?;
52
- constructor({ name, version, server, capabilities, timeout, }: {
53
- name: string;
54
- server: MastraMCPServerDefinition;
55
- capabilities?: ClientCapabilities;
56
- version?: string;
57
- timeout?: number;
58
- });
51
+ constructor({ name, version, server, capabilities, timeout, }: InternalMastraMCPClientOptions);
59
52
  /**
60
53
  * Log a message at the specified level
61
54
  * @param level Log level
@@ -75,9 +68,18 @@ export declare class InternalMastraMCPClient extends MastraBase {
75
68
  get sessionId(): string | undefined;
76
69
  disconnect(): Promise<void>;
77
70
  resources(): Promise<ReturnType<Protocol<any, any, any>['request']>>;
71
+ private convertInputSchema;
78
72
  tools(): Promise<Record<string, any>>;
79
73
  }
80
74
 
75
+ export declare type InternalMastraMCPClientOptions = {
76
+ name: string;
77
+ server: MastraMCPServerDefinition;
78
+ capabilities?: ClientCapabilities;
79
+ version?: string;
80
+ timeout?: number;
81
+ };
82
+
81
83
  export declare interface Logger {
82
84
  info: (message: string, data?: any) => Promise<void>;
83
85
  warning: (message: string, data?: any) => Promise<void>;
@@ -107,7 +109,9 @@ export { LogMessage as LogMessage_alias_1 }
107
109
  /**
108
110
  * @deprecated MastraMCPClient is deprecated and will be removed in a future release. Please use MCPClient instead.
109
111
  */
110
- declare const MastraMCPClient: typeof InternalMastraMCPClient;
112
+ declare class MastraMCPClient extends InternalMastraMCPClient {
113
+ constructor(args: InternalMastraMCPClientOptions);
114
+ }
111
115
  export { MastraMCPClient }
112
116
  export { MastraMCPClient as MastraMCPClient_alias_1 }
113
117
 
@@ -46,16 +46,9 @@ export declare class InternalMastraMCPClient extends MastraBase {
46
46
  private readonly timeout;
47
47
  private logHandler?;
48
48
  private enableServerLogs?;
49
- private static hasWarned;
50
49
  private serverConfig;
51
50
  private transport?;
52
- constructor({ name, version, server, capabilities, timeout, }: {
53
- name: string;
54
- server: MastraMCPServerDefinition;
55
- capabilities?: ClientCapabilities;
56
- version?: string;
57
- timeout?: number;
58
- });
51
+ constructor({ name, version, server, capabilities, timeout, }: InternalMastraMCPClientOptions);
59
52
  /**
60
53
  * Log a message at the specified level
61
54
  * @param level Log level
@@ -75,9 +68,18 @@ export declare class InternalMastraMCPClient extends MastraBase {
75
68
  get sessionId(): string | undefined;
76
69
  disconnect(): Promise<void>;
77
70
  resources(): Promise<ReturnType<Protocol<any, any, any>['request']>>;
71
+ private convertInputSchema;
78
72
  tools(): Promise<Record<string, any>>;
79
73
  }
80
74
 
75
+ export declare type InternalMastraMCPClientOptions = {
76
+ name: string;
77
+ server: MastraMCPServerDefinition;
78
+ capabilities?: ClientCapabilities;
79
+ version?: string;
80
+ timeout?: number;
81
+ };
82
+
81
83
  export declare interface Logger {
82
84
  info: (message: string, data?: any) => Promise<void>;
83
85
  warning: (message: string, data?: any) => Promise<void>;
@@ -107,7 +109,9 @@ export { LogMessage as LogMessage_alias_1 }
107
109
  /**
108
110
  * @deprecated MastraMCPClient is deprecated and will be removed in a future release. Please use MCPClient instead.
109
111
  */
110
- declare const MastraMCPClient: typeof InternalMastraMCPClient;
112
+ declare class MastraMCPClient extends InternalMastraMCPClient {
113
+ constructor(args: InternalMastraMCPClientOptions);
114
+ }
111
115
  export { MastraMCPClient }
112
116
  export { MastraMCPClient as MastraMCPClient_alias_1 }
113
117