mcpField
R
recharge-skill

recharge-skill

github.com/bofaiOther163133 installsUpdated 6d ago
Repository

About recharge-skill

A skill for managing BANK OF AI account queries locally and sending recharge requests through a remote MCP endpoint. It keeps the account API key in the local agent layer rather than the server.

Key features

  1. 01Query point balance locally
  2. 02List account orders
  3. 03Recharge through remote MCP
  4. 04Configure API access locally

Use cases

  1. 01Check a BANK OF AI balance
  2. 02Review past account orders
  3. 03Recharge a supported TRC20 token

MCP support

Recharge requests use the remote MCP endpoint https://recharge.bankofai.io/mcp and its `recharge` tool. Balance and order queries are made directly to BANK OF AI by local scripts.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bofai/skills --skill recharge-skill

After installing, type/recharge-skillin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.gitignore
bankofai-config.example.json
README.md
scripts/
check_balance.js
check_orders.js
scripts/lib/
bankofai_config.js

Details

From the project README

Recharge Skill

This skill owns the local BANK OF AI account query layer and the remote BANK OF AI recharge flow. The server must not store the user's account API key.

When To Use

Use this skill for requests such as:

  • recharge 1 usdt
  • recharge my BANK OF AI account with 1 usdt
  • Chinese requests such as 给 BANK OF AI 充值 1 USDT
  • Chinese requests such as 通过 https://recharge.bankofai.io/mcp 给 BANK OF AI 充值 1 usdt
  • check my BANK OF AI balance
  • list my BANK OF AI orders

Scope

  • The BANK OF AI API key is managed by the local agent / skill.
  • Balance and order queries should call BANK OF AI directly from local scripts.
  • Recharge and payment flows should use the remote MCP endpoint https://recharge.bankofai.io/mcp.
  • Use the MCP tool recharge for all supported recharge routes such as USDT.
  • Do not use native TRX recharge flows from this skill.
  • If the requested token is not a supported TRC20 token, return the server validation error to the user.

Recharge Flow

For a request like recharge 1 usdt, use the remote MCP endpoint directly and call:

  • recharge(amount="1", token="USDT")

Return the settlement status, transaction hash, token, and amount to the user after the MCP call completes.

Local Configuration

This skill is configured for BANK OF AI production.

Resolution order:

  1. CLI arguments
  2. Environment variables
  3. bankofai-config.json
  4. ~/.bankofai/config.json
  5. ~/.mcporter/bankofai-config.json

See bankofai-config.example.json for an example.

Supported fields:

  • api_key
  • base_url
  • timeout_ms

Recommended production value:

  • base_url = https://chat.ainft.com

Available Scripts

  • node scripts/check_balance.js --format json
    • Query the user's point balance with api_key
  • node scripts/check_orders.js --format json
    • Query order.listOrders

Comments

Markdown supported