Skip to content

feat: prepare Recharge Server for x402 1.0.1 - #10

Merged
Will-Guan merged 13 commits into
mainfrom
codex/adapt-x402-1-0-1-beta-4
Jul 21, 2026
Merged

feat: prepare Recharge Server for x402 1.0.1#10
Will-Guan merged 13 commits into
mainfrom
codex/adapt-x402-1-0-1-beta-4

Conversation

@boboliu-1010

@boboliu-1010 boboliu-1010 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • migrate Recharge MCP payment handling to released x402 SDK 1.0.1 packages
  • support canonical TRON CAIP-2 networks, exact Permit2, GasFree, and BSC Permit2
  • keep the canonical TRON mainnet ID even when facilitator discovery is unavailable
  • use production payment recipients and facilitator routing
  • return standard HTTP 402 challenges for MCP recharge tool calls
  • use a valid /mcp resource URL consistently during challenge and settlement
  • harden facilitator timeouts, settlement validation, recharge lookup, and error reporting

Release

  • service version: 2.0.0
  • x402 SDK dependencies: 1.0.1
  • latest validated dev image: v2.0.0-dev.22

Validation

  • npm run typecheck
  • npm test (8/8)
  • npm run build
  • npm audit --omit=dev --audit-level=high (0 vulnerabilities)
  • local Node 22 production Docker build
  • live MCP HTTP 402 and current CLI compatibility dry-run
  • two TRON mainnet GasFree recharge transactions settled successfully in QA

Notes

  • the service version remains 2.0.0; 1.0.1 is the x402 SDK release line
  • real-payment retries require transaction reconciliation when delivery status is uncertain

@boboliu-1010
boboliu-1010 requested a review from Will-Guan July 21, 2026 05:33
@Will-Guan
Will-Guan merged commit 210a532 into main Jul 21, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants