@quackai/q402-mcp 0.3.6 → 0.3.8
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/README.md +2 -2
- package/dist/index.js +11 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/@quackai/q402-mcp)
|
|
6
6
|
[](./LICENSE)
|
|
7
7
|
|
|
8
|
-
> **🎟️ Free trial available (2026-05-
|
|
8
|
+
> **🎟️ Free trial available (2026-05-19 → 2026-06-30)** — 2,000 gasless transactions on BNB Chain (USDC + USDT), 30-day window, no card. One wallet signature: <https://q402.quackai.ai>.
|
|
9
9
|
>
|
|
10
|
-
> **
|
|
10
|
+
> **Trial-scope policy:** API keys minted under the free-trial program (`plan: "trial"`) are restricted to BNB Chain with USDC/USDT — server-side enforcement, returns `403 TRIAL_BNB_ONLY` otherwise. **Paid API keys see the full 7-chain matrix at all times.**
|
|
11
11
|
|
|
12
12
|
Claude can now reason about stablecoin payments end to end — quote a transfer across 7 chains, pick the cheapest route, and (optionally) settle the transaction over [Q402](https://q402.quackai.ai)'s EIP-7702 relayer infrastructure. The recipient receives the full amount; the sender pays $0 in gas.
|
|
13
13
|
|
package/dist/index.js
CHANGED
|
@@ -298,12 +298,6 @@ var TRANSFER_AUTH_TYPES = {
|
|
|
298
298
|
{ name: "deadline", type: "uint256" }
|
|
299
299
|
]
|
|
300
300
|
};
|
|
301
|
-
var AUTHORIZATION_TYPES = {
|
|
302
|
-
Authorization: [
|
|
303
|
-
{ name: "address", type: "address" },
|
|
304
|
-
{ name: "nonce", type: "uint256" }
|
|
305
|
-
]
|
|
306
|
-
};
|
|
307
301
|
function toRawAmount(amount, decimals) {
|
|
308
302
|
if (typeof amount !== "string" || amount.trim() === "") {
|
|
309
303
|
throw new Error('amount must be a non-empty decimal string (e.g. "5.00")');
|
|
@@ -325,16 +319,19 @@ function toRawAmount(amount, decimals) {
|
|
|
325
319
|
return raw.toString();
|
|
326
320
|
}
|
|
327
321
|
async function signAuthorization(wallet, args) {
|
|
328
|
-
const
|
|
329
|
-
|
|
322
|
+
const auth = await wallet.authorize({
|
|
323
|
+
chainId: args.chainId,
|
|
330
324
|
address: args.address,
|
|
331
325
|
nonce: args.nonce
|
|
332
326
|
});
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
327
|
+
return {
|
|
328
|
+
chainId: Number(auth.chainId),
|
|
329
|
+
address: auth.address,
|
|
330
|
+
nonce: Number(auth.nonce),
|
|
331
|
+
yParity: auth.signature.yParity,
|
|
332
|
+
r: auth.signature.r,
|
|
333
|
+
s: auth.signature.s
|
|
334
|
+
};
|
|
338
335
|
}
|
|
339
336
|
var Q402NodeClient = class _Q402NodeClient {
|
|
340
337
|
opts;
|
|
@@ -776,7 +773,7 @@ var RECEIPT_TOOL = {
|
|
|
776
773
|
|
|
777
774
|
// src/index.ts
|
|
778
775
|
var PACKAGE_NAME = "@quackai/q402-mcp";
|
|
779
|
-
var PACKAGE_VERSION = "0.3.
|
|
776
|
+
var PACKAGE_VERSION = "0.3.8";
|
|
780
777
|
function jsonText(value) {
|
|
781
778
|
return { type: "text", text: JSON.stringify(value, null, 2) };
|
|
782
779
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quackai/q402-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "MCP server for Q402 — gasless USDC, USDT, and RLUSD payments across 7 EVM chains, callable directly from Claude Desktop and any other Model Context Protocol client.",
|
|
5
5
|
"mcpName": "io.github.bitgett/q402-mcp",
|
|
6
6
|
"keywords": [
|