@wrongstack/mcp 0.317.0 → 0.317.2

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 (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3569,13 +3569,14 @@ function wrapMCPTool(serverName, mcpTool, client, permission = "confirm", observ
3569
3569
  mutating: isMutatingTool(mcpTool),
3570
3570
  capabilities: [ToolCapabilities.MCP_PROXY],
3571
3571
  inputSchema: mcpTool.inputSchema ?? { type: "object", properties: {} },
3572
- async execute(input, _ctx, opts) {
3572
+ async execute(input, ctx, opts) {
3573
3573
  const startedAt = Date.now();
3574
3574
  observer?.onStart();
3575
3575
  let ok = false;
3576
3576
  try {
3577
3577
  const live = typeof client === "function" ? await client() : client;
3578
- const res = await live.callTool(mcpTool.name, input, { signal: opts.signal });
3578
+ const signal = opts?.signal ?? ctx?.signal;
3579
+ const res = await live.callTool(mcpTool.name, input, signal ? { signal } : void 0);
3579
3580
  if (res.isError) {
3580
3581
  throw new Error(stringify(res.content));
3581
3582
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/mcp",
3
- "version": "0.317.0",
3
+ "version": "0.317.2",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack Model Context Protocol client and registry: stdio, SSE, and streamable HTTP transports.",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "!dist/**/*.map"
27
27
  ],
28
28
  "dependencies": {
29
- "@wrongstack/core": "0.317.0"
29
+ "@wrongstack/core": "0.317.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^26.2.0",