@quackai/q402-mcp 0.7.3 → 0.7.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 +8 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -211,7 +211,7 @@ var isValidPrivateKey = (s) => typeof s === "string" && PRIVATE_KEY_RE.test(s);
|
|
|
211
211
|
|
|
212
212
|
// src/version.ts
|
|
213
213
|
var PACKAGE_NAME = "@quackai/q402-mcp";
|
|
214
|
-
var PACKAGE_VERSION = "0.7.
|
|
214
|
+
var PACKAGE_VERSION = "0.7.4";
|
|
215
215
|
|
|
216
216
|
// src/tools/quote.ts
|
|
217
217
|
import { z } from "zod";
|
|
@@ -2708,12 +2708,14 @@ async function runAgenticInfo(input = {}) {
|
|
|
2708
2708
|
asOf: null,
|
|
2709
2709
|
erc8004AgentId: null,
|
|
2710
2710
|
scan8004Url: null,
|
|
2711
|
+
reputation: null,
|
|
2711
2712
|
dashboardUrl,
|
|
2712
2713
|
setupHint: "No live Q402 API key configured. Run q402_doctor to set one up, or open your dashboard to create an Agent Wallet."
|
|
2713
2714
|
};
|
|
2714
2715
|
}
|
|
2715
2716
|
let wallet = null;
|
|
2716
2717
|
let balance = null;
|
|
2718
|
+
let reputation = null;
|
|
2717
2719
|
let fetchError = null;
|
|
2718
2720
|
try {
|
|
2719
2721
|
const res = await fetch(`${base}/wallet/agentic/info-by-key`, {
|
|
@@ -2728,6 +2730,7 @@ async function runAgenticInfo(input = {}) {
|
|
|
2728
2730
|
const data = await res.json();
|
|
2729
2731
|
wallet = data.wallet ?? null;
|
|
2730
2732
|
balance = data.balance ?? null;
|
|
2733
|
+
reputation = data.reputation ?? null;
|
|
2731
2734
|
} else if (res.status === 404) {
|
|
2732
2735
|
fetchError = "endpoint_not_deployed";
|
|
2733
2736
|
} else if (res.status === 410) {
|
|
@@ -2749,6 +2752,7 @@ async function runAgenticInfo(input = {}) {
|
|
|
2749
2752
|
asOf: null,
|
|
2750
2753
|
erc8004AgentId: null,
|
|
2751
2754
|
scan8004Url: null,
|
|
2755
|
+
reputation: null,
|
|
2752
2756
|
dashboardUrl,
|
|
2753
2757
|
setupHint: fetchError === "endpoint_not_deployed" ? "Agent Wallet info-by-key endpoint is not live yet. Open the dashboard to view your wallet directly." : fetchError === "wallet_archived" ? "The requested wallet is archived. Restore it from the dashboard before reading." : explicitWalletId ? `Could not fetch Agent Wallet ${explicitWalletId} for this apiKey. Verify the walletId is one of this owner's wallets, or omit it to read the default wallet.` : "Could not fetch Agent Wallet for this apiKey. Verify the key is bound to a wallet via the dashboard, then retry."
|
|
2754
2758
|
};
|
|
@@ -2767,6 +2771,7 @@ async function runAgenticInfo(input = {}) {
|
|
|
2767
2771
|
asOf: balance ? new Date(balance.asOf).toISOString() : null,
|
|
2768
2772
|
erc8004AgentId: wallet.erc8004AgentId,
|
|
2769
2773
|
scan8004Url: scan8004UrlFor(wallet.erc8004AgentId),
|
|
2774
|
+
reputation,
|
|
2770
2775
|
dashboardUrl,
|
|
2771
2776
|
setupHint: wallet.deletedAt ? "This Agent Wallet is archived and pending hard-delete. Restore it from the dashboard before sending." : void 0
|
|
2772
2777
|
};
|
|
@@ -3491,8 +3496,8 @@ async function main() {
|
|
|
3491
3496
|
return { content: [jsonText(await runClearDelegation(parsed))] };
|
|
3492
3497
|
}
|
|
3493
3498
|
case "q402_agentic_info": {
|
|
3494
|
-
AgenticInfoInputSchema.parse(args ?? {});
|
|
3495
|
-
return { content: [jsonText(await runAgenticInfo())] };
|
|
3499
|
+
const parsed = AgenticInfoInputSchema.parse(args ?? {});
|
|
3500
|
+
return { content: [jsonText(await runAgenticInfo(parsed))] };
|
|
3496
3501
|
}
|
|
3497
3502
|
case "q402_recurring_list": {
|
|
3498
3503
|
const parsed = RecurringListInputSchema.parse(args ?? {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quackai/q402-mcp",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
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": [
|