@smartbear/mcp 0.29.0 → 0.30.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.
@@ -112,7 +112,11 @@ class SmartBearMcpServer extends McpServer {
112
112
  title: toolTitle,
113
113
  description: this.getDescription(params),
114
114
  inputSchema: params.inputSchema ? this.schemaToRawShape(params.inputSchema) : {},
115
- outputSchema: this.schemaToRawShape(params.outputSchema),
115
+ // Pass ZodObject-based schemas through as-is (rather than via schemaToRawShape)
116
+ // so that z.looseObject()'s additionalProperties:true is preserved in the JSON
117
+ // schema sent to clients — extracting `.shape` would rebuild a strict object and
118
+ // cause "additional properties" validation errors on real API responses.
119
+ outputSchema: params.outputSchema instanceof ZodObject ? params.outputSchema : this.schemaToRawShape(params.outputSchema),
116
120
  annotations: this.getAnnotations(toolTitle, params)
117
121
  },
118
122
  async (args, extra) => {
@@ -1,4 +1,4 @@
1
- const version = "0.29.0";
1
+ const version = "0.30.0";
2
2
  const config = { "mcpServerName": "SmartBear MCP Server" };
3
3
  const packageJson = {
4
4
  version,