@mastra/mcp 0.1.0-alpha.42 → 0.1.0-alpha.44
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 +16 -0
- package/dist/_tsup-dts-rollup.d.ts +51 -0
- package/dist/index.d.ts +1 -42
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/mcp
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.44
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a9345f9]
|
|
8
|
+
- @mastra/core@0.2.0-alpha.102
|
|
9
|
+
|
|
10
|
+
## 0.1.0-alpha.43
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 4f1d1a1: Enforce types ann cleanup package.json
|
|
15
|
+
- Updated dependencies [66a03ec]
|
|
16
|
+
- Updated dependencies [4f1d1a1]
|
|
17
|
+
- @mastra/core@0.2.0-alpha.101
|
|
18
|
+
|
|
3
19
|
## 0.1.0-alpha.42
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { objectInputType } from 'zod';
|
|
3
|
+
import { objectOutputType } from 'zod';
|
|
4
|
+
import { objectUtil } from 'zod';
|
|
5
|
+
import { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
6
|
+
import { ZodArray } from 'zod';
|
|
7
|
+
import { ZodObject } from 'zod';
|
|
8
|
+
import { ZodOptional } from 'zod';
|
|
9
|
+
import { ZodString } from 'zod';
|
|
10
|
+
import { ZodTypeAny } from 'zod';
|
|
11
|
+
|
|
12
|
+
declare class MastraMCPClient {
|
|
13
|
+
name: string;
|
|
14
|
+
private transport;
|
|
15
|
+
private client;
|
|
16
|
+
constructor({ name, version, server, capabilities, }: {
|
|
17
|
+
name: string;
|
|
18
|
+
server: StdioServerParameters;
|
|
19
|
+
capabilities?: ClientCapabilities;
|
|
20
|
+
version?: string;
|
|
21
|
+
});
|
|
22
|
+
connect(): Promise<void>;
|
|
23
|
+
disconnect(): Promise<void>;
|
|
24
|
+
resources(): Promise<objectOutputType<objectUtil.extendShape<objectUtil.extendShape< {
|
|
25
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
26
|
+
}, {
|
|
27
|
+
nextCursor: ZodOptional<ZodString>;
|
|
28
|
+
}>, {
|
|
29
|
+
resources: ZodArray<ZodObject< {
|
|
30
|
+
uri: ZodString;
|
|
31
|
+
name: ZodString;
|
|
32
|
+
description: ZodOptional<ZodString>;
|
|
33
|
+
mimeType: ZodOptional<ZodString>;
|
|
34
|
+
}, "passthrough", ZodTypeAny, objectOutputType< {
|
|
35
|
+
uri: ZodString;
|
|
36
|
+
name: ZodString;
|
|
37
|
+
description: ZodOptional<ZodString>;
|
|
38
|
+
mimeType: ZodOptional<ZodString>;
|
|
39
|
+
}, ZodTypeAny, "passthrough">, objectInputType< {
|
|
40
|
+
uri: ZodString;
|
|
41
|
+
name: ZodString;
|
|
42
|
+
description: ZodOptional<ZodString>;
|
|
43
|
+
mimeType: ZodOptional<ZodString>;
|
|
44
|
+
}, ZodTypeAny, "passthrough">>, "many">;
|
|
45
|
+
}>, ZodTypeAny, "passthrough">>;
|
|
46
|
+
tools(): Promise<Record<string, any>>;
|
|
47
|
+
}
|
|
48
|
+
export { MastraMCPClient }
|
|
49
|
+
export { MastraMCPClient as MastraMCPClient_alias_1 }
|
|
50
|
+
|
|
51
|
+
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,42 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
3
|
-
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
-
|
|
5
|
-
declare class MastraMCPClient {
|
|
6
|
-
name: string;
|
|
7
|
-
private transport;
|
|
8
|
-
private client;
|
|
9
|
-
constructor({ name, version, server, capabilities, }: {
|
|
10
|
-
name: string;
|
|
11
|
-
server: StdioServerParameters;
|
|
12
|
-
capabilities?: ClientCapabilities;
|
|
13
|
-
version?: string;
|
|
14
|
-
});
|
|
15
|
-
connect(): Promise<void>;
|
|
16
|
-
disconnect(): Promise<void>;
|
|
17
|
-
resources(): Promise<zod.objectOutputType<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
|
|
18
|
-
_meta: zod.ZodOptional<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>>;
|
|
19
|
-
}, {
|
|
20
|
-
nextCursor: zod.ZodOptional<zod.ZodString>;
|
|
21
|
-
}>, {
|
|
22
|
-
resources: zod.ZodArray<zod.ZodObject<{
|
|
23
|
-
uri: zod.ZodString;
|
|
24
|
-
name: zod.ZodString;
|
|
25
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
26
|
-
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
27
|
-
}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
|
|
28
|
-
uri: zod.ZodString;
|
|
29
|
-
name: zod.ZodString;
|
|
30
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
31
|
-
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
32
|
-
}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
|
|
33
|
-
uri: zod.ZodString;
|
|
34
|
-
name: zod.ZodString;
|
|
35
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
36
|
-
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
37
|
-
}, zod.ZodTypeAny, "passthrough">>, "many">;
|
|
38
|
-
}>, zod.ZodTypeAny, "passthrough">>;
|
|
39
|
-
tools(): Promise<Record<string, any>>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { MastraMCPClient };
|
|
1
|
+
export { MastraMCPClient_alias_1 as MastraMCPClient } from './_tsup-dts-rollup.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.44",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,21 +20,18 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@modelcontextprotocol/sdk": "^1.1.1",
|
|
22
22
|
"date-fns": "^4.1.0",
|
|
23
|
-
"dotenv": "^16.3.1",
|
|
24
23
|
"zod": "^3.24.1",
|
|
25
|
-
"@mastra/core": "^0.2.0-alpha.
|
|
24
|
+
"@mastra/core": "^0.2.0-alpha.102"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"@ai-sdk/anthropic": "^1.1.6",
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@tsconfig/recommended": "^1.0.7",
|
|
32
|
-
"@types/node": "^22.9.0",
|
|
28
|
+
"@microsoft/api-extractor": "^7.49.2",
|
|
29
|
+
"@types/node": "^22.13.1",
|
|
33
30
|
"tsup": "^8.0.1",
|
|
34
31
|
"vitest": "^3.0.4"
|
|
35
32
|
},
|
|
36
33
|
"scripts": {
|
|
37
|
-
"build": "tsup src/index.ts --format esm --dts --clean --treeshake",
|
|
34
|
+
"build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake",
|
|
38
35
|
"build:watch": "pnpm build --watch",
|
|
39
36
|
"test": "vitest run"
|
|
40
37
|
}
|