@mastra/mcp 0.10.12 → 0.10.13-alpha.1
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 +1 -1
- package/CHANGELOG.md +20 -0
- package/dist/index.cjs +5 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/types.d.ts +1 -1
- package/dist/server/types.d.ts.map +1 -1
- package/integration-tests/node_modules/.bin/vitest +2 -2
- package/integration-tests/package.json +1 -1
- package/integration-tests/src/mastra/agents/weather.ts +1 -1
- package/package.json +8 -8
- package/src/__fixtures__/weather.ts +1 -1
- package/src/server/server.ts +3 -2
- package/src/server/types.ts +1 -1
- package/integration-tests/node_modules/.bin/mastra +0 -21
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @mastra/mcp
|
|
2
2
|
|
|
3
|
+
## 0.10.13-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#6996](https://github.com/mastra-ai/mastra/pull/6996) [`24d9ee3`](https://github.com/mastra-ai/mastra/commit/24d9ee3db1c09d15f27a5d0971b102abcfcf7dfd) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving
|
|
8
|
+
|
|
9
|
+
- [#6942](https://github.com/mastra-ai/mastra/pull/6942) [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01) Thanks [@wardpeet](https://github.com/wardpeet)! - Add zod as peerdeps for all packages
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01)]:
|
|
12
|
+
- @mastra/core@0.14.2-alpha.1
|
|
13
|
+
|
|
14
|
+
## 0.10.13-alpha.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#6643](https://github.com/mastra-ai/mastra/pull/6643) [`e38f807`](https://github.com/mastra-ai/mastra/commit/e38f8072853cc803ba48394e1930825129708400) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
|
|
19
|
+
- Updated dependency [`@modelcontextprotocol/sdk@^1.17.3` ↗︎](https://www.npmjs.com/package/@modelcontextprotocol/sdk/v/1.17.3) (from `^1.17.0`, in `dependencies`)
|
|
20
|
+
- Updated dependencies [[`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822), [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b), [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1), [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20)]:
|
|
21
|
+
- @mastra/core@0.14.2-alpha.0
|
|
22
|
+
|
|
3
23
|
## 0.10.12
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -17,7 +17,6 @@ var zodFromJsonSchema = require('zod-from-json-schema');
|
|
|
17
17
|
var equal = require('fast-deep-equal');
|
|
18
18
|
var uuid = require('uuid');
|
|
19
19
|
var crypto$1 = require('crypto');
|
|
20
|
-
var core = require('@mastra/core');
|
|
21
20
|
var mcp = require('@mastra/core/mcp');
|
|
22
21
|
var runtimeContext = require('@mastra/core/runtime-context');
|
|
23
22
|
var index_js = require('@modelcontextprotocol/sdk/server/index.js');
|
|
@@ -1846,7 +1845,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
1846
1845
|
);
|
|
1847
1846
|
continue;
|
|
1848
1847
|
}
|
|
1849
|
-
const agentToolDefinition =
|
|
1848
|
+
const agentToolDefinition = tools.createTool({
|
|
1850
1849
|
id: agentToolName,
|
|
1851
1850
|
description: `Ask agent '${agent.name}' a question. Agent description: ${agentDescription}`,
|
|
1852
1851
|
inputSchema: zod.z.object({
|
|
@@ -1872,7 +1871,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
1872
1871
|
runtimeContext: new runtimeContext.RuntimeContext(),
|
|
1873
1872
|
description: agentToolDefinition.description
|
|
1874
1873
|
};
|
|
1875
|
-
const coreTool =
|
|
1874
|
+
const coreTool = utils.makeCoreTool(agentToolDefinition, options);
|
|
1876
1875
|
agentTools[agentToolName] = {
|
|
1877
1876
|
name: agentToolName,
|
|
1878
1877
|
description: coreTool.description,
|
|
@@ -1910,7 +1909,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
1910
1909
|
);
|
|
1911
1910
|
continue;
|
|
1912
1911
|
}
|
|
1913
|
-
const workflowToolDefinition =
|
|
1912
|
+
const workflowToolDefinition = tools.createTool({
|
|
1914
1913
|
id: workflowToolName,
|
|
1915
1914
|
description: `Run workflow '${workflowKey}'. Workflow description: ${workflowDescription}`,
|
|
1916
1915
|
inputSchema: workflow.inputSchema,
|
|
@@ -1939,7 +1938,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
1939
1938
|
runtimeContext: new runtimeContext.RuntimeContext(),
|
|
1940
1939
|
description: workflowToolDefinition.description
|
|
1941
1940
|
};
|
|
1942
|
-
const coreTool =
|
|
1941
|
+
const coreTool = utils.makeCoreTool(workflowToolDefinition, options);
|
|
1943
1942
|
workflowTools[workflowToolName] = {
|
|
1944
1943
|
name: workflowToolName,
|
|
1945
1944
|
description: coreTool.description,
|
|
@@ -1979,7 +1978,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
1979
1978
|
logger: this.logger,
|
|
1980
1979
|
description: toolInstance?.description
|
|
1981
1980
|
};
|
|
1982
|
-
const coreTool =
|
|
1981
|
+
const coreTool = utils.makeCoreTool(toolInstance, options);
|
|
1983
1982
|
definedConvertedTools[toolName] = {
|
|
1984
1983
|
name: toolName,
|
|
1985
1984
|
description: coreTool.description,
|