@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.
Files changed (35) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/_types/hono/dist/types/client/client.d.ts +4 -0
  3. package/dist/_types/hono/dist/types/client/fetch-result-please.d.ts +35 -0
  4. package/dist/_types/hono/dist/types/client/index.d.ts +7 -0
  5. package/dist/_types/hono/dist/types/client/types.d.ts +229 -0
  6. package/dist/_types/hono/dist/types/client/utils.d.ts +18 -0
  7. package/dist/_types/hono/dist/types/context.d.ts +455 -0
  8. package/dist/_types/hono/dist/types/helper/streaming/index.d.ts +8 -0
  9. package/dist/_types/hono/dist/types/helper/streaming/sse.d.ts +13 -0
  10. package/dist/_types/hono/dist/types/helper/streaming/stream.d.ts +3 -0
  11. package/dist/_types/hono/dist/types/helper/streaming/text.d.ts +3 -0
  12. package/dist/_types/hono/dist/types/hono-base.d.ts +220 -0
  13. package/dist/_types/hono/dist/types/hono.d.ts +19 -0
  14. package/dist/_types/hono/dist/types/index.d.ts +36 -0
  15. package/dist/_types/hono/dist/types/request/constants.d.ts +1 -0
  16. package/dist/_types/hono/dist/types/request.d.ts +311 -0
  17. package/dist/_types/hono/dist/types/router.d.ts +97 -0
  18. package/dist/_types/hono/dist/types/types.d.ts +573 -0
  19. package/dist/_types/hono/dist/types/utils/body.d.ts +79 -0
  20. package/dist/_types/hono/dist/types/utils/headers.d.ts +8 -0
  21. package/dist/_types/hono/dist/types/utils/http-status.d.ts +32 -0
  22. package/dist/_types/hono/dist/types/utils/mime.d.ts +70 -0
  23. package/dist/_types/hono/dist/types/utils/stream.d.ts +31 -0
  24. package/dist/_types/hono/dist/types/utils/types.d.ts +74 -0
  25. package/dist/_types/hono-mcp-server-sse-transport/build/index.d.ts +1 -0
  26. package/dist/_types/hono-mcp-server-sse-transport/build/sse.d.ts +25 -0
  27. package/dist/docs/SKILL.md +1 -1
  28. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  29. package/dist/docs/references/docs-mcp-mcp-apps.md +3 -3
  30. package/dist/index.cjs +2 -2
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.js +2 -2
  33. package/dist/index.js.map +1 -1
  34. package/dist/server/server.d.ts +2 -2
  35. 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,