AgentSkillsCN

mcp-client

通过HTTP连接至多个MCP服务器,查询数据、运行工具并获取信息。当您被要求检查平台数据、分析数据,或与外部服务进行交互时,可使用此功能。

SKILL.md
--- frontmatter
name: mcp-client
description: Connect to multiple MCP servers via HTTP to query data, run tools, and get information. Use when asked to check platform data, analytics, or interact with external services.
metadata:
  {
    "openclaw":
      {
        "emoji": "🔌",
        "os": ["linux", "macos"],
        "requires": { "bins": ["python3"] }
      }
  }

MCP Client — Multi-Server Tool Caller

Call tools on any configured MCP server via HTTP. Supports multiple servers — choose the right one based on user's request.

Available MCP Servers

ServerDescriptionWhen to use
keothomKèo Thơm platform dataFinancial data, users, wallets, games, transactions, revenue

More servers can be added by editing /app/skills/mcp-client/servers.json

Quick Usage

List available servers

shell
python3 /app/skills/mcp-client/scripts/mcp_call.py --list-servers

List tools on a server

shell
python3 /app/skills/mcp-client/scripts/mcp_call.py --server keothom --list-tools

Call a tool

shell
python3 /app/skills/mcp-client/scripts/mcp_call.py --server keothom --tool platform_overview

Call a tool with parameters

shell
python3 /app/skills/mcp-client/scripts/mcp_call.py --server keothom --tool search_user --params '{"query": "demo"}'

Call a tool with named args (shorthand)

shell
python3 /app/skills/mcp-client/scripts/mcp_call.py --server keothom --tool get_user_wallet --params '{"display_name": "Tieple"}'

Keothom Server — Available Tools

ToolDescriptionParameters
platform_overviewTổng quan: users, sellers, games, walletsnone
revenue_reportBáo cáo doanh thudays (default: 30)
game_statsThống kê gamesmode (LOTTERY/AUCTION)
search_userTìm userquery (tên/email/ID)
get_user_walletVí & giao dịch useruser_id or display_name
list_walletsDanh sách vílimit, min_balance
list_transactionsGiao dịch gần nhấtdays, limit, type, status
top_sellersTop sellerslimit
frozen_balancesUsers có frozen balancenone
anomaliesBất thường tài chínhseverity (critical/high/medium)
parity_checkKiểm tra toàn vẹn tài chínhnone
execute_sqlChạy SQL trực tiếp (admin)query

Adding a New MCP Server

Edit /app/skills/mcp-client/servers.json:

json
{
  "your_server": {
    "name": "Your Server",
    "url": "https://your-mcp-server.workers.dev",
    "auth_type": "bearer",
    "auth_env": "YOUR_MCP_API_KEY",
    "description": "What this server does"
  }
}

Then set the env var: export YOUR_MCP_API_KEY=xxx

Important Notes

  • MCP servers must support HTTP transport (Streamable HTTP or SSE)
  • Auth tokens are read from environment variables (never hardcoded)
  • Results are printed as formatted JSON
  • Timeout: 30s per request (configurable with --timeout)