Skip to content

feat(mcp): NT200 helpers and XCHG-1 ARC-200 exchange tools#1

Open
temptemp3 wants to merge 3 commits intonextfrom
feature/xchg-1-nt200-mcp-tools
Open

feat(mcp): NT200 helpers and XCHG-1 ARC-200 exchange tools#1
temptemp3 wants to merge 3 commits intonextfrom
feature/xchg-1-nt200-mcp-tools

Conversation

@temptemp3
Copy link
Copy Markdown
Contributor

Summary

Adds MCP tools and lib/arc200.js support for:

  • NT200: nt200_deposit_txn, nt200_withdraw_txn, nt200_create_balance_box_txn
  • XCHG-1 (optional): arc200_exchange (read), arc200_redeem_txn, arc200_swap_back_txn

Updates README, examples/capabilities.json, and examples/demo.mjs. Introduces npm test via test/arc200-xchg.mjs (ABI smoke test).

Test plan

  • npm test
  • node examples/demo.mjs (optional)

Made with Cursor

Register MCP tools for NT200 (deposit, withdraw, createBalanceBox) and
XCHG-1 (arc200_exchange read, arc200_redeem_txn, arc200_swap_back_txn).
Implement builders and simulation paths in lib/arc200.js using arccjs
CONTRACT + ABI, including extra-txn layouts for redeem.

Document optional XCHG-1 flows in README; list new tools in
examples/capabilities.json and extend examples/demo.mjs.

Add npm test script running test/arc200-xchg.mjs (ABI shape smoke test).

Made-with: Cursor
Made-with: Cursor
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.

1 participant