@mastra/client-js 1.18.0-alpha.15 → 1.18.0-alpha.17

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/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { standardSchemaToJSONSchema, toStandardSchema } from '@mastra/schema-com
5
5
  import { RequestContext } from '@mastra/core/request-context';
6
6
  export { RequestContext } from '@mastra/core/request-context';
7
7
  import { zodToJsonSchema as zodToJsonSchema$1 } from '@mastra/schema-compat/zod-to-json';
8
- import { MastraA2AError } from '@mastra/core/a2a';
8
+ import { MastraA2AError } from '@mastra/core/a2a/client';
9
9
  import canonicalize from 'canonicalize';
10
10
  import { base64url, decodeProtectedHeader, compactVerify, importX509, importSPKI, importJWK } from 'jose';
11
11
 
@@ -3242,12 +3242,10 @@ var MCPTool = class extends BaseResource {
3242
3242
  execute(params) {
3243
3243
  const body = {};
3244
3244
  if (params.data !== void 0) body.data = params.data;
3245
- if (params.requestContext !== void 0) {
3246
- body.requestContext = params.requestContext;
3247
- }
3245
+ if (params.requestContext !== void 0) body.requestContext = params.requestContext;
3248
3246
  return this.request(`/mcp/${encodeURIComponent(this.serverId)}/tools/${encodeURIComponent(this.toolId)}/execute`, {
3249
3247
  method: "POST",
3250
- body: Object.keys(body).length > 0 ? body : void 0
3248
+ body
3251
3249
  });
3252
3250
  }
3253
3251
  };