@mastra/mcp 1.8.0 → 1.8.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/CHANGELOG.md +18 -0
- package/dist/_types/hono/dist/types/client/client.d.ts +4 -0
- package/dist/_types/hono/dist/types/client/fetch-result-please.d.ts +35 -0
- package/dist/_types/hono/dist/types/client/index.d.ts +7 -0
- package/dist/_types/hono/dist/types/client/types.d.ts +229 -0
- package/dist/_types/hono/dist/types/client/utils.d.ts +18 -0
- package/dist/_types/hono/dist/types/context.d.ts +455 -0
- package/dist/_types/hono/dist/types/helper/streaming/index.d.ts +8 -0
- package/dist/_types/hono/dist/types/helper/streaming/sse.d.ts +13 -0
- package/dist/_types/hono/dist/types/helper/streaming/stream.d.ts +3 -0
- package/dist/_types/hono/dist/types/helper/streaming/text.d.ts +3 -0
- package/dist/_types/hono/dist/types/hono-base.d.ts +220 -0
- package/dist/_types/hono/dist/types/hono.d.ts +19 -0
- package/dist/_types/hono/dist/types/index.d.ts +36 -0
- package/dist/_types/hono/dist/types/request/constants.d.ts +1 -0
- package/dist/_types/hono/dist/types/request.d.ts +311 -0
- package/dist/_types/hono/dist/types/router.d.ts +97 -0
- package/dist/_types/hono/dist/types/types.d.ts +573 -0
- package/dist/_types/hono/dist/types/utils/body.d.ts +79 -0
- package/dist/_types/hono/dist/types/utils/headers.d.ts +8 -0
- package/dist/_types/hono/dist/types/utils/http-status.d.ts +32 -0
- package/dist/_types/hono/dist/types/utils/mime.d.ts +70 -0
- package/dist/_types/hono/dist/types/utils/stream.d.ts +31 -0
- package/dist/_types/hono/dist/types/utils/types.d.ts +74 -0
- package/dist/_types/hono-mcp-server-sse-transport/build/index.d.ts +1 -0
- package/dist/_types/hono-mcp-server-sse-transport/build/sse.d.ts +25 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-mcp-mcp-apps.md +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts +2 -2
- package/package.json +8 -9
package/dist/index.js
CHANGED
|
@@ -3151,7 +3151,7 @@ var MCPServer = class extends MCPServerBase {
|
|
|
3151
3151
|
isError: true
|
|
3152
3152
|
};
|
|
3153
3153
|
}
|
|
3154
|
-
const validation = tool.parameters.validate?.(request.params.arguments ?? {});
|
|
3154
|
+
const validation = await tool.parameters.validate?.(request.params.arguments ?? {});
|
|
3155
3155
|
if (validation && !validation.success) {
|
|
3156
3156
|
this.logger.warn("Invalid tool arguments", {
|
|
3157
3157
|
tool: request.params.name,
|
|
@@ -3234,7 +3234,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
3234
3234
|
} else {
|
|
3235
3235
|
structuredContent = result;
|
|
3236
3236
|
}
|
|
3237
|
-
const outputValidation = tool.outputSchema.validate?.(structuredContent ?? {});
|
|
3237
|
+
const outputValidation = await tool.outputSchema.validate?.(structuredContent ?? {});
|
|
3238
3238
|
if (outputValidation && !outputValidation.success) {
|
|
3239
3239
|
this.logger.warn("Invalid structured content", {
|
|
3240
3240
|
tool: request.params.name,
|