auditor-mcp 0.1.3 → 0.1.4
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 +13 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -366,6 +366,18 @@ server.tool(
|
|
|
366
366
|
isError: true
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
|
+
let mppStellarTxUrl = null;
|
|
370
|
+
try {
|
|
371
|
+
const receiptHeader = response.headers.get("Payment-Receipt");
|
|
372
|
+
if (receiptHeader) {
|
|
373
|
+
const json = Buffer.from(receiptHeader, "base64url").toString("utf8");
|
|
374
|
+
const receipt = JSON.parse(json);
|
|
375
|
+
if (receipt?.reference) {
|
|
376
|
+
mppStellarTxUrl = `https://stellar.expert/explorer/testnet/tx/${receipt.reference}`;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
} catch {
|
|
380
|
+
}
|
|
369
381
|
const rawBody = await response.text();
|
|
370
382
|
if (!response.ok) {
|
|
371
383
|
return {
|
|
@@ -406,7 +418,7 @@ ${rawBody}` }],
|
|
|
406
418
|
file: file_path,
|
|
407
419
|
protocol: "Stripe MPP / Stellar Testnet",
|
|
408
420
|
walletAddress: signer.address,
|
|
409
|
-
stellarTxUrl:
|
|
421
|
+
stellarTxUrl: mppStellarTxUrl,
|
|
410
422
|
model: report?.model,
|
|
411
423
|
summary: summary || "No vulnerabilities found",
|
|
412
424
|
findings
|