@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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +7 -0
- package/README.md +7 -5
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/mcp@0.2.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.3.6
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 10948ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.7.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 6143ms
|
|
15
15
|
[34mCLI[39m Cleaning output folder
|
|
16
16
|
[34mESM[39m Build start
|
|
17
17
|
[32mESM[39m [1mdist/index.js [22m[32m2.19 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 272ms
|
package/CHANGELOG.md
CHANGED
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: {
|
|
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.
|
|
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.
|
|
24
|
+
"@mastra/core": "^0.4.3-alpha.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@ai-sdk/anthropic": "^1.1.6",
|