@mastra/mcp 0.10.12-alpha.0 → 0.10.12

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.
@@ -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
@@ -24,6 +24,6 @@
24
24
  "vitest": "^3.2.4"
25
25
  },
26
26
  "peerDependencies": {
27
- "@mastra/core": ">=0.10.7-0 <0.14.0-0"
27
+ "@mastra/core": ">=0.10.7-0 <0.15.0-0"
28
28
  }
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp",
3
- "version": "0.10.12-alpha.0",
3
+ "version": "0.10.12",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "zod-from-json-schema": "^0.0.5"
32
32
  },
33
33
  "peerDependencies": {
34
- "@mastra/core": ">=0.10.2-0 <0.14.0-0",
34
+ "@mastra/core": ">=0.10.2-0 <0.15.0-0",
35
35
  "zod": "^3.0.0"
36
36
  },
37
37
  "devDependencies": {
@@ -51,9 +51,9 @@
51
51
  "vitest": "^3.2.4",
52
52
  "zod": "^3.25.67",
53
53
  "zod-to-json-schema": "^3.24.5",
54
- "@internal/lint": "0.0.29",
55
- "@mastra/core": "0.14.0-alpha.1",
56
- "@internal/types-builder": "0.0.4"
54
+ "@internal/lint": "0.0.30",
55
+ "@mastra/core": "0.14.0",
56
+ "@internal/types-builder": "0.0.5"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup --silent --config tsup.config.ts",
@@ -1197,10 +1197,10 @@ export class MCPServer extends MCPServerBase {
1197
1197
  while (true) {
1198
1198
  // This will keep the connection alive
1199
1199
  // You can also await for a promise that never resolves
1200
+ await stream.sleep(60_000);
1200
1201
  const sessionIds = Array.from(this.sseHonoTransports.keys() || []);
1201
1202
  this.logger.debug('Active Hono SSE sessions:', { sessionIds });
1202
1203
  await stream.write(':keep-alive\n\n');
1203
- await stream.sleep(60_000);
1204
1204
  }
1205
1205
  } catch (e) {
1206
1206
  const mastraError = new MastraError(