io.github.h1-hunt/mintclub

编码与调试

by steemhunt

通过 Mint Club V2 在 Base 上交易 bonding curve 代币,支持买入、卖出、兑换与创建。

什么是 io.github.h1-hunt/mintclub

通过 Mint Club V2 在 Base 上交易 bonding curve 代币,支持买入、卖出、兑换与创建。

README

<p align="center"> <img src="https://mint.club/logo.png" alt="Mint Club" width="80" /> </p> <h1 align="center">Mint Club V2 — AI Tools</h1> <p align="center"> Trade, create, and manage <a href="https://github.com/Steemhunt/mint.club-v2-contract#design-choices-">bonding curve tokens</a> across supported Uniswap chains — from the terminal, AI assistants, or autonomous agents. </p> <p align="center"> <a href="https://www.npmjs.com/package/@mint.club/v2-cli"><img src="https://badgen.net/npm/v/@mint.club/v2-cli?label=CLI&color=0ea5e9" alt="CLI npm" /></a> <a href="https://www.npmjs.com/package/@mint.club/v2-cli"><img src="https://badgen.net/npm/dm/@mint.club/v2-cli?label=downloads&color=14b8a6" alt="CLI downloads" /></a> <a href="https://packagephobia.com/result?p=%40mint.club%2Fv2-cli"><img src="https://badgen.net/packagephobia/install/@mint.club/v2-cli?color=8b5cf6" alt="CLI install size" /></a> <br /> <a href="https://www.npmjs.com/package/@mint.club/v2-mcp"><img src="https://badgen.net/npm/v/@mint.club/v2-mcp?label=MCP&color=0ea5e9" alt="MCP npm" /></a> <a href="https://www.npmjs.com/package/@mint.club/v2-mcp"><img src="https://badgen.net/npm/dm/@mint.club/v2-mcp?label=downloads&color=14b8a6" alt="MCP downloads" /></a> <a href="https://packagephobia.com/result?p=%40mint.club%2Fv2-mcp"><img src="https://badgen.net/packagephobia/install/@mint.club/v2-mcp?color=8b5cf6" alt="MCP install size" /></a> <br /> <a href="https://www.npmjs.com/package/@mint.club/v2-eliza-plugin"><img src="https://badgen.net/npm/v/@mint.club/v2-eliza-plugin?label=Eliza&color=0ea5e9" alt="Eliza plugin npm" /></a> <a href="https://www.npmjs.com/package/@mint.club/v2-eliza-plugin"><img src="https://badgen.net/npm/dm/@mint.club/v2-eliza-plugin?label=downloads&color=14b8a6" alt="Eliza plugin downloads" /></a> <br /> <a href="https://github.com/Steemhunt/mint.club-v2-ai"><img src="https://badgen.net/github/stars/Steemhunt/mint.club-v2-ai?icon=github&label=stars&color=3b82f6" alt="GitHub stars" /></a> <a href="https://opensource.org/licenses/MIT"><img src="https://badgen.net/badge/license/MIT/3b82f6" alt="MIT" /></a> </p>

Protocol-native Mint Club V2 tooling for humans and agents. Reads and direct Bond operations use the configured Mint Club contracts; routed trades use local RPC quotes and MCV2_ZapV2.

Tooling

PackagePurpose
@mint.club/v2-cliDirect CLI for Bond, bounded local Uniswap routing, ZapV2, token creation, transfers, prices, and balances
@mint.club/v2-mcpMCP tools backed by the CLI
@mint.club/v2-eliza-pluginElizaOS actions backed by the CLI
SKILL.mdAgent instructions for using mc safely

All three adapters consume the published chain-registry.json from @mint.club/v2-cli. The registry is the shared source for chain keys, aliases, IDs, and capability flags; the CLI validates it against its full contract/token/RPC configuration at startup.

For application development, use the separate @mint.club/v2-sdk package and SDK documentation.

Package migration

Version 2.0 consolidates the public packages under the @mint.club npm organization:

Previous package2.0 package
mint.club-v2-sdk@mint.club/v2-sdk
mint.club-cli@mint.club/v2-cli
mintclub-mcp@mint.club/v2-mcp

The scoped names supersede the legacy SDK, CLI, and MCP package names. Existing users should migrate their install and configuration commands; package binaries remain mc and mintclub-mcp. @mint.club/v2-eliza-plugin is new—the earlier @elizaos/plugin-mintclub name was never published.

Quick start

bash
npm install -g @mint.club/v2-cli
mc wallet --generate

mc --chain base info SIGNET
mc --chain arbitrum price 0xTOKEN
mc --chain robinhood wallet

The CLI and MCP server require Node.js 18 or later. The ElizaOS plugin and repository development require Node.js 22.13 or later. Generate a dedicated wallet with limited funds, or provide PRIVATE_KEY through a trusted secret manager; never paste a key into an agent conversation.

Financial writes are fail-closed: CLI writes require --yes (while create keeps its interactive prompt), MCP write tools require explicit chain/assets plus confirm: true and must remain behind the host's destructive-tool approval, and Eliza writes require one affirmative original-user Confirm: statement with exactly one explicit chain and all effective limits, slippage, assets, and royalties.

Protocol operations

OperationContract path
Buy with the configured reserve ERC-20MCV2_Bond.mint
Sell for the configured reserve ERC-20MCV2_Bond.burn
Buy from a routed native/ERC-20 assetlocal Uniswap quote + MCV2_ZapV2.zapMint
Sell into a routed native/ERC-20 assetMCV2_ZapV2.zapBurn + local Uniswap quote
Create an ERC-20 bonding curve tokenMCV2_Bond.createToken

Example ZapV2 syntax:

bash
mc --chain arbitrum zap-buy 0xMINT_CLUB_TOKEN \
  --input-token USDT \
  --input-amount 10 \
  --slippage 1 \
  --yes

mc --chain unichain zap-sell 0xMINT_CLUB_TOKEN \
  --amount 100 \
  --output-token USDC \
  --slippage 1 \
  --yes

Both ERC-20 and ERC-1155 Mint Club tokens can be direct Bond or Zap targets. Routed input and output assets must be native currency or ERC-20 tokens. ZapV2 is deployed on every supported chain listed below. Blast is intentionally unsupported because it is outside the official Uniswap deployment set used by this integration.

Local routing model

Routing does not call the Uniswap Trading API, Smart Order Router, Mint Club route services, or any API-key quote service. It uses chain RPC calls only:

  1. Enumerate direct paths and paths with one configured wrapped-native or stablecoin intermediary.
  2. Quote homogeneous Uniswap V2, V3, and V4 candidates where configured for the selected chain.
  3. Isolate expected missing-pool reverts while surfacing transport failures.
  4. Choose the highest exact-input output with deterministic tie-breaking.
  5. Encode only the selected path with @uniswap/universal-router-sdk.

The encoder uses Universal Router V2.0 commands with router-balance payment (payerIsUser = false) and the ZapV2 contract as recipient. It rejects Permit2 ingress commands and settles any unused routed input directly back to the caller.

Deliberate limits: no split routes, mixed-protocol paths, arbitrary-length graph search, dynamic-fee V4 pools, or hooked V4 pools. V4 discovery checks only canonical hookless fee/tick-spacing pairs. This repository does not expose a general-purpose swap command.

MCP tools

The MCP server exposes nine tools:

token_info · token_price · wallet_balance · buy_token · sell_token · zap_buy · zap_sell · send_token · create_token

Read tools accept an optional canonical chain key and default to Base. Write tools require an explicit chain. See the MCP reference for schemas and safe client configuration.

Architecture

text
AI agent / user
      │
      ├── mc CLI
      ├── MCP server ────── argv ──┐
      ├── ElizaOS plugin ── argv ──┤
      └── Agent skill ─────────────┤
                                   ▼
                          @mint.club/v2-cli
                                   │
                  ┌────────────────┼─────────────────┐
                  ▼                ▼                 ▼
             MCV2_Bond        local RPC quotes   DefiLlama API
            mint/burn/create   V2 / V3 / V4       USD pricing
                                   │
                                   ▼
                        Universal Router encoding
                                   │
                                   ▼
                              MCV2_ZapV2

MCP and Eliza invoke the CLI with argument arrays rather than shell-interpolated commands.

Supported chains

ChainCLI keyChain ID
Ethereumethereum1
Optimismoptimism10
Arbitrum Onearbitrum42161
Avalanche C-Chainavalanche43114
Basebase8453
Polygon PoSpolygon137
BNB Smart Chainbsc56
Zorazora7777777
Unichainunichain130
Robinhood Chainrobinhood4663
Sepoliasepolia11155111
Base Sepoliabase-sepolia84532

See the CLI reference for command options, routing details, and contract configuration.

Development

The three publishable packages share one npm workspace lockfile:

bash
npm ci
npm run check
npm test
npm run test:integration
npm run test:fork
npm run build
npm run audit:production
npm run audit:full
npm run test:release

Repository development requires Node.js 22.13 or later. CI separately verifies the published CLI and MCP runtime paths on Node.js 18. The default tests are deterministic and offline. test:integration performs read-only deployment and immutable checks across all supported networks plus live route quotes where a stable intermediary is configured. test:fork runs write flows against a pinned local Base fork and requires Anvil.

For releases, update all three package versions, the CLI dependency ranges, and mcp/server.json, then commit and push the changes to main. After the main CI run passes, use the repository release command:

bash
npm run release

The command requires authenticated npm and git sessions. It runs the release gates, publishes the CLI first, waits for npm availability, publishes MCP and ElizaOS, verifies that every package records the current commit as its gitHead, and pushes the matching vX.Y.Z tag. The tag-triggered GitHub workflow then creates the GitHub Release automatically. Already-published packages from the same commit are skipped safely, so a partially completed npm release can be resumed. If npm publishing and the tag push succeed but the GitHub workflow fails, rerun that workflow from GitHub Actions.

License

MIT. Published packages include the project LICENSE; bundled CLI and MCP dependencies are covered by generated THIRD_PARTY_NOTICES.md files. The CLI build keeps only the ABIs from imported Uniswap contract artifacts and excludes their bytecode. See SECURITY.md for the dependency audit policy.

常见问题

io.github.h1-hunt/mintclub 是什么?

通过 Mint Club V2 在 Base 上交易 bonding curve 代币,支持买入、卖出、兑换与创建。

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描171.4k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描171.4k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描171.4k

相关 MCP Server

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
89.7k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
60.2k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
49.9k

评论