"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.callCapability = callCapability;
const tools_1 = require("../../../services/mcp/client/tools");
/**
 * Invoke a single MCP server tool (capability).
 *
 * This is the durable activity that wraps `callServerTool`.
 * Running as a proxied activity gives crash safety — if the
 * container dies mid-call, HotMesh retries on another container.
 */
async function callCapability(input) {
    return (0, tools_1.callServerTool)(input.serverId, input.toolName, input.arguments);
}
