@mastra/mcp 0.2.4 → 0.2.5-alpha.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.
@@ -1,18 +1,18 @@
1
1
 
2
- > @mastra/mcp@0.2.4-alpha.2 build /home/runner/work/mastra/mastra/packages/mcp
2
+ > @mastra/mcp@0.2.5-alpha.0 build /home/runner/work/mastra/mastra/packages/mcp
3
3
  > tsup src/index.ts --format esm --experimental-dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.3.6
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 11511ms
9
+ TSC ⚡️ Build success in 10948ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.7.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.ts
14
- DTS ⚡️ Build success in 5518ms
14
+ DTS ⚡️ Build success in 6143ms
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
17
  ESM dist/index.js 2.19 KB
18
- ESM ⚡️ Build success in 309ms
18
+ ESM ⚡️ Build success in 272ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @mastra/mcp
2
2
 
3
+ ## 0.2.5-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [06aa827]
8
+ - @mastra/core@0.4.3-alpha.0
9
+
3
10
  ## 0.2.4
4
11
 
5
12
  ### Patch Changes
package/README.md CHANGED
@@ -35,9 +35,9 @@ const sseClient = new MastraMCPClient({
35
35
  server: {
36
36
  url: new URL('https://your-mcp-server.com/sse'),
37
37
  requestInit: {
38
- headers: { 'Authorization': 'Bearer your-token' }
39
- }
40
- }
38
+ headers: { Authorization: 'Bearer your-token' },
39
+ },
40
+ },
41
41
  });
42
42
 
43
43
  // Connect to the MCP server
@@ -59,12 +59,14 @@ await client.disconnect();
59
59
 
60
60
  - `name`: Name of the MCP client instance
61
61
  - `server`: Either a StdioServerParameters or SSEClientParameters object:
62
-
62
+
63
63
  #### StdioServerParameters
64
+
64
65
  - `command`: Command to start the MCP server
65
66
  - `args`: Array of command arguments
66
-
67
+
67
68
  #### SSEClientParameters
69
+
68
70
  - `url`: URL instance pointing to the SSE server
69
71
  - `requestInit`: Optional fetch request configuration
70
72
  - `eventSourceInit`: Optional EventSource configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp",
3
- "version": "0.2.4",
3
+ "version": "0.2.5-alpha.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "@modelcontextprotocol/sdk": "^1.1.1",
22
22
  "date-fns": "^4.1.0",
23
23
  "zod": "^3.24.1",
24
- "@mastra/core": "^0.4.2"
24
+ "@mastra/core": "^0.4.3-alpha.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@ai-sdk/anthropic": "^1.1.6",