@quackai/q402-mcp 0.3.12 → 0.3.14
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 +4 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,6 +93,10 @@ The server has no client-specific code. If your client speaks stdio MCP, point i
|
|
|
93
93
|
|
|
94
94
|
---
|
|
95
95
|
|
|
96
|
+
> **🚧 Sprint window (BNB-focus, 2026-05-19 → 2026-06-30)** — `0.3.13` ships with the default `Q402_RELAY_BASE_URL` pointing at the sprint preview deploy. That's the deploy currently issuing trial keys and where the matching subscription records live. Once the sprint branch is merged into `main` and `q402.quackai.ai` serves the sprint code, the default will flip back to the canonical site in `0.4.0`. Set `Q402_RELAY_BASE_URL` explicitly in env if you want to override.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
96
100
|
## Tools exposed
|
|
97
101
|
|
|
98
102
|
| Tool | Auth | Purpose |
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/config.ts
|
|
12
12
|
import { isAddress } from "ethers";
|
|
13
|
-
var DEFAULT_RELAY_BASE = "https://q402.
|
|
13
|
+
var DEFAULT_RELAY_BASE = "https://q402-institutional-git-feat-bnb-f-e317ee-bitgett-7677s-projects.vercel.app/api";
|
|
14
14
|
var DEFAULT_MAX_AMOUNT = 5;
|
|
15
15
|
function classifyApiKey(k) {
|
|
16
16
|
if (!k) return "missing";
|
|
@@ -240,7 +240,7 @@ function runQuote(input) {
|
|
|
240
240
|
}
|
|
241
241
|
var QUOTE_TOOL = {
|
|
242
242
|
name: "q402_quote",
|
|
243
|
-
description: "Compare gas costs and supported tokens
|
|
243
|
+
description: "Compare gas costs and supported tokens across the 7 chains Q402 relays for (avax, bnb, eth, xlayer, stable, mantle, injective). Trial-tier API keys see BNB-only quotes (q402_pay enforces the same scope server-side); paid-tier keys see the full matrix including RLUSD on Ethereum and Injective USDT-only. Read-only \u2014 no API key needed, no funds move. Use this before q402_pay so the user sees what's currently routable on their tier.",
|
|
244
244
|
// Plain JSON schema mirroring the Zod schema above; MCP servers receive parameters as JSON.
|
|
245
245
|
inputSchema: {
|
|
246
246
|
type: "object",
|
|
@@ -684,7 +684,7 @@ function describeSandboxReason() {
|
|
|
684
684
|
}
|
|
685
685
|
var PAY_TOOL = {
|
|
686
686
|
name: "q402_pay",
|
|
687
|
-
description:
|
|
687
|
+
description: `Send a gasless USDC, USDT, or RLUSD payment via Q402. Scope depends on the API key tier: trial keys (q402_live_* with plan='trial') are restricted to chain: "bnb" + token "USDC" or "USDT" (server returns TRIAL_BNB_ONLY for anything else). Paid keys can relay across the full 7-chain matrix \u2014 avax, bnb, eth, xlayer, stable, mantle, injective \u2014 with USDC/USDT supported on most chains, RLUSD on Ethereum only, and Injective USDT-only. SANDBOX BY DEFAULT \u2014 no funds move unless Q402_API_KEY (live tier), Q402_PRIVATE_KEY, and Q402_ENABLE_REAL_PAYMENTS=1 are all set. The recipient receives the full amount; the sender pays $0 in gas. ALWAYS get explicit user confirmation of the exact recipient address, amount, chain, and token in conversation immediately before calling this tool.`,
|
|
688
688
|
inputSchema: {
|
|
689
689
|
type: "object",
|
|
690
690
|
properties: {
|
|
@@ -1104,7 +1104,7 @@ var RECEIPT_TOOL = {
|
|
|
1104
1104
|
|
|
1105
1105
|
// src/index.ts
|
|
1106
1106
|
var PACKAGE_NAME = "@quackai/q402-mcp";
|
|
1107
|
-
var PACKAGE_VERSION = "0.3.
|
|
1107
|
+
var PACKAGE_VERSION = "0.3.14";
|
|
1108
1108
|
function jsonText(value) {
|
|
1109
1109
|
return { type: "text", text: JSON.stringify(value, null, 2) };
|
|
1110
1110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quackai/q402-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"description": "MCP server for Q402 — gasless USDC, USDT, and RLUSD payments across 7 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": [
|