@mastra/mcp 0.11.2 → 0.11.3-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 +18 -0
- package/dist/client/client.d.ts.map +1 -1
- package/dist/index.cjs +20 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -6
- package/dist/index.js.map +1 -1
- package/dist/server/server.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/server.test.ts +1 -1
- package/package.json +8 -7
- package/src/client/client.ts +16 -3
- package/src/server/server.ts +7 -4
- package/integration-tests/node_modules/.bin/mastra +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server/server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAK1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,oDAAoD,CAAC;AAuB/G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MA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C;YAAC,YAAY,CAAC,EAAE,GAAG,CAAC;YAAC,QAAQ,CAAC,EAAE,WAAW,CAAA;SAAE,CAAC,CAAC;KACpH;IAcD;;;;OAIG;IACI,WAAW,CAChB,MAAM,EAAE,MAAM,GACb;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,GAAG,CAAC;QAAC,YAAY,CAAC,EAAE,GAAG,CAAC;QAAC,QAAQ,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,SAAS;IAgBnH;;;;;;;OAOG;IACU,WAAW,CACtB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,GAAG,EACT,gBAAgB,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GAC3D,OAAO,CAAC,GAAG,CAAC;CAiFhB"}
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.
|
|
13
|
+
export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.11_@vitest+ui@3.2.3_jiti@2.4.2_jsdom_70e728ef477f1e37b982af437efd45b2/node_modules/vitest/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.11_@vitest+ui@3.2.3_jiti@2.4.2_jsdom_70e728ef477f1e37b982af437efd45b2/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.
|
|
15
|
+
export NODE_PATH="/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.11_@vitest+ui@3.2.3_jiti@2.4.2_jsdom_70e728ef477f1e37b982af437efd45b2/node_modules/vitest/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.11_@vitest+ui@3.2.3_jiti@2.4.2_jsdom_70e728ef477f1e37b982af437efd45b2/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../vitest/vitest.mjs" "$@"
|
|
@@ -42,7 +42,7 @@ describe('MCPServer through Mastra HTTP Integration (Subprocess)', () => {
|
|
|
42
42
|
console.error('Mastra server error:', data.toString());
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
setTimeout(() => reject(new Error('Mastra server failed to start')),
|
|
45
|
+
setTimeout(() => reject(new Error('Mastra server failed to start')), 100000);
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
client = new MCPClient({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,10 +28,11 @@
|
|
|
28
28
|
"exit-hook": "^4.0.0",
|
|
29
29
|
"fast-deep-equal": "^3.1.3",
|
|
30
30
|
"uuid": "^11.1.0",
|
|
31
|
-
"zod-from-json-schema": "^0.0
|
|
31
|
+
"zod-from-json-schema": "^0.5.0",
|
|
32
|
+
"zod-from-json-schema-v3": "npm:zod-from-json-schema@^0.0.5"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
|
-
"@mastra/core": ">=0.15.
|
|
35
|
+
"@mastra/core": ">=0.15.3-0 <0.16.0-0",
|
|
35
36
|
"zod": "^3.25.0 || ^4.0.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
@@ -49,11 +50,11 @@
|
|
|
49
50
|
"tsx": "^4.19.4",
|
|
50
51
|
"typescript": "^5.8.3",
|
|
51
52
|
"vitest": "^3.2.4",
|
|
52
|
-
"zod": "^3.25.
|
|
53
|
-
"zod-to-json-schema": "^3.24.
|
|
53
|
+
"zod": "^3.25.76",
|
|
54
|
+
"zod-to-json-schema": "^3.24.6",
|
|
54
55
|
"@internal/lint": "0.0.34",
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
56
|
+
"@internal/types-builder": "0.0.9",
|
|
57
|
+
"@mastra/core": "0.15.3-alpha.4"
|
|
57
58
|
},
|
|
58
59
|
"scripts": {
|
|
59
60
|
"build": "tsup --silent --config tsup.config.ts",
|
package/src/client/client.ts
CHANGED
|
@@ -36,7 +36,8 @@ import {
|
|
|
36
36
|
import { asyncExitHook, gracefulExit } from 'exit-hook';
|
|
37
37
|
import { z } from 'zod';
|
|
38
38
|
import { convertJsonSchemaToZod } from 'zod-from-json-schema';
|
|
39
|
-
import
|
|
39
|
+
import { convertJsonSchemaToZod as convertJsonSchemaToZodV3 } from 'zod-from-json-schema-v3';
|
|
40
|
+
import type { JSONSchema } from 'zod-from-json-schema-v3';
|
|
40
41
|
import { ElicitationClientActions } from './elicitationActions';
|
|
41
42
|
import { PromptClientActions } from './promptActions';
|
|
42
43
|
import { ResourceClientActions } from './resourceActions';
|
|
@@ -479,7 +480,13 @@ export class InternalMastraMCPClient extends MastraBase {
|
|
|
479
480
|
|
|
480
481
|
try {
|
|
481
482
|
await $RefParser.dereference(inputSchema);
|
|
482
|
-
|
|
483
|
+
const jsonSchemaToConvert = ('jsonSchema' in inputSchema ? inputSchema.jsonSchema : inputSchema) as JSONSchema;
|
|
484
|
+
if ('toJSONSchema' in z) {
|
|
485
|
+
// @ts-expect-error - zod type issue
|
|
486
|
+
return convertJsonSchemaToZod(jsonSchemaToConvert);
|
|
487
|
+
} else {
|
|
488
|
+
return convertJsonSchemaToZodV3(jsonSchemaToConvert);
|
|
489
|
+
}
|
|
483
490
|
} catch (error: unknown) {
|
|
484
491
|
let errorDetails: string | undefined;
|
|
485
492
|
if (error instanceof Error) {
|
|
@@ -516,7 +523,13 @@ export class InternalMastraMCPClient extends MastraBase {
|
|
|
516
523
|
|
|
517
524
|
try {
|
|
518
525
|
await $RefParser.dereference(outputSchema);
|
|
519
|
-
|
|
526
|
+
const jsonSchemaToConvert = ('jsonSchema' in outputSchema ? outputSchema.jsonSchema : outputSchema) as JSONSchema;
|
|
527
|
+
if ('toJSONSchema' in z) {
|
|
528
|
+
// @ts-expect-error - zod type issue
|
|
529
|
+
return convertJsonSchemaToZod(jsonSchemaToConvert);
|
|
530
|
+
} else {
|
|
531
|
+
return convertJsonSchemaToZodV3(jsonSchemaToConvert);
|
|
532
|
+
}
|
|
520
533
|
} catch (error: unknown) {
|
|
521
534
|
let errorDetails: string | undefined;
|
|
522
535
|
if (error instanceof Error) {
|
package/src/server/server.ts
CHANGED
|
@@ -609,12 +609,12 @@ export class MCPServer extends MCPServerBase {
|
|
|
609
609
|
inputSchema: z.object({
|
|
610
610
|
message: z.string().describe('The question or input for the agent.'),
|
|
611
611
|
}),
|
|
612
|
-
execute: async ({ context, runtimeContext }) => {
|
|
612
|
+
execute: async ({ context, runtimeContext, tracingContext }) => {
|
|
613
613
|
this.logger.debug(
|
|
614
614
|
`Executing agent tool '${agentToolName}' for agent '${agent.name}' with message: "${context.message}"`,
|
|
615
615
|
);
|
|
616
616
|
try {
|
|
617
|
-
const response = await agent.generate(context.message, { runtimeContext });
|
|
617
|
+
const response = await agent.generate(context.message, { runtimeContext, tracingContext });
|
|
618
618
|
return response;
|
|
619
619
|
} catch (error) {
|
|
620
620
|
this.logger.error(`Error executing agent tool '${agentToolName}' for agent '${agent.name}':`, error);
|
|
@@ -628,6 +628,7 @@ export class MCPServer extends MCPServerBase {
|
|
|
628
628
|
logger: this.logger,
|
|
629
629
|
mastra: this.mastra,
|
|
630
630
|
runtimeContext: new RuntimeContext(),
|
|
631
|
+
tracingContext: {},
|
|
631
632
|
description: agentToolDefinition.description,
|
|
632
633
|
};
|
|
633
634
|
const coreTool = makeCoreTool(agentToolDefinition, options) as InternalCoreTool;
|
|
@@ -681,7 +682,7 @@ export class MCPServer extends MCPServerBase {
|
|
|
681
682
|
id: workflowToolName,
|
|
682
683
|
description: `Run workflow '${workflowKey}'. Workflow description: ${workflowDescription}`,
|
|
683
684
|
inputSchema: workflow.inputSchema,
|
|
684
|
-
execute: async ({ context, runtimeContext }) => {
|
|
685
|
+
execute: async ({ context, runtimeContext, tracingContext }) => {
|
|
685
686
|
this.logger.debug(
|
|
686
687
|
`Executing workflow tool '${workflowToolName}' for workflow '${workflow.id}' with input:`,
|
|
687
688
|
context,
|
|
@@ -689,7 +690,7 @@ export class MCPServer extends MCPServerBase {
|
|
|
689
690
|
try {
|
|
690
691
|
const run = workflow.createRun({ runId: runtimeContext?.get('runId') });
|
|
691
692
|
|
|
692
|
-
const response = await run.start({ inputData: context, runtimeContext });
|
|
693
|
+
const response = await run.start({ inputData: context, runtimeContext, tracingContext });
|
|
693
694
|
|
|
694
695
|
return response;
|
|
695
696
|
} catch (error) {
|
|
@@ -707,6 +708,7 @@ export class MCPServer extends MCPServerBase {
|
|
|
707
708
|
logger: this.logger,
|
|
708
709
|
mastra: this.mastra,
|
|
709
710
|
runtimeContext: new RuntimeContext(),
|
|
711
|
+
tracingContext: {},
|
|
710
712
|
description: workflowToolDefinition.description,
|
|
711
713
|
};
|
|
712
714
|
|
|
@@ -755,6 +757,7 @@ export class MCPServer extends MCPServerBase {
|
|
|
755
757
|
const options = {
|
|
756
758
|
name: toolName,
|
|
757
759
|
runtimeContext: new RuntimeContext(),
|
|
760
|
+
tracingContext: {},
|
|
758
761
|
mastra: this.mastra,
|
|
759
762
|
logger: this.logger,
|
|
760
763
|
description: toolInstance?.description,
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|