@mastra/mcp 0.5.0-alpha.6 → 0.5.0
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
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
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 17099ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 12447ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
20
|
[32mCJS[39m [1mdist/index.cjs [22m[32m32.75 KB[39m
|
|
21
|
-
[32mCJS[39m ⚡️ Build success in
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 1410ms
|
|
22
22
|
[32mESM[39m [1mdist/index.js [22m[32m32.45 KB[39m
|
|
23
|
-
[32mESM[39m ⚡️ Build success in
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 1416ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @mastra/mcp
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e229660: MCPClient: expose connected client resources.
|
|
8
|
+
|
|
9
|
+
Added a new `getResources()` method to the MCPClient class that allows clients to retrieve resources from connected MCP servers. Resources are data or content exposed by MCP servers that can be accessed by clients.
|
|
10
|
+
|
|
11
|
+
The implementation includes:
|
|
12
|
+
|
|
13
|
+
- Direct access to resources from all connected MCP servers, grouped by server name
|
|
14
|
+
- Robust error handling that allows partial results when some servers fail
|
|
15
|
+
- Comprehensive test coverage with real server implementation
|
|
16
|
+
|
|
17
|
+
This feature enables applications to access data and content exposed by MCP servers through the resources capability, such as files, databases, or other content sources.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 8baa6c8: passes runtimeContext to the logger function inside MCPClient tool calls
|
|
22
|
+
- 396be50: updated mcp server routes for MCP SSE for use with hono server
|
|
23
|
+
- da082f8: Switch from serializing json schema string as a function to a library that creates a zod object in memory from the json schema. This reduces the errors we were seeing from zod schema code that could not be serialized.
|
|
24
|
+
- bb1e2c8: Make sure mcp handlers can only be registered once
|
|
25
|
+
- edf1e88: allows ability to pass McpServer into the mastra class and creates an endpoint /api/servers/:serverId/mcp to POST messages to an MCP server
|
|
26
|
+
- Updated dependencies [396be50]
|
|
27
|
+
- Updated dependencies [ab80e7e]
|
|
28
|
+
- Updated dependencies [c3bd795]
|
|
29
|
+
- Updated dependencies [da082f8]
|
|
30
|
+
- Updated dependencies [a5810ce]
|
|
31
|
+
- Updated dependencies [3e9c131]
|
|
32
|
+
- Updated dependencies [3171b5b]
|
|
33
|
+
- Updated dependencies [973e5ac]
|
|
34
|
+
- Updated dependencies [daf942f]
|
|
35
|
+
- Updated dependencies [0b8b868]
|
|
36
|
+
- Updated dependencies [9e1eff5]
|
|
37
|
+
- Updated dependencies [6fa1ad1]
|
|
38
|
+
- Updated dependencies [c28d7a0]
|
|
39
|
+
- Updated dependencies [edf1e88]
|
|
40
|
+
- @mastra/core@0.9.4
|
|
41
|
+
|
|
3
42
|
## 0.5.0-alpha.6
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/runner/work/mastra/mastra/packages/cli/dist/node_modules:/home/runner/work/mastra/mastra/packages/cli/node_modules:/home/runner/work/mastra/mastra/packages/node_modules:/home/runner/work/mastra/mastra/node_modules:/home/runner/work/mastra/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/runner/work/mastra/mastra/packages/cli/dist/node_modules:/home/runner/work/mastra/mastra/packages/cli/node_modules:/home/runner/work/mastra/mastra/packages/node_modules:/home/runner/work/mastra/mastra/node_modules:/home/runner/work/mastra/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../mastra/dist/index.js" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../mastra/dist/index.js" "$@"
|
|
21
|
+
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp",
|
|
3
|
-
"version": "0.5.0
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"hono": "^4.7.4",
|
|
30
30
|
"uuid": "^11.1.0",
|
|
31
31
|
"zod-from-json-schema": "^0.0.5",
|
|
32
|
-
"@mastra/core": "^0.9.4
|
|
32
|
+
"@mastra/core": "^0.9.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"zod": "^3.0.0"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"vitest": "^3.1.2",
|
|
50
50
|
"zod": "^3.24.3",
|
|
51
51
|
"zod-to-json-schema": "^3.24.5",
|
|
52
|
-
"@internal/lint": "0.0.
|
|
52
|
+
"@internal/lint": "0.0.5"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|