# Tongateway

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add tongateway/agent

# Browse available tools
npx -y @smithery/cli@latest tool list tongateway/agent

# Get full schema for a tool
npx -y @smithery/cli@latest tool get tongateway/agent auth.request

# Call a tool
npx -y @smithery/cli@latest tool call tongateway/agent auth.request '{}'
```

## Direct MCP Connection

Endpoint: `https://tongateway.run.tools`

## Tools (16)

- `auth.request` — Authenticate with TON blockchain. Generates a one-time link for the user to connect their wallet. After the user opens …
- `auth.get_token` — Complete authentication after the user opened the link from auth.request. Returns the token which enables all other too…
- `wallet.info` — Get the connected wallet address, TON balance in nanoTON and human-readable format, and account status (active/uninitia…
- `wallet.jettons` — List all jetton (token) balances in the wallet — USDT, NOT, DOGS, BUILD, and others. Returns symbol, name, balance, and…
- `wallet.transactions` — Get recent transaction history for the connected wallet. Shows timestamps, action types, and scam flags.
- `wallet.nfts` — List all NFTs owned by the connected wallet — name, collection name, and contract address for each.
- `transfer.request` — Request a TON transfer that the wallet owner must approve. Amount is in nanoTON (1 TON = 1000000000). Supports optional…
- `transfer.status` — Check the status of a transfer request. Returns: pending (waiting for approval), confirmed (signed and broadcast), reje…
- `transfer.pending` — List all transfer requests currently waiting for wallet owner approval.
- `lookup.resolve_name` — Resolve a .ton domain name (e.g. "alice.ton") to a raw wallet address. Always use this before transfer.request when the…
- `lookup.price` — Get the current price of TON in USD, EUR, or other fiat currencies. Use to show users the value of their holdings.
- `dex.create_order` — Place a limit order on the open4dev DEX order book. Provide token pair, amount in smallest units, and human-readable pr…
- `dex.pairs` — List all available trading pairs and tokens on the open4dev DEX. Returns supported tokens: TON, NOT, USDT, DOGS, BUILD,…
- `agent_wallet.deploy` — Deploy an Agent Wallet smart contract — a dedicated sub-wallet for autonomous transfers without approval. WARNING: The …
- `agent_wallet.transfer` — Send TON directly from an Agent Wallet — NO approval needed. Signs and broadcasts the transaction immediately. Only wor…
- `agent_wallet.info` — Get info about Agent Wallets — balance, seqno, and agent key status. Pass a wallet address for details, or omit to list…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get tongateway/agent <tool-name>
```

## Resources

- `https://tongateway.ai/docs`
- `https://tongateway.ai/agent-gateway.md`

## Prompts (5)

- `quickstart` — How to get started with Agent Gateway on TON blockchain
- `token-reference` — Amount conversion and token decimals reference
- `example-transfer` — Example: Send TON to a .ton domain with price check
- `example-dex-order` — Example: Place a DEX order to swap tokens
- `example-agent-wallet` — Example: Deploy and use an autonomous Agent Wallet
