verifystack-x402-mcp 0.1.2 → 0.3.0
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/bin/verifystack-mcp.mjs +110 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -19,6 +19,10 @@ No API keys. No subscriptions. Agents pay per request using standard `PAYMENT-RE
|
|
|
19
19
|
| :--- | :--- | :--- | :--- |
|
|
20
20
|
| `GET` | `/api/live-funding-arb` | **$0.01** | Live cross-exchange perp funding arbitrage across **Hyperliquid, dYdX v4, and Gate.io** normalized to hourly spreads & gross APR (20s cache). Query: `?symbol=BTC&limit=15&minApr=10` |
|
|
21
21
|
| `GET` | `/api/prediction-markets` | **$0.008** | Live prediction market scanner & cross-venue arbitrage finder across **Polymarket, Kalshi, and Manifold Markets** (30s cache). Query: `?q=bitcoin&platform=all&minLiquidity=1000&limit=20` |
|
|
22
|
+
| `GET` | `/api/defi-yields` | **$0.005** | Live DeFi yield & stablecoin APY scanner powered by **DefiLlama**: filters by chain/symbol/TVL & scores organic Base APY vs reward emissions (60s cache). |
|
|
23
|
+
| `POST` | `/api/decode-tx` | **$0.005** | EVM transaction decoder & calldata firewall resolving selectors via **OpenChain + EVM RPC** and flagging unlimited ERC-20/NFT approvals. |
|
|
24
|
+
| `POST` | `/api/domain-intel` | **$0.004** | Domain anti-phishing & trust profiler using **Cloudflare DoH** (`A/MX/SPF/DMARC`), **RDAP** domain age, and HTTPS security headers (60s cache). |
|
|
25
|
+
| `GET` | `/api/web-research` | **$0.004** | Universal tech, news & academic search across **HackerNews, GitHub, arXiv, and Wikipedia** with zero API keys (60s cache). Query: `?q=x402&sources=all&limit=5` |
|
|
22
26
|
| `POST` | `/api/clean-url` | **$0.005** | Web-to-LLM Markdown & metadata extractor: strips ads, scripts, and navigation boilerplate, returning compact Markdown + token estimate (60s cache). |
|
|
23
27
|
| `POST` | `/api/wallet-profile` | **$0.008** | Multichain EVM wallet counterparty & gas profiler across **Base, Ethereum, Arbitrum, Optimism, and Polygon** (native/USDC balances, EOA vs contract, nonce activity, live gas fees; 20s cache). |
|
|
24
28
|
| `POST` | `/api/token-safety` | **$0.008** | Pre-trade token security & liquidity risk audit combining **GoPlus Security**, **Honeypot.is**, and **DexScreener** (`base`, `ethereum`, `arbitrum`, `bsc`, `polygon`, `solana`). |
|
package/bin/verifystack-mcp.mjs
CHANGED
|
@@ -53,6 +53,86 @@ export const TOOLS = [
|
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
|
+
{
|
|
57
|
+
name: "verifystack_defi_yields",
|
|
58
|
+
description:
|
|
59
|
+
"Paid x402 API ($0.005 USDC on Base): Live DeFi yield & stablecoin APY scanner powered by DefiLlama; filters by chain, symbol, TVL, and separates organic Base APY from reward emissions.",
|
|
60
|
+
inputSchema: {
|
|
61
|
+
type: "object",
|
|
62
|
+
properties: {
|
|
63
|
+
chain: {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "Comma-separated chain filter (e.g. Base, Arbitrum, Ethereum, Solana)",
|
|
66
|
+
},
|
|
67
|
+
symbol: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Asset symbol substring filter (e.g. USDC, ETH)",
|
|
70
|
+
},
|
|
71
|
+
project: {
|
|
72
|
+
type: "string",
|
|
73
|
+
description: "Protocol slug filter (e.g. aave-v3, morpho-v1)",
|
|
74
|
+
},
|
|
75
|
+
stablecoin: { type: "boolean", description: "Only stablecoin pools" },
|
|
76
|
+
singleAsset: { type: "boolean", description: "Only single-asset no-IL pools" },
|
|
77
|
+
minTvl: { type: "number", description: "Minimum TVL in USD (default 100000)" },
|
|
78
|
+
minApy: { type: "number", description: "Minimum total APY %" },
|
|
79
|
+
limit: { type: "number", description: "Max pools returned (1-100, default 20)" },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "verifystack_decode_tx",
|
|
85
|
+
description:
|
|
86
|
+
"Paid x402 API ($0.005 USDC on Base): EVM calldata & live transaction decoder via OpenChain + EVM RPC; flags unlimited ERC-20/NFT approvals before signing.",
|
|
87
|
+
inputSchema: {
|
|
88
|
+
type: "object",
|
|
89
|
+
properties: {
|
|
90
|
+
data: { type: "string", description: "Raw 0x hex calldata to decode" },
|
|
91
|
+
to: { type: "string", description: "Optional target contract address" },
|
|
92
|
+
valueWei: { type: "string", description: "Optional native value in wei" },
|
|
93
|
+
txHash: { type: "string", description: "Optional live 0x tx hash to fetch and decode" },
|
|
94
|
+
chain: {
|
|
95
|
+
type: "string",
|
|
96
|
+
enum: ["base", "ethereum", "arbitrum", "optimism", "polygon"],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "verifystack_domain_intel",
|
|
103
|
+
description:
|
|
104
|
+
"Paid x402 API ($0.004 USDC on Base): Domain anti-phishing & trust profiler via Cloudflare DoH (A/MX/SPF/DMARC), RDAP registration age, and HTTPS security headers.",
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: "object",
|
|
107
|
+
required: ["domainOrUrl"],
|
|
108
|
+
properties: {
|
|
109
|
+
domainOrUrl: {
|
|
110
|
+
type: "string",
|
|
111
|
+
description: "Public domain or URL to inspect (e.g. https://app.uniswap.org)",
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "verifystack_web_research",
|
|
118
|
+
description:
|
|
119
|
+
"Paid x402 API ($0.004 USDC on Base): Universal multi-source research & news search across HackerNews, GitHub Repositories, arXiv papers, and Wikipedia with zero API keys (60s cache).",
|
|
120
|
+
inputSchema: {
|
|
121
|
+
type: "object",
|
|
122
|
+
required: ["q"],
|
|
123
|
+
properties: {
|
|
124
|
+
q: { type: "string", description: "Search query (2-200 characters)" },
|
|
125
|
+
sources: {
|
|
126
|
+
type: "string",
|
|
127
|
+
description: "Comma-separated: hackernews, github, arxiv, wikipedia, or all",
|
|
128
|
+
},
|
|
129
|
+
limit: {
|
|
130
|
+
type: "number",
|
|
131
|
+
description: "Max items per source (1-15, default 5)",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
56
136
|
{
|
|
57
137
|
name: "verifystack_clean_url",
|
|
58
138
|
description:
|
|
@@ -235,9 +315,38 @@ function buildRequestSpec(toolName, args = {}, baseUrl = DEFAULT_BASE_URL) {
|
|
|
235
315
|
init: { method: "GET" },
|
|
236
316
|
};
|
|
237
317
|
}
|
|
318
|
+
if (toolName === "verifystack_defi_yields") {
|
|
319
|
+
const params = new URLSearchParams();
|
|
320
|
+
if (args.chain) params.set("chain", String(args.chain));
|
|
321
|
+
if (args.symbol) params.set("symbol", String(args.symbol));
|
|
322
|
+
if (args.project) params.set("project", String(args.project));
|
|
323
|
+
if (args.stablecoin !== undefined) params.set("stablecoin", String(args.stablecoin));
|
|
324
|
+
if (args.singleAsset !== undefined) params.set("singleAsset", String(args.singleAsset));
|
|
325
|
+
if (args.minTvl !== undefined) params.set("minTvl", String(args.minTvl));
|
|
326
|
+
if (args.minApy !== undefined) params.set("minApy", String(args.minApy));
|
|
327
|
+
if (args.limit !== undefined) params.set("limit", String(args.limit));
|
|
328
|
+
const qs = params.toString();
|
|
329
|
+
return {
|
|
330
|
+
url: `${baseUrl}/api/defi-yields${qs ? `?${qs}` : ""}`,
|
|
331
|
+
init: { method: "GET" },
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
if (toolName === "verifystack_web_research") {
|
|
335
|
+
const params = new URLSearchParams();
|
|
336
|
+
if (args.q) params.set("q", String(args.q));
|
|
337
|
+
if (args.sources) params.set("sources", String(args.sources));
|
|
338
|
+
if (args.limit !== undefined) params.set("limit", String(args.limit));
|
|
339
|
+
const qs = params.toString();
|
|
340
|
+
return {
|
|
341
|
+
url: `${baseUrl}/api/web-research${qs ? `?${qs}` : ""}`,
|
|
342
|
+
init: { method: "GET" },
|
|
343
|
+
};
|
|
344
|
+
}
|
|
238
345
|
|
|
239
346
|
const postRoutes = {
|
|
240
347
|
verifystack_clean_url: "/api/clean-url",
|
|
348
|
+
verifystack_decode_tx: "/api/decode-tx",
|
|
349
|
+
verifystack_domain_intel: "/api/domain-intel",
|
|
241
350
|
verifystack_wallet_profile: "/api/wallet-profile",
|
|
242
351
|
verifystack_token_safety: "/api/token-safety",
|
|
243
352
|
verifystack_verify_signature: "/api/verify-signature",
|
|
@@ -340,7 +449,7 @@ export async function handleRpcMessage(msg, deps = {}) {
|
|
|
340
449
|
result: {
|
|
341
450
|
protocolVersion: "2024-11-05",
|
|
342
451
|
capabilities: { tools: {} },
|
|
343
|
-
serverInfo: { name: "verifystack-x402-mcp", version: "0.
|
|
452
|
+
serverInfo: { name: "verifystack-x402-mcp", version: "0.3.0" },
|
|
344
453
|
},
|
|
345
454
|
};
|
|
346
455
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verifystack-x402-mcp",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"mcpName": "io.github.verifystack-dev/verifystack-x402",
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"description": "MCP server and x402 client for VerifyStack DeFi Yields, Tx Decoder, Prediction Markets, Domain Intel, Web-to-Markdown & Wallet Oracle (Base USDC)",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"bin": {
|
|
7
8
|
"verifystack-mcp": "bin/verifystack-mcp.mjs",
|
|
@@ -36,11 +37,14 @@
|
|
|
36
37
|
"base",
|
|
37
38
|
"usdc",
|
|
38
39
|
"funding-rate",
|
|
40
|
+
"defi-yields",
|
|
39
41
|
"prediction-markets",
|
|
40
42
|
"polymarket",
|
|
41
43
|
"kalshi",
|
|
42
44
|
"arbitrage",
|
|
43
45
|
"token-security",
|
|
46
|
+
"calldata-decoder",
|
|
47
|
+
"domain-intel",
|
|
44
48
|
"wallet-profiler",
|
|
45
49
|
"gas-oracle",
|
|
46
50
|
"erc1271",
|