@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +25 -0
- package/dist/_tsup-dts-rollup.d.cts +13 -9
- package/dist/_tsup-dts-rollup.d.ts +13 -9
- package/dist/index.cjs +1818 -1816
- package/dist/index.js +1807 -1805
- package/package.json +2 -2
- package/src/client.ts +31 -19
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/mcp@0.4.2-alpha.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 15408ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
|
+
[34mCLI[39m Target: es2022
|
|
11
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
12
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.ts[39m
|
|
13
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
14
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.cts[39m
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
-
[34mCLI[39m Target: es2022
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 14088ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
20
|
+
[32mESM[39m [1mdist/index.js [22m[32m204.47 KB[39m
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 4220ms
|
|
22
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m205.28 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ 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
|
|
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
|
|
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
|
|