auditor-mcp 0.1.3 → 0.1.5

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 +17 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -310,7 +310,8 @@ ${rawBody}` }],
310
310
  stellarTxUrl,
311
311
  model: report?.model,
312
312
  summary: summary || "No vulnerabilities found",
313
- findings
313
+ findings,
314
+ reasoning: report?.reasoning ?? null
314
315
  },
315
316
  null,
316
317
  2
@@ -366,6 +367,18 @@ server.tool(
366
367
  isError: true
367
368
  };
368
369
  }
370
+ let mppStellarTxUrl = null;
371
+ try {
372
+ const receiptHeader = response.headers.get("Payment-Receipt");
373
+ if (receiptHeader) {
374
+ const json = Buffer.from(receiptHeader, "base64url").toString("utf8");
375
+ const receipt = JSON.parse(json);
376
+ if (receipt?.reference) {
377
+ mppStellarTxUrl = `https://stellar.expert/explorer/testnet/tx/${receipt.reference}`;
378
+ }
379
+ }
380
+ } catch {
381
+ }
369
382
  const rawBody = await response.text();
370
383
  if (!response.ok) {
371
384
  return {
@@ -406,10 +419,11 @@ ${rawBody}` }],
406
419
  file: file_path,
407
420
  protocol: "Stripe MPP / Stellar Testnet",
408
421
  walletAddress: signer.address,
409
- stellarTxUrl: report?.stellarTxUrl ?? null,
422
+ stellarTxUrl: mppStellarTxUrl,
410
423
  model: report?.model,
411
424
  summary: summary || "No vulnerabilities found",
412
- findings
425
+ findings,
426
+ reasoning: report?.reasoning ?? null
413
427
  },
414
428
  null,
415
429
  2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auditor-mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "MCP server that audits Soroban smart contracts via autonomous x402 / Stripe MPP payments on Stellar Testnet",
6
6
  "keywords": [