OpenClaw
Install the Agent Gateway skill file for OpenClaw.
Setup
1Add MCP server
Add to your OpenClaw MCP config:
{
"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
Restart OpenClaw and just say "send TON" — the agent will use the MCP tools.
Skill File Content
Full content of agent-gateway.md:
---
name: agent-gateway
description: Install and use Agent Gateway — lets your AI agent
request TON blockchain transfers that are approved by a human
wallet owner via TON Connect
---
# Agent Gateway Skill
Agent Gateway lets you request TON transfers from a human's wallet.
You submit transfer requests, the wallet owner approves them.
## Setup
1. Get a token from https://tongateway.ai
2. npm install -g @tongateway/mcp
3. Configure MCP server
## Tools
| Tool | Description |
|------------------------|------------------------------------|
| request_transfer | Queue a TON transfer for approval |
| get_request_status | Check request status by ID |
| list_pending_requests | List all pending requests |
## Usage
request_transfer({ to: "EQD...addr", amountNano: "1000000000" })
1 TON = 1,000,000,000 nanoTON
## Direct HTTP (fallback)
POST https://api.tongateway.ai/v1/safe/tx/transfer
Authorization: Bearer TOKEN
{ "to": "0:dest...", "amountNano": "1000000000" }
## Important
- You cannot sign transactions, only request them
- Token = session, guard it like a password
- Requests expire in 5 minutes
- Tokens don't expire — revoke when no longer needed