MCP Server
Works with any MCP-compatible client via stdio transport.
Setup
1Configure your MCP client
Add to your MCP client config (the exact file depends on your tool):
{
"mcpServers": {
"tongateway": {
"command": "npx",
"args": ["-y", "@tongateway/mcp"],
"env": {
"AGENT_GATEWAY_API_URL": "https://api.tongateway.ai"
}
}
}
}
No token needed. The agent authenticates automatically — it generates a link, you open it and connect your wallet once.
2Try it
Ask your agent to "send 1 TON to EQD...abc" and it will use the MCP tools. The server communicates via stdio — no HTTP, no ports.
Available Tools
| Tool | Params | Description |
|---|---|---|
request_transfer |
to, amountNano, payload? |
Queue a TON transfer for owner approval |
get_request_status |
id |
Check if a request was approved, rejected, or pending |
list_pending_requests |
— | List all pending transfer requests |
Amount reference
| TON | nanoTON |
|---|---|
| 0.1 | 100000000 |
| 0.5 | 500000000 |
| 1 | 1000000000 |
| 10 | 10000000000 |
Compatible Clients
The MCP server works with any client that supports the Model Context Protocol:
- Claude Code
- Cursor
- Codex CLI
- Windsurf
- Any MCP-compatible editor or agent
Example
You: Send 0.5 TON to EQD...abc
Agent: I'll request that transfer for you.
[calls request_transfer with to="EQD...abc", amountNano="500000000"]
Transfer request created (ID: abc-123).
Please approve it in your Agent Gateway dashboard.
You: Is it confirmed?
Agent: [calls get_request_status with id="abc-123"]
Yes, the transfer was confirmed and signed by the wallet.