@quackai/q402-mcp 0.3.5 → 0.3.7
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 +12 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -163,7 +163,7 @@ var CHAIN_CONFIG = {
|
|
|
163
163
|
note: "USDT only until Circle CCTP native USDC ships (announced for Q2 2026)."
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
var BNB_FOCUS_MODE =
|
|
166
|
+
var BNB_FOCUS_MODE = false;
|
|
167
167
|
var BNB_FOCUS_REJECTION_MESSAGE = 'BNB-focus sprint: this chain/token is temporarily hidden. Full multi-chain support returns after the sprint window. Pass chain: "bnb" with token "USDC" or "USDT".';
|
|
168
168
|
if (BNB_FOCUS_MODE) {
|
|
169
169
|
for (const key of CHAIN_KEYS) {
|
|
@@ -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.7";
|
|
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.7",
|
|
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": [
|