@mastra/mcp 1.17.0 → 1.17.1-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/CHANGELOG.md +9 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts +1 -0
- package/dist/server/server.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/mcp
|
|
2
2
|
|
|
3
|
+
## 1.17.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed MCP tool listing when a tool has no input schema. ([#21861](https://github.com/mastra-ai/mastra/pull/21861))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`88d14ca`](https://github.com/mastra-ai/mastra/commit/88d14cac008582a618fecc3d5c7fd3bdf4f6ddc3), [`84a5b69`](https://github.com/mastra-ai/mastra/commit/84a5b699f84d6bae0a34efe5a970d891090b9f41), [`84a5b69`](https://github.com/mastra-ai/mastra/commit/84a5b699f84d6bae0a34efe5a970d891090b9f41), [`84a5b69`](https://github.com/mastra-ai/mastra/commit/84a5b699f84d6bae0a34efe5a970d891090b9f41), [`038b7b4`](https://github.com/mastra-ai/mastra/commit/038b7b405cb4ac25ab3f3031334111b1f87ac112), [`4132d61`](https://github.com/mastra-ai/mastra/commit/4132d61f8367077120ee9e6420d3224dffd93c93)]:
|
|
10
|
+
- @mastra/core@1.60.1-alpha.0
|
|
11
|
+
|
|
3
12
|
## 1.17.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -27234,7 +27234,7 @@ var MCPServer = class extends _mastra_core_mcp.MCPServerBase {
|
|
|
27234
27234
|
const toolSpec = {
|
|
27235
27235
|
name: tool.id || "unknown",
|
|
27236
27236
|
description: tool.description,
|
|
27237
|
-
inputSchema: this.
|
|
27237
|
+
inputSchema: this.convertInputSchema(tool.parameters)
|
|
27238
27238
|
};
|
|
27239
27239
|
if (tool.outputSchema) toolSpec.outputSchema = this.convertSchema(tool.outputSchema);
|
|
27240
27240
|
if (tool.mcp?.annotations) toolSpec.annotations = tool.mcp.annotations;
|
|
@@ -28506,6 +28506,12 @@ var MCPServer = class extends _mastra_core_mcp.MCPServerBase {
|
|
|
28506
28506
|
}
|
|
28507
28507
|
return jsonSchema;
|
|
28508
28508
|
}
|
|
28509
|
+
convertInputSchema(schema) {
|
|
28510
|
+
return this.convertSchema(schema) ?? {
|
|
28511
|
+
type: "object",
|
|
28512
|
+
properties: {}
|
|
28513
|
+
};
|
|
28514
|
+
}
|
|
28509
28515
|
/**
|
|
28510
28516
|
* Gets a list of all tools provided by this MCP server with their schemas.
|
|
28511
28517
|
*
|
|
@@ -28529,7 +28535,7 @@ var MCPServer = class extends _mastra_core_mcp.MCPServerBase {
|
|
|
28529
28535
|
id: toolId,
|
|
28530
28536
|
name: tool.id || toolId,
|
|
28531
28537
|
description: tool.description,
|
|
28532
|
-
inputSchema: this.
|
|
28538
|
+
inputSchema: this.convertInputSchema(tool.parameters),
|
|
28533
28539
|
outputSchema: this.convertSchema(tool.outputSchema),
|
|
28534
28540
|
toolType: tool.mcp?.toolType,
|
|
28535
28541
|
_meta: withMastraToolStrictMeta(tool.mcp?._meta, tool.strict)
|
|
@@ -28540,7 +28546,7 @@ var MCPServer = class extends _mastra_core_mcp.MCPServerBase {
|
|
|
28540
28546
|
id: toolId,
|
|
28541
28547
|
name: tool.id || toolId,
|
|
28542
28548
|
description: tool.description,
|
|
28543
|
-
inputSchema: this.
|
|
28549
|
+
inputSchema: this.convertInputSchema(tool.parameters),
|
|
28544
28550
|
outputSchema: this.convertSchema(tool.outputSchema),
|
|
28545
28551
|
toolType: tool.mcp?.toolType,
|
|
28546
28552
|
_meta: withMastraToolStrictMeta(tool.mcp?._meta, tool.strict)
|
|
@@ -28580,7 +28586,7 @@ var MCPServer = class extends _mastra_core_mcp.MCPServerBase {
|
|
|
28580
28586
|
return {
|
|
28581
28587
|
name: tool.id || toolId,
|
|
28582
28588
|
description: tool.description,
|
|
28583
|
-
inputSchema: this.
|
|
28589
|
+
inputSchema: this.convertInputSchema(tool.parameters),
|
|
28584
28590
|
outputSchema: this.convertSchema(tool.outputSchema),
|
|
28585
28591
|
toolType: tool.mcp?.toolType,
|
|
28586
28592
|
_meta: withMastraToolStrictMeta(tool.mcp?._meta, tool.strict)
|