verifystack-x402-mcp 0.4.1 → 0.6.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 CHANGED
@@ -32,6 +32,8 @@ No API keys. No subscriptions. Agents pay per request using standard `PAYMENT-RE
32
32
  | `POST` | `/api/contract-intel` | **$0.008** | Smart contract firewall & EIP-1967 proxy inspector via **EVM RPC, Blockscout ABI verification, and Sourcify** (`base`, `ethereum`, `arbitrum`, `optimism`, `polygon`). |
33
33
  | `GET` | `/api/spot-perp-basis` | **$0.008** | Live cross-exchange cash-and-carry **Spot vs Perpetual** basis, executable BBO spread & combined 30d carry APR across **Gate.io, OKX, and Hyperliquid**. |
34
34
  | `GET` | `/api/dex-market-intel` | **$0.006** | Live multi-chain DEX liquidity, 24h volume, price changes & buy/sell order-flow oracle via **DexScreener and GeckoTerminal**. |
35
+ | `POST` | `/api/render-url` | **$0.02** | Headless **Playwright Chromium** JS/SPA renderer with SSRF firewall: returns full rendered Markdown, metadata, optional links, and optional JPEG/PNG screenshot. |
36
+ | `GET` | `/api/alpha-history` | **$0.01** | Continuous **24/7 historical time-series** & high-signal arbitrage alerts across Hyperliquid, dYdX v4, Gate.io, OKX, Polymarket, Kalshi, and Manifold (`?feed=funding&days=7&symbol=BTC`). |
35
37
 
36
38
  ---
37
39
 
@@ -426,6 +426,105 @@ export const TOOLS = [
426
426
  },
427
427
  },
428
428
  },
429
+ {
430
+ name: "verifystack_render_url",
431
+ title: "Headless Chromium JS Web Renderer & Screenshotter",
432
+ annotations: READ_NETWORK_ANNOTATIONS,
433
+ description:
434
+ "Paid x402 API ($0.02 USDC on Base): Renders dynamic JavaScript/SPA/React web pages inside a real headless Chromium browser with SSRF protection, returning clean Markdown, metadata, optional links, and optional JPEG/PNG screenshot.",
435
+ inputSchema: {
436
+ type: "object",
437
+ additionalProperties: false,
438
+ required: ["url"],
439
+ properties: {
440
+ url: {
441
+ type: "string",
442
+ description: "Public http:// or https:// URL to render in Chromium",
443
+ },
444
+ waitUntil: {
445
+ type: "string",
446
+ description: "Navigation readiness event: domcontentloaded, load, or networkidle (default networkidle)",
447
+ },
448
+ waitMs: {
449
+ type: "number",
450
+ description: "Extra settle delay in ms after load for SPA hydration (0-5000, default 500)",
451
+ },
452
+ waitForSelector: {
453
+ type: "string",
454
+ description: "Optional CSS selector to wait for before extracting content",
455
+ },
456
+ maxChars: {
457
+ type: "number",
458
+ description: "Maximum Markdown length returned (200-40000, default 12000)",
459
+ },
460
+ includeLinks: {
461
+ type: "boolean",
462
+ description: "Include extracted outbound links array (default false)",
463
+ },
464
+ includeScreenshot: {
465
+ type: "boolean",
466
+ description: "Capture base64 JPEG or PNG screenshot of rendered page (default false)",
467
+ },
468
+ screenshotFormat: {
469
+ type: "string",
470
+ description: "Screenshot encoding when includeScreenshot is true: jpeg or png (default jpeg)",
471
+ },
472
+ fullPage: {
473
+ type: "boolean",
474
+ description: "Capture full scrollable page screenshot instead of viewport (default false)",
475
+ },
476
+ blockMedia: {
477
+ type: "boolean",
478
+ description: "Block images/fonts/video for faster extraction (defaults true unless includeScreenshot is true)",
479
+ },
480
+ },
481
+ },
482
+ },
483
+ {
484
+ name: "verifystack_alpha_history",
485
+ title: "24/7 Historical Crypto Funding & Prediction Arbitrage Dataset",
486
+ annotations: READ_NETWORK_ANNOTATIONS,
487
+ description:
488
+ "Paid x402 API ($0.01 USDC on Base): Queries VerifyStack's continuous 24/7 Oracle archive across Hyperliquid, dYdX v4, Gate.io, OKX, Polymarket, Kalshi, and Manifold for historical funding spreads, spot-perp basis time-series, prediction divergences, and high-signal alerts.",
489
+ inputSchema: {
490
+ type: "object",
491
+ additionalProperties: false,
492
+ properties: {
493
+ feed: {
494
+ type: "string",
495
+ description: "Archive feed to query: funding, predictions, alerts, or all (default funding)",
496
+ },
497
+ days: {
498
+ type: "number",
499
+ description: "UTC lookback days (1-90, default 7)",
500
+ },
501
+ snapshotLimit: {
502
+ type: "number",
503
+ description: "Number of recent collection cycles or alert rows to inspect (1-500, default 30)",
504
+ },
505
+ maxRows: {
506
+ type: "number",
507
+ description: "Maximum normalized time-series rows returned (1-1000, default 100)",
508
+ },
509
+ symbol: {
510
+ type: "string",
511
+ description: "Optional crypto ticker filter (e.g. BTC, ETH, SOL, HYPE)",
512
+ },
513
+ query: {
514
+ type: "string",
515
+ description: "Optional prediction market question keyword filter (e.g. Fed, Bitcoin)",
516
+ },
517
+ minApr: {
518
+ type: "number",
519
+ description: "Minimum annualized APR percentage filter",
520
+ },
521
+ minPredGapPct: {
522
+ type: "number",
523
+ description: "Minimum prediction probability gap percentage filter",
524
+ },
525
+ },
526
+ },
527
+ },
429
528
  ];
430
529
 
431
530
  let cachedHttpClientPromise = null;
@@ -525,9 +624,26 @@ function buildRequestSpec(toolName, args = {}, baseUrl = DEFAULT_BASE_URL) {
525
624
  init: { method: "GET" },
526
625
  };
527
626
  }
627
+ if (toolName === "verifystack_alpha_history") {
628
+ const params = new URLSearchParams();
629
+ if (args.feed) params.set("feed", String(args.feed));
630
+ if (args.days !== undefined) params.set("days", String(args.days));
631
+ if (args.snapshotLimit !== undefined) params.set("snapshotLimit", String(args.snapshotLimit));
632
+ if (args.maxRows !== undefined) params.set("maxRows", String(args.maxRows));
633
+ if (args.symbol) params.set("symbol", String(args.symbol));
634
+ if (args.query) params.set("query", String(args.query));
635
+ if (args.minApr !== undefined) params.set("minApr", String(args.minApr));
636
+ if (args.minPredGapPct !== undefined) params.set("minPredGapPct", String(args.minPredGapPct));
637
+ const qs = params.toString();
638
+ return {
639
+ url: `${baseUrl}/api/alpha-history${qs ? `?${qs}` : ""}`,
640
+ init: { method: "GET" },
641
+ };
642
+ }
528
643
 
529
644
  const postRoutes = {
530
645
  verifystack_clean_url: "/api/clean-url",
646
+ verifystack_render_url: "/api/render-url",
531
647
  verifystack_contract_intel: "/api/contract-intel",
532
648
  verifystack_decode_tx: "/api/decode-tx",
533
649
  verifystack_domain_intel: "/api/domain-intel",
@@ -633,7 +749,7 @@ export async function handleRpcMessage(msg, deps = {}) {
633
749
  result: {
634
750
  protocolVersion: "2024-11-05",
635
751
  capabilities: { tools: {} },
636
- serverInfo: { name: "verifystack-x402-mcp", version: "0.4.1" },
752
+ serverInfo: { name: "verifystack-x402-mcp", version: "0.6.0" },
637
753
  },
638
754
  };
639
755
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "verifystack-x402-mcp",
3
3
  "mcpName": "io.github.verifystack-dev/verifystack-x402",
4
- "version": "0.4.1",
5
- "description": "MCP server and x402 client for 15 pay-per-request VerifyStack crypto, DeFi, contract audit, DEX flow & web research tools (Base USDC)",
4
+ "version": "0.6.0",
5
+ "description": "MCP server and x402 client for 17 pay-per-request VerifyStack crypto, DeFi, historical arb, contract audit, Chromium rendering & web research tools (Base USDC)",
6
6
  "type": "module",
7
7
  "bin": {
8
8
  "verifystack-mcp": "bin/verifystack-mcp.mjs",