@quackai/q402-mcp 0.8.36 → 0.8.37

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -6
  2. 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
  // package.json
212
212
  var package_default = {
213
213
  name: "@quackai/q402-mcp",
214
- version: "0.8.36",
214
+ version: "0.8.37",
215
215
  description: "MCP server for Q402 \u2014 gasless USDC/USDT/RLUSD payments on 10 EVM chains + Chainlink CCIP USDC bridge on the eth/avax/arbitrum triangle, callable from Claude (Desktop / Code), OpenAI Codex CLI, and any other Model Context Protocol client.",
216
216
  mcpName: "io.github.bitgett/q402-mcp",
217
217
  keywords: [
@@ -508,7 +508,7 @@ var QuoteInputSchema = z.object({
508
508
  token: z.enum(["USDC", "USDT", "RLUSD"]).optional().describe(
509
509
  'Optional token filter. USDC / USDT are supported on most chains; RLUSD (Ripple USD, NY DFS regulated, decimals 18) is Ethereum-only \u2014 passing RLUSD here narrows the quote to chain="eth".'
510
510
  ),
511
- chain: z.enum(["avax", "bnb", "eth", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum"]).optional().describe(
511
+ chain: z.enum(["avax", "bnb", "eth", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum", "base"]).optional().describe(
512
512
  "Optional chain filter. When omitted, all 11 chains are compared and ranked by gas cost."
513
513
  )
514
514
  });
@@ -596,6 +596,7 @@ var DEFAULT_RPC = {
596
596
  988: "https://rpc.stable.xyz",
597
597
  1776: "https://sentry.evm-rpc.injective.network/",
598
598
  5e3: "https://rpc.mantle.xyz",
599
+ 8453: "https://mainnet.base.org",
599
600
  42161: "https://arb1.arbitrum.io/rpc",
600
601
  43114: "https://api.avax.network/ext/bc/C/rpc",
601
602
  534352: "https://rpc.scroll.io"
@@ -972,7 +973,7 @@ function checkConsent(intent, provided) {
972
973
 
973
974
  // src/tools/pay.ts
974
975
  var PayInputSchema = z2.object({
975
- chain: z2.enum(["avax", "bnb", "eth", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum"]),
976
+ chain: z2.enum(["avax", "bnb", "eth", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum", "base"]),
976
977
  to: z2.string().refine(isAddress2, "to must be a valid 0x-prefixed EVM address").describe("Recipient EVM address (0x + 40 hex)."),
977
978
  amount: z2.string().regex(/^\d+(\.\d+)?$/, "amount must be a positive decimal string").describe('Human-readable decimal amount, e.g. "5.00".'),
978
979
  token: z2.enum(["USDC", "USDT", "RLUSD"]).describe(
@@ -2309,12 +2310,13 @@ var DEFAULT_RPC2 = {
2309
2310
  988: "https://rpc.stable.xyz",
2310
2311
  1776: "https://sentry.evm-rpc.injective.network/",
2311
2312
  5e3: "https://rpc.mantle.xyz",
2313
+ 8453: "https://mainnet.base.org",
2312
2314
  42161: "https://arb1.arbitrum.io/rpc",
2313
2315
  43114: "https://api.avax.network/ext/bc/C/rpc",
2314
2316
  534352: "https://rpc.scroll.io"
2315
2317
  };
2316
2318
  var ClearDelegationInputSchema = z7.object({
2317
- chain: z7.enum(["avax", "bnb", "eth", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum"]).describe("Which Q402 chain to clear the delegation on.")
2319
+ chain: z7.enum(["avax", "bnb", "eth", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum", "base"]).describe("Which Q402 chain to clear the delegation on.")
2318
2320
  });
2319
2321
  async function runClearDelegation(input) {
2320
2322
  if (!CONFIG.privateKey) {
@@ -4815,7 +4817,7 @@ var AMOUNT_RE2 = /^\d+(\.\d{1,18})?$/;
4815
4817
  var RequestCreateInputSchema = z25.object({
4816
4818
  amount: z25.string().regex(AMOUNT_RE2).describe('Amount to request, as a decimal string (e.g. "5", "1.50"). Counted in `token` (USDC or USDT, both USD-1).'),
4817
4819
  token: z25.enum(["USDC", "USDT"]).default("USDT").describe("Stablecoin to be paid. USDC or USDT. Both peg USD-1."),
4818
- chain: z25.enum(["bnb", "eth", "avax", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum"]).default("bnb").describe("Chain the request settles on. Defaults to bnb."),
4820
+ chain: z25.enum(["bnb", "eth", "avax", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum", "base"]).default("bnb").describe("Chain the request settles on. Defaults to bnb."),
4819
4821
  recipient: z25.string().regex(ADDRESS_RE2).optional().describe("0x address that receives the funds. Defaults to Q402_AGENT_WALLET_ADDRESS (the agent bills itself) when omitted."),
4820
4822
  memo: z25.string().max(200).optional().describe("Optional note shown to the payer (\u2264200 chars), e.g. an invoice number or service description."),
4821
4823
  ttlDays: z25.number().int().min(1).max(90).optional().describe("Days until the request expires. Defaults to 7 (max 90).")
@@ -4904,7 +4906,7 @@ var REQUEST_CREATE_TOOL = {
4904
4906
  },
4905
4907
  chain: {
4906
4908
  type: "string",
4907
- enum: ["bnb", "eth", "avax", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum"],
4909
+ enum: ["bnb", "eth", "avax", "xlayer", "stable", "mantle", "injective", "monad", "scroll", "arbitrum", "base"],
4908
4910
  description: "Default 'bnb'. Chain the request settles on."
4909
4911
  },
4910
4912
  recipient: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quackai/q402-mcp",
3
- "version": "0.8.36",
3
+ "version": "0.8.37",
4
4
  "description": "MCP server for Q402 — gasless USDC/USDT/RLUSD payments on 10 EVM chains + Chainlink CCIP USDC bridge on the eth/avax/arbitrum triangle, 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": [