@mastra/client-js 1.18.0-alpha.16 → 1.18.0-alpha.18
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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/resources/mcp-tool.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +0 -775
- package/dist/route-types.generated.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -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
|
|
3248
|
+
body
|
|
3251
3249
|
});
|
|
3252
3250
|
}
|
|
3253
3251
|
};
|