Tronsave Mcp Server

Created By
Tronsavea month ago
TronSave MCP server focused on helping agents and clients buy and sell TRON resource quickly through one unified interface, with fast order execution, pricing/estimation tools, and secure session-based workflows.
Overview

version: 1.0.1

updatedAt: 2026-05-08T09:55:00+07:00


TronSave MCP Server Quickstart

Introduction

mcp-tronsave-streamable is a production-oriented MCP server for the TronSave ecosystem. It exposes TronSave business operations as MCP tools over Streamable HTTP transport, with Redis-backed sessions and strong TypeScript + Zod contracts.

Core capabilities:

  • Streamable MCP endpoint at /mcp (POST, DELETE; GET is intentionally disabled)
  • Dual authentication model (ApiKey and Signature) with different permission scopes
  • Redis-backed MCP/auth sessions
  • Typed GraphQL and REST integrations
  • Strict input/output schemas for all tools

Mission & Tool Categories

Mission Name

TronSave Unified Resource Operations

The server's mission is to provide one MCP interface for platform and internal TronSave operations (authentication, account data, order lifecycle, pricing/estimation, and delegate extension workflows).

Tool Categories (High-Level)

CategoryToolRequires LoginShort Description
Platform Authentication & Identitytronsave_get_sign_messageNoOptional helper: returns { message, timestamp } for clients that want a server-provided sign payload.
Platform Authentication & Identitytronsave_loginNoCreates a server session using apiKey or signature_timestamp.
Platform Authentication & Identitytronsave_get_user_infoYes (Signature Session)Retrieves authenticated user profile and linked internal account information.
Platform Authentication & Identitytronsave_get_user_permissionsYes (Signature Session)Returns enabled permission operations for current user.
Platform Authentication & Identitytronsave_get_user_auto_settingYes (Signature Session)Reads current auto-sell/automation settings.
Platform Market, Orders & Resource Actionstronsave_estimate_buy_resourceNoEstimates quote-like buy parameters before creating an order.
Platform Market, Orders & Resource Actionstronsave_get_user_seller_energy_statsYes (Signature Session)Returns seller-side energy/statistics snapshot.
Platform Market, Orders & Resource Actionstronsave_get_orderYes (Signature Session)Fetches one order detail by id.
Platform Market, Orders & Resource Actionstronsave_list_ordersNo*Lists orders with paging/filtering (onlyMyOrder requires signature session).
Platform Market, Orders & Resource Actionstronsave_list_order_booksNoReturns public market order-book buckets.
Platform Market, Orders & Resource Actionstronsave_get_min_priceNoReturns minimum estimated unit price for selected params.
Platform Market, Orders & Resource Actionstronsave_list_extendable_delegatesNoLists extendable delegate candidates for planning/discovery.
Platform Market, Orders & Resource Actionstronsave_create_orderYes (Signature Session at backend)Creates a new market order (onchain / internal only).
Platform Market, Orders & Resource Actionstronsave_sell_order_manualYes (Signature Session at backend)Executes manual seller-side order fulfillment with signed tx.
Platform Market, Orders & Resource Actionstronsave_cancel_orderYes (Signature Session at backend)Cancels an open order.
Platform Market, Orders & Resource Actionstronsave_update_orderYes (Signature Session at backend)Updates editable fields on an open order.
Platform Automation & Key Managementtronsave_register_auto_sellYes (Signature Session)Creates initial auto-sell configuration.
Platform Automation & Key Managementtronsave_update_auto_sell_settingYes (Signature Session)Updates existing auto-sell configuration.
Platform Automation & Key Managementtronsave_generate_api_keyYes (Signature Session)Generates a new internal API key credential.
Platform Automation & Key Managementtronsave_revoke_api_keyYes (Signature Session)Revokes current internal API key.
Platform Automation & Key Managementtronsave_delete_auto_buy_settingYes (Signature Session)Deletes one auto-buy rule by id.
Internal Operationstronsave_get_internal_accountYes (Session)Gets internal account/balance details for the current session.
Internal Operationstronsave_get_deposit_addressYes (Session)Returns deposit address for internal funding workflow.
Internal Operationstronsave_internal_create_extend_requestYes (Session)Submits POST /v2/extend-request; requires REST extendData shape.

Note: "Requires Login = Yes" is not enough to determine access for platform tools. Check session type requirements below.

Authentication Session Matrix (Important)

tronsave_login can create two session types:

  • ApiKey session (tronsave_login with apiKey)
    • Intended for internal operations.
    • Works for: tronsave_get_internal_account, tronsave_get_deposit_address, tronsave_internal_create_extend_request.
    • Does not satisfy tools that explicitly require "Signature Session".
  • Signature session (tronsave_login with signature_timestamp)
    • Required for user-identity tools and most platform mutations.
    • Works for tools marked "Yes (Signature Session)" in this document.
    • Includes wallet-bound identity and permission context used by backend checks.

Security implication:

  • If a session token (mcp-session-id) leaks, an attacker can act with the same effective rights until TTL expiry.
  • Impact depends on session type:
    • leaked ApiKey session => internal-account scoped actions.
    • leaked Signature session => wallet-bound platform actions allowed by backend permissions.
  • Treat both session IDs and upstream credentials as secrets.

Connection Guide by Framework

Before connecting from any framework:

  1. Run the server (npm run dev or npm start).
  2. Ensure Redis is running and env vars are configured.
  3. Use one MCP URL:
    • Mainnet: https://mcp.tronsave.io/mcp
    • Testnet: https://mcp.tronsave.io/testnet/mcp

A) OpenClaw

Use an HTTP MCP server entry that points to /mcp:

{
  "mcpServers": {
    "tronsave-streamable": {
      "url": "https://mcp.tronsave.io/mcp",
    }
  }
}

Recommended auth flow:

  • ApiKey flow: call tronsave_login with apiKey (raw key), then reuse returned mcp-session-id.
  • Signature flow: call tronsave_login with signature_timestamp directly.
    Optional helper: call tronsave_get_sign_message first if your client wants a server-provided signable payload.

B) Claude Desktop

Configure Claude Desktop to use the same Streamable MCP endpoint:

{
  "mcpServers": {
    "tronsave-streamable": {
      "url": "https://mcp.tronsave.io/mcp",
    }
  }
}

Operational notes:

  • Keep mcp-session-id consistent after login for stateful tool calls.
  • For platform signature-required tools, establish a signature session first.
  • Do not send private keys to the MCP server; signing must happen client-side.

C) Custom-Built Agent (Self-Hosted)

If you are building your own agent runtime and know nothing about MCP yet, follow this exact sequence.

Step 1: Initialize MCP session (POST /mcp)

Send JSON-RPC initialize first:

curl -i -X POST "https://mcp.tronsave.io/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": {
        "name": "custom-agent",
        "version": "1.0.0"
      }
    }
  }'

Important:

  • Read response headers and store mcp-session-id.
  • You must reuse this mcp-session-id in all next requests.
  • protocolVersion in this sample is a known compatible value at doc update time.
  • Prefer using your MCP SDK's default/negotiated protocol version when available.
  • If protocol versions are incompatible, initialize fails and client must retry with a supported version.

Step 2: Notify server client is ready (POST /mcp, recommended)

After initialize success, send notifications/initialized:

curl -i -X POST "https://mcp.tronsave.io/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "mcp-session-id: YOUR_SESSION_ID" \
  -d '{
    "jsonrpc": "2.0",
    "method": "notifications/initialized",
    "params": {}
  }'

Step 3: Login before calling protected tools (POST /mcp with tools/call)

You must login before calling any tool marked Requires Login = Yes. tronsave_login accepts one of two argument modes:

  • ApiKey mode: send apiKey
  • Signature mode: send signature (format: signature_timestamp)

Do not send both apiKey and signature in the same login call.

Access rule after login:

  • ApiKey login: internal tools only.
  • Signature login: required for any tool that says "Signature Session".
  • If you call a signature-required tool from an ApiKey session, backend authorization will reject it.

ApiKey login example:

curl -i -X POST "https://mcp.tronsave.io/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "mcp-session-id: YOUR_SESSION_ID" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "tronsave_login",
      "arguments": {
        "apiKey": "YOUR_API_KEY"
      }
    }
  }'

Signature login example (direct signature mode):

curl -i -X POST "https://mcp.tronsave.io/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "mcp-session-id: YOUR_SESSION_ID" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "tronsave_login",
      "arguments": {
        "signature": "YOUR_SIGNATURE_YOUR_TIMESTAMP"
      }
    }
  }'

After login succeeds, continue using the same mcp-session-id.

Step 4: Get all available tools (POST /mcp with tools/list)

Use tools/list to discover tool names, input schema, and descriptions:

curl -s -X POST "https://mcp.tronsave.io/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "mcp-session-id: YOUR_SESSION_ID" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/list",
    "params": {}
  }'

What you get from tools/list:

  • Tool name (name)
  • Human description (description)
  • Required input fields (inputSchema)
  • Output shape (outputSchema, when provided)

Step 5: Call a tool (POST /mcp with tools/call)

Pick one tool from tools/list, then call:

curl -s -X POST "https://mcp.tronsave.io/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "mcp-session-id: YOUR_SESSION_ID" \
  -d '{
    "jsonrpc": "2.0",
    "id": 4,
    "method": "tools/call",
    "params": {
      "name": "tronsave_get_internal_account",
      "arguments": {}
    }
  }'

For signature-required platform tools, do:

  1. tools/call with name: "tronsave_login" using signature mode
  2. Continue calling tools using returned mcp-session-id

Optional helper flow:

  1. tools/call with name: "tronsave_get_sign_message"
  2. Sign returned message in wallet
  3. tools/call with name: "tronsave_login" and signature payload
  4. Continue calling platform tools

Step 6: Close session (DELETE /mcp)

When finished:

curl -i -X DELETE "https://mcp.tronsave.io/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "mcp-session-id: YOUR_SESSION_ID"

Implementation checklist for robust agents:

  • Always initialize MCP and login before calling tools marked Requires Login = Yes.
  • Persist mcp-session-id per conversation/agent context.
  • On SESSION_REQUIRED/stale-session/restart errors, re-run initialize + login flow.
  • Always validate tool arguments against tools/list schemas before calling.
  • Surface tool errors directly to users for easier troubleshooting.

Security Best Practices

  • Never transmit wallet private keys or seed phrases to the server.
  • Sign messages only in the wallet/client environment.
  • Redis stores session payloads as JSON values; do not expose Redis publicly.
  • Secure Redis in production:
    • bind to private network only (bind 127.0.0.1 or VPC-private IP)
    • enable auth/ACL (requirepass and user ACLs)
    • enable TLS in transit where supported
    • disable dangerous commands in managed-policy contexts when possible
    • enforce key TTL and eviction policy review for session keys
  • If Redis is leaked/compromised, active sessions may be replayed until TTL expiration (session takeover risk).
  • Keep SESSION_TTL_SECONDS as short as practical for your UX/security trade-off.
  • Enforce authentication if exposing the server on public networks.

Server Config

{
  "mcpServers": {
    "tronsave-streamable": {
      "url": "https://mcp.tronsave.io/mcp"
    }
  }
}
Project Info
Created At
a month ago
Updated At
a month ago
Author Name
Tronsave
Star
-
Language
-
License
-
Category
Homepage

Recommend Servers

View All
Demand Chain - AI Agent native demand matching platform
@文明天梯

让你的Agent来跟全世界对接需求,你的AI助理帮你把需求传达出去,又帮你接受别人给你的需求。 需求链平台是将整个人类联结在一起的一个工具,组成一个网络。 告诉你的AI助理,你的需求,Agent会在需求链平台上寻找到能解决你需求的人。 别人也会将他的需求传达给你,你接受你能处理的需求,你也可以将这个需求拆分,变成数个小的需求,继续放在需求链上传递下去。 比如说你想要一种技术的创新,一个人工智能的新算法,或者是需要一种新材料,想要一种新的解决方案,去解决工作生活中的真实痛点。 你或许有一个天才的想法,需要有人与你一起去验证是否可行。 或者你已经有一套成功的技术,需要让全世界都知道你的方案。 总之每个人都有各种需求需要解决,而需求链平台,就是帮你解决各种需求而存在的机制。 赶快打开你的Agent,告诉他,你的需求吧。 此需求链平台是地球人类共有的基础设施,永久开源,中立,免费。 Let your Agent connect with demands from across the globe. Your AI assistant will forward your requests and receive demands from others for you. The Demand Chain Platform is a tool that unites all humanity into a connected network. Simply tell your AI assistant what you need, and your Agent will find people on the platform who can address your requirements. Others will also send their demands to you. You may take on tasks you are capable of handling, or split a single demand into several smaller ones to keep them circulating on the Demand Chain. For instance, you may seek technological innovation, a new AI algorithm, advanced new materials, or practical solutions to real problems in work and daily life. You might have a brilliant idea and need partners to verify its feasibility. Or you possess proven technologies and wish to share your solutions with the whole world. Everyone has various needs to fulfill, and the Demand Chain Platform is built precisely for this purpose. Launch your Agent and submit your demands right away. As a shared infrastructure for all people on Earth, this Demand Chain Platform is permanently open-source, neutral and free of charge.

a day ago
Sellerguide

11 hours ago
Sellerguide

11 hours ago