ton-connect/kit/ton-cli
Claude Code and agent skill by ton-connect/kit
- community
Checking that the SKILL.md file is still in the repository.
Call TON MCP tools directly from the command line. Use when you want to query wallet info, check balances, send transactions, or run any TON wallet tool without starting an MCP server session. Works via `npx @ton/mcp@alpha <tool_name> [--arg value ...]`.
Install
npx vskill@latest install ton-connect/kit/ton-cliSKILL.md
TON MCP Raw CLI Mode
Run any TON wallet MCP tool directly from the command line. The binary invokes the tool, prints the JSON result to stdout, and exits.
Invocation Modes
| Command | Description | |
|---|---|---|
npx @ton/mcp@alpha | stdio MCP server (for Claude Desktop / MCP clients) | |
npx @ton/mcp@alpha --http [port] | HTTP MCP server | |
npx @ton/mcp@alpha <tool_name> [--arg value ...] | Raw CLI: call one tool and exit |
Use exactly one mode for a given workflow: either MCP server mode (stdio/--http) or raw CLI. Do not combine them in the same task/session.
Raw CLI Usage
Arguments are passed as --key value pairs. Objects/arrays ({...} / [...]) are JSON-parsed; everything else is kept as a plain string.
Output
All tools print JSON to stdout. Errors are printed to stderr and the process exits with code 1.
Environment Variables
The CLI respects the same environment variables as the server:
| Variable | Description | |
|---|---|---|
NETWORK | mainnet (default) or testnet | |
MNEMONIC | 24-word mnemonic for single-wallet mode | |
PRIVATE_KEY | Hex-encoded private key (alternative to mnemonic) | |
WALLET_VERSION | v5r1 (default), v4r2, or agentic | |
TONCENTER_API_KEY | Optional Toncenter API key | |
TON_CONFIG_PATH | Path to config file (default: ~/.config/ton/config.json) |
Without MNEMONIC or PRIVATE_KEY, the CLI uses the local config registry at ~/.config/ton/config.json (registry mode). In registry mode, wallet-scoped tools accept an optional --walletSelector to target a specific wallet by id, name, or address.
Tool Reference
Wallet & Balance
| Tool | Required args | Optional args | |
|---|---|---|---|
get_wallet | — | --walletSelector | |
get_balance | — | --walletSelector | |
get_balance_by_address | --address | --walletSelector | |
get_jetton_balance | --jettonAddress | --walletSelector | |
get_jettons | — | --walletSelector | |
get_jettons_by_address | --address | --limit, --offset, --walletSelector | |
get_jetton_info | --jettonAddress | --walletSelector | |
get_transactions | — | --limit, --walletSelector | |
get_transaction_status | --normalizedHash | --walletSelector | |
get_known_jettons | — | — |
Wallet Registry (config-registry mode only)
| Tool | Required args | Optional args | |
|---|---|---|---|
list_wallets | — | — | |
get_current_wallet | — | — | |
set_active_wallet | --walletSelector | — | |
remove_wallet | --walletSelector | — |
Transfers
| Tool | Required args | Optional args | |
|---|---|---|---|
build_ton_transfer | --toAddress, --amount | --comment, --walletSelector | |
build_jetton_transfer | --toAddress, --jettonAddress, --amount | --comment, --walletSelector | |
build_nft_transfer | --nftAddress, --toAddress | --comment, --walletSelector | |
send_raw_transaction | --messages | --validUntil, --fromAddress, --walletSelector | |
emulate_transaction | --messages | --validUntil, --walletSelector |
build_ton_transfer/build_jetton_transfer/build_nft_transfer only build a transaction (return transaction.messages plus transaction.fromAddress); they do not broadcast. Preview with emulate_transaction, then broadcast with send_raw_transaction --messages ... --fromAddress ....
Swaps
| Tool | Required args | Optional args | |
|---|---|---|---|
get_swap_quote | --fromToken, --toToken, --amount | --slippageBps, --walletSelector |
NFTs
| Tool | Required args | Optional args | |
|---|---|---|---|
get_nfts | — | --limit, --offset, --walletSelector | |
get_nfts_by_address | --address | --limit, --offset, --walletSelector | |
get_nft | --nftAddress | --walletSelector |
DNS
| Tool | Required args | Optional args | |
|---|---|---|---|
resolve_dns | --domain | --walletSelector | |
back_resolve_dns | --address | --walletSelector |
Authentication
| Tool | Required args | Optional args | |
|---|---|---|---|
generate_ton_proof | --domain, --payload | --walletSelector |
Example Session
Notes
build_ton_transfer/build_jetton_transfer/build_nft_transferbuild a transaction only;send_raw_transactionis the tool that signs and broadcasts the preparedtransaction.messages(passtransaction.fromAddresstoo — jetton/NFT messages are bound to the wallet they were built for)- Use
emulate_transactionto preview expected balance changes before broadcasting (fake signature) - Use
generate_ton_proofonly with the exact domain and payload supplied by the user or verifying service; do not alter the payload before signing generate_ton_proofrequires signing access even though it does not broadcast a transactionbuild_ton_transfer/build_jetton_transfer/build_nft_transferandemulate_transactiondo not sign or broadcast — run them freely. Confirm with the user only beforesend_raw_transaction(the broadcast), after previewing withemulate_transaction;- For confirmations and small option sets, prefer the host client's structured confirmation/choice UI when available; otherwise use a short natural-language yes/no prompt and never require an exact magic word;
- After sending, poll
get_transaction_status --normalizedHash <hash>until status iscompletedorfailed(unless the user asks to skip). - In registry mode the active wallet from
~/.config/ton/config.jsonis used by default.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/mcp/skills/ton-cli/SKILL.md
Popularity
- Repository stars
- 51
- Repository forks
- 24
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ton-connect/kit/ton-cli)