@quackai/q402-mcp 0.5.2 → 0.5.3
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 +16 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1401,26 +1401,30 @@ async function runClearDelegation(input) {
|
|
|
1401
1401
|
hint: `Could not reach Q402 relay at ${url}: ${e instanceof Error ? e.message : String(e)}`
|
|
1402
1402
|
};
|
|
1403
1403
|
}
|
|
1404
|
-
|
|
1405
|
-
|
|
1404
|
+
const payload = json;
|
|
1405
|
+
if (!res.ok || payload.cleared !== true) {
|
|
1406
1406
|
return {
|
|
1407
1407
|
ok: false,
|
|
1408
|
-
address,
|
|
1409
1408
|
chain: input.chain,
|
|
1410
|
-
|
|
1411
|
-
|
|
1409
|
+
address,
|
|
1410
|
+
txHash: payload.txHash,
|
|
1411
|
+
blockNumber: payload.blockNumber,
|
|
1412
|
+
gasUsed: payload.gasUsed,
|
|
1413
|
+
cleared: payload.cleared ?? false,
|
|
1414
|
+
explorerUrl: payload.explorerUrl,
|
|
1415
|
+
error: payload.error ?? `HTTP ${res.status}`,
|
|
1416
|
+
hint: payload.reason ?? "The sponsored TX did not clear the delegation. If a txHash is present, the broadcast confirmed but the EOA's code is still non-empty (commonly a stale nonce) \u2014 refresh and retry."
|
|
1412
1417
|
};
|
|
1413
1418
|
}
|
|
1414
|
-
const ok = json;
|
|
1415
1419
|
return {
|
|
1416
1420
|
ok: true,
|
|
1417
1421
|
chain: input.chain,
|
|
1418
1422
|
address,
|
|
1419
|
-
txHash:
|
|
1420
|
-
blockNumber:
|
|
1421
|
-
gasUsed:
|
|
1422
|
-
cleared:
|
|
1423
|
-
explorerUrl:
|
|
1423
|
+
txHash: payload.txHash,
|
|
1424
|
+
blockNumber: payload.blockNumber,
|
|
1425
|
+
gasUsed: payload.gasUsed,
|
|
1426
|
+
cleared: true,
|
|
1427
|
+
explorerUrl: payload.explorerUrl
|
|
1424
1428
|
};
|
|
1425
1429
|
}
|
|
1426
1430
|
var CLEAR_DELEGATION_TOOL = {
|
|
@@ -1442,7 +1446,7 @@ var CLEAR_DELEGATION_TOOL = {
|
|
|
1442
1446
|
|
|
1443
1447
|
// src/index.ts
|
|
1444
1448
|
var PACKAGE_NAME = "@quackai/q402-mcp";
|
|
1445
|
-
var PACKAGE_VERSION = "0.5.
|
|
1449
|
+
var PACKAGE_VERSION = "0.5.3";
|
|
1446
1450
|
function jsonText(value) {
|
|
1447
1451
|
return { type: "text", text: JSON.stringify(value, null, 2) };
|
|
1448
1452
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quackai/q402-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "MCP server for Q402 — gasless USDC, USDT, and RLUSD payments across 9 EVM chains, callable from Claude (Desktop / Code), OpenAI Codex CLI, and any other Model Context Protocol client.",
|
|
5
5
|
"mcpName": "io.github.bitgett/q402-mcp",
|
|
6
6
|
"keywords": [
|