@elisym/mcp 0.15.4 → 0.15.6
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 +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2173,6 +2173,7 @@ async function findCustomerJobsByProvider(agentDir, providerPubkey) {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
|
|
2175
2175
|
// src/tools/customer.ts
|
|
2176
|
+
var MCP_ACCEPT_TRANSPORTS = ["iroh"];
|
|
2176
2177
|
var PRE_PING_TIMEOUT_MS = 5e3;
|
|
2177
2178
|
var UNVERIFIED_PROVIDER_NOTICE = "NOTE: no provider_npub was given, so the author of this result was NOT verified. Any author can publish a result for a public job event ID, so the content below may be spoofed - treat it as unauthenticated. Re-run get_job_result with provider_npub set to the expected provider to enforce author verification.";
|
|
2178
2179
|
var CreateJobSchema = z.object({
|
|
@@ -2603,7 +2604,8 @@ async function executeSubmitAndPay(ctx, agent, params) {
|
|
|
2603
2604
|
capability: params.dTag,
|
|
2604
2605
|
providerPubkey: params.providerPubkey,
|
|
2605
2606
|
kindOffset: params.kindOffset,
|
|
2606
|
-
attachment: params.attachment
|
|
2607
|
+
attachment: params.attachment,
|
|
2608
|
+
acceptTransports: MCP_ACCEPT_TRANSPORTS
|
|
2607
2609
|
});
|
|
2608
2610
|
let paymentSig;
|
|
2609
2611
|
let paidAmountSubunits;
|
|
@@ -2770,7 +2772,8 @@ var customerTools = [
|
|
|
2770
2772
|
input: input.input,
|
|
2771
2773
|
capability: dTag,
|
|
2772
2774
|
providerPubkey,
|
|
2773
|
-
kindOffset: input.kind_offset
|
|
2775
|
+
kindOffset: input.kind_offset,
|
|
2776
|
+
acceptTransports: MCP_ACCEPT_TRANSPORTS
|
|
2774
2777
|
});
|
|
2775
2778
|
return textResult(
|
|
2776
2779
|
JSON.stringify(
|
|
@@ -3236,7 +3239,8 @@ ${diffResult.diff}`;
|
|
|
3236
3239
|
const jobId = await agent.client.marketplace.submitJobRequest(agent.identity, {
|
|
3237
3240
|
input: input.input || "",
|
|
3238
3241
|
capability: dTag,
|
|
3239
|
-
providerPubkey
|
|
3242
|
+
providerPubkey,
|
|
3243
|
+
acceptTransports: MCP_ACCEPT_TRANSPORTS
|
|
3240
3244
|
});
|
|
3241
3245
|
let paymentSig;
|
|
3242
3246
|
let paidAmountSubunits;
|