
tronrental
io.github.tronrental-com/tronrental
Rent TRON energy and bandwidth so USDT transfers cost less TRX: quotes, orders, balance.
Documentation
TronRental for agents and the command line
TronRental.com rents TRON energy and bandwidth so that USDT (TRC-20) transfers cost a fraction of the TRX they would burn. This repository holds the tools that reach it from outside the website:
| Package | What it is |
|---|---|
@tronrental-com/cli | tronrental — the command line: sign in, quote, buy, check orders, withdraw |
@tronrental-com/mcp-server | stdio MCP bridge for agents whose client speaks only stdio |
Both talk to the TronRental remote MCP server, https://mcp.tronrental.com/mcp. Its tool catalog comes from the server on every connection: neither package keeps a copy of it.
Which one do I need?
-
An agent whose client supports remote MCP (Claude, ChatGPT, Claude Code, Codex, Cursor): connect it to
https://mcp.tronrental.com/mcpdirectly. You sign in with TronRental in the browser and choose what the agent may do; there is no key to copy.claude mcp add --transport http tronrental https://mcp.tronrental.com/mcp -
A terminal, a script or CI: the CLI.
npm install -g @tronrental-com/cli tronrental login tronrental quote --amount 65000 -
An agent client that speaks only stdio: the bridge, with an API key.
claude mcp add tronrental -e TRONRENTAL_API_KEY=your_key -- npx -y @tronrental-com/mcp-server@2.0.0
Claude Code plugin
This repository is also a Claude Code plugin marketplace. The tronrental plugin connects the remote MCP server and adds task skills: buying energy for a USDT transfer, keeping bandwidth on an address, energy auto-refill, Smart Mode for a hot wallet, transfer packages, invoices, a broadcaster node and Energy Resale.
claude plugin marketplace add tronrentalcom/tronrental-com-mcp
claude plugin install tronrental@tronrental
Then /mcp → tronrental → Authenticate, and sign in with TronRental. The plugin's files: .claude-plugin/, .mcp.json, skills/. Tool names in the skills follow the server's catalog: when a tool is renamed there, update the skills too.
Development
npm ci
npm run typecheck
npm run build
npm test
Node 20 or newer. Every pull request runs the same steps in CI.
Publishing
A version on npm can never be published again, so publish only from a fresh clone of main:
git clone https://github.com/tronrentalcom/tronrental-com-mcp.git && cd tronrental-com-mcp
# or, in an existing clone: git checkout main && git pull
npm ci
Look at each tarball before uploading it:
npm pack --dry-run --workspace packages/mcp-server
npm pack --dry-run --workspace packages/cli
In the output check:
nameandversion— the package and the version you mean to publish (@tronrental-com/mcp-server2.x,@tronrental-com/cli1.x);- the file list —
README.md,package.jsonanddist/*.jsonly; the bin is there (dist/index.jsfor the bridge,dist/main.jsfor the CLI); nosrc/, no*.test.js, no.env; total files— 6 for the bridge, 9 for the CLI as of 2.0.0 / 1.0.0; a much smaller number means an empty or staledist.
Then publish:
npm publish --workspace packages/mcp-server --access public
npm publish --workspace packages/cli --access public
npm publish first runs the guard scripts/prepublish.mjs (prepublishOnly), and stops before uploading if any check fails:
- the checkout is a clean
mainequal toorigin/main; distis deleted and built again, and the tests pass;- the built CLI's
--versionand the bridge'sserverInfo.versionequalversionin package.json, andserver.jsonnames that version for the package (its ownversionmay be higher); - the tarball holds the bin files and no compiled tests.
After the bridge is on npm, publish server.json to the MCP Registry with mcp-publisher publish.
A registry entry can never change. To update only the registry metadata (title, icons, links) without a new npm release, raise the server's version in server.json (e.g. 2.0.0 → 2.0.1) and keep packages[].version at the published npm version. The next npm release then needs a version above the server's.
Links
License
MIT
@tronrental-com/mcp-servernpm install @tronrental-com/mcp-server