@sun-protocol/tron-mcp-server 1.0.0-beta.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -160,87 +160,117 @@ npx vitest tests/core/services/multicall.test.ts # Multicall integration
160
160
  npx vitest tests/core/services/services.test.ts # Services integration
161
161
  ```
162
162
 
163
- ### Connecting from Cursor / Claude Desktop
163
+ ### Client Configuration
164
164
 
165
- Add the following to your MCP configuration file (e.g., `~/.config/Claude/claude_desktop_config.json` or `.cursor/mcp.json`).
165
+ To use this server with MCP clients like Claude Desktop, Cursor, or Google Antigravity, you need to add it to your configuration file.
166
166
 
167
- **Important**: We recommend omitting the `env` section if you have already set these variables in your system environment. If your MCP client doesn't inherit system variables, use placeholders or ensure the config file is not shared or committed to version control.
167
+ #### 1. Locate your Configuration File
168
+
169
+ | Application | OS | Config Path |
170
+ | :--------------------- | :------ | :---------------------------------------------------------------- |
171
+ | **Claude Desktop** | macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
172
+ | | Windows | `%APPDATA%\Claude\claude_desktop_config.json` |
173
+ | **Cursor** | All | Project root: `.cursor/mcp.json` |
174
+ | **Google Antigravity** | All | `~/.config/antigravity/mcp.json` |
175
+ | **Opencode** | All | `~/.config/opencode/mcp.json` |
176
+
177
+ #### 2. Add Server Definition
168
178
 
169
- **For local development (running from source):**
179
+ Choose one of the following methods to add to your `mcpServers` object.
180
+
181
+ **Option A: Quick Start (Recommended)**
182
+ Runs the latest version directly from npm.
170
183
 
171
184
  ```json
172
185
  {
173
186
  "mcpServers": {
174
187
  "tron-mcp-server": {
175
188
  "command": "npx",
176
- "args": ["tsx", "/ABSOLUTE/PATH/TO/tron-mcp-server/src/index.ts"],
189
+ "args": ["-y", "@sun-protocol/tron-mcp-server"],
177
190
  "env": {
178
- "TRON_PRIVATE_KEY": "<YOUR_PRIVATE_KEY_HERE>",
179
- "TRONGRID_API_KEY": "<YOUR_TRONGRID_API_KEY_HERE>"
191
+ "TRON_PRIVATE_KEY": "YOUR_KEY_HERE (Or set in system env)",
192
+ "TRONGRID_API_KEY": "YOUR_KEY_HERE (Or set in system env)"
180
193
  }
181
194
  }
182
195
  }
183
196
  }
184
197
  ```
185
198
 
186
- **For using the built package (if installed globally or via npx):**
199
+ **Option B: Local Development**
200
+ For developers running from the cloned repository.
187
201
 
188
202
  ```json
189
203
  {
190
204
  "mcpServers": {
191
205
  "tron-mcp-server": {
192
206
  "command": "npx",
193
- "args": ["-y", "@sun-protocol/tron-mcp-server"],
207
+ "args": ["tsx", "/ABSOLUTE/PATH/TO/tron-mcp-server/src/index.ts"],
194
208
  "env": {
195
- "TRON_PRIVATE_KEY": "<YOUR_PRIVATE_KEY_HERE>",
196
- "TRONGRID_API_KEY": "<YOUR_TRONGRID_API_KEY_HERE>"
209
+ "TRON_PRIVATE_KEY": "YOUR_KEY_HERE (Or set in system env)",
210
+ "TRONGRID_API_KEY": "YOUR_KEY_HERE (Or set in system env)"
197
211
  }
198
212
  }
199
213
  }
200
214
  }
201
215
  ```
202
216
 
217
+ **Important**: We recommend omitting the `env` section if you have already set these variables in your system environment. If your MCP client doesn't inherit system variables, use placeholders or ensure the config file is not shared or committed to version control.
218
+
203
219
  ## API Reference
204
220
 
205
221
  ### Tools
206
222
 
207
223
  #### Wallet & Address
208
224
 
209
- - `get_wallet_address`: Get the configured wallet's address (Base58 & Hex).
210
- - `convert_address`: Convert between Hex and Base58 formats.
225
+ | Tool Name | Description | Key Parameters |
226
+ | :------------------- | :-------------------------------------------------- | :------------- |
227
+ | `get_wallet_address` | Get the configured wallet's address (Base58 & Hex). | - |
228
+ | `convert_address` | Convert between Hex and Base58 formats. | `address` |
211
229
 
212
230
  #### Network & Resources
213
231
 
214
- - `get_chain_info`: Get current block and chain ID.
215
- - `get_chain_parameters`: Get current Energy and Bandwidth costs.
216
- - `get_supported_networks`: List available networks.
232
+ | Tool Name | Description | Key Parameters |
233
+ | :----------------------- | :-------------------------------------- | :------------- |
234
+ | `get_chain_info` | Get current block and chain ID. | `network` |
235
+ | `get_chain_parameters` | Get current Energy and Bandwidth costs. | `network` |
236
+ | `get_supported_networks` | List available networks. | - |
217
237
 
218
238
  #### Blocks & Transactions
219
239
 
220
- - `get_block`: Fetch block by number or hash.
221
- - `get_latest_block`: Get the latest block.
222
- - `get_transaction`: Get transaction details.
223
- - `get_transaction_info`: Get transaction receipt/info (including resource usage).
240
+ | Tool Name | Description | Key Parameters |
241
+ | :--------------------- | :----------------------------------------- | :--------------------------- |
242
+ | `get_block` | Fetch block by number or hash. | `blockIdentifier`, `network` |
243
+ | `get_latest_block` | Get the latest block. | `network` |
244
+ | `get_transaction` | Get transaction details by hash. | `txHash`, `network` |
245
+ | `get_transaction_info` | Get receipt/info including resource usage. | `txHash`, `network` |
224
246
 
225
247
  #### Balances
226
248
 
227
- - `get_balance`: Get TRX balance.
228
- - `get_token_balance`: Get TRC20 token balance.
249
+ | Tool Name | Description | Key Parameters |
250
+ | :------------------ | :-------------------------------------- | :----------------------------------- |
251
+ | `get_balance` | Get TRX balance for an address. | `address`, `network` |
252
+ | `get_token_balance` | Get TRC20 token balance for an address. | `address`, `tokenAddress`, `network` |
229
253
 
230
254
  #### Transfers (Write)
231
255
 
232
- - `transfer_trx`: Send TRX.
233
- - `transfer_trc20`: Send TRC20 tokens.
256
+ | Tool Name | Description | Key Parameters |
257
+ | :--------------- | :------------------------------- | :---------------------------------------- |
258
+ | `transfer_trx` | Send TRX (Native) to an address. | `to`, `amount`, `network` |
259
+ | `transfer_trc20` | Send TRC20 tokens to an address. | `tokenAddress`, `to`, `amount`, `network` |
234
260
 
235
261
  #### Smart Contracts
236
262
 
237
- - `read_contract`: Call read-only contract functions.
238
- - `multicall`: Execute multiple read-only functions in a single batch call.
239
- - `write_contract`: Call state-changing contract functions.
263
+ | Tool Name | Description | Key Parameters |
264
+ | :--------------- | :----------------------------------------- | :------------------------------------------------------------ |
265
+ | `read_contract` | Call read-only (`view`/`pure`) functions. | `contractAddress`, `functionName`, `args`, `network` |
266
+ | `multicall` | Execute multiple read calls in one batch. | `calls`, `network` |
267
+ | `write_contract` | Execute state-changing contract functions. | `contractAddress`, `functionName`, `args`, `value`, `network` |
240
268
 
241
- #### Signing
269
+ #### Signing & Security
242
270
 
243
- - `sign_message`: Sign a text message with the configured wallet.
271
+ | Tool Name | Description | Key Parameters |
272
+ | :------------- | :----------------------------------------- | :------------- |
273
+ | `sign_message` | Sign a message with the configured wallet. | `message` |
244
274
 
245
275
  ### Prompts
246
276
 
@@ -77,6 +77,129 @@ ${tokenType === "trx"
77
77
  },
78
78
  ],
79
79
  }));
80
+ server.registerPrompt("interact_with_contract", {
81
+ description: "Safely execute write operations on a smart contract with validation and confirmation",
82
+ argsSchema: {
83
+ contractAddress: z.string().describe("Contract address to interact with"),
84
+ functionName: z.string().describe("Function to call (e.g., 'mint', 'swap', 'stake')"),
85
+ args: z.string().optional().describe("Comma-separated function arguments"),
86
+ value: z.string().optional().describe("TRX value to send (for payable functions)"),
87
+ network: z.string().optional().describe("Network name (default: mainnet)"),
88
+ },
89
+ }, ({ contractAddress, functionName, args, value, network = "mainnet" }) => {
90
+ const argsList = args ? args.split(",").map((a) => a.trim()) : [];
91
+ return {
92
+ messages: [
93
+ {
94
+ role: "user",
95
+ content: {
96
+ type: "text",
97
+ text: `# Smart Contract Interaction
98
+
99
+ **Objective**: Safely execute ${functionName} on contract ${contractAddress} on ${network}
100
+
101
+ ## Prerequisites Check
102
+
103
+ ### 1. Wallet Verification
104
+ - Call \`get_wallet_address\` to confirm the wallet that will execute this transaction
105
+ - Verify this is the correct wallet for this operation
106
+
107
+ ### 2. Contract Analysis
108
+ - Use \`read_contract\` or external knowledge to understand the function parameters
109
+ - Check function type:
110
+ * **View/Pure**: Read-only (use \`read_contract\` instead)
111
+ * **Nonpayable**: State-changing, no TRX required
112
+ * **Payable**: State-changing, can accept TRX
113
+
114
+ ### 3. Function Parameter Validation
115
+ For function: **${functionName}**
116
+ ${argsList.length > 0 ? `Arguments provided: ${argsList.join(", ")}` : "No arguments provided"}
117
+
118
+ - Verify parameter types match the contract requirements
119
+ - Validate addresses are correct (Base58 or Hex)
120
+ - Check numeric values are in correct units
121
+
122
+ ### 4. Pre-execution Checks
123
+
124
+ **Balance Check**:
125
+ - Call \`get_balance\` to verify sufficient TRX balance
126
+ - Account for Energy/Bandwidth costs + value (if payable)
127
+
128
+ **Resource Estimation**:
129
+ - Call \`get_chain_parameters\` to check current unit prices
130
+ - Estimate Energy and Bandwidth usage
131
+
132
+ ## Execution Process
133
+
134
+ ### 1. Present Summary to User
135
+ Before executing, show:
136
+ - **Contract**: ${contractAddress}
137
+ - **Network**: ${network}
138
+ - **Function**: ${functionName}
139
+ - **Arguments**: ${argsList.length > 0 ? argsList.join(", ") : "None"}
140
+ ${value ? `- **Value**: ${value} TRX` : ""}
141
+ - **From**: [wallet address from step 1]
142
+ - **Estimated Resource Cost**: [Energy / Bandwidth estimation]
143
+
144
+ ### 2. Request User Confirmation
145
+ ⚠️ **IMPORTANT**: Always ask user to confirm before executing write operations
146
+ - Clearly state what will happen
147
+ - Show all costs involved
148
+ - Explain any risks or irreversible actions
149
+
150
+ ### 3. Execute Transaction
151
+ Only after user confirms:
152
+ \`\`\`
153
+ Call write_contract with:
154
+ - contractAddress: "${contractAddress}"
155
+ - functionName: "${functionName}"
156
+ ${argsList.length > 0 ? `- args: ${JSON.stringify(argsList)}` : ""}
157
+ ${value ? `- value: "${value}"` : ""}
158
+ - network: "${network}"
159
+ \`\`\`
160
+
161
+ ### 4. Monitor Transaction
162
+ After execution:
163
+ 1. Return transaction hash to user
164
+ 2. Call \`get_transaction_info\` to verify success
165
+ 3. If failed, call \`diagnose_transaction\` to understand why
166
+
167
+ ## Output Format
168
+
169
+ **Pre-Execution Summary**:
170
+ - Contract details
171
+ - Function and parameters
172
+ - Cost breakdown
173
+ - Risk assessment
174
+
175
+ **Confirmation Request**:
176
+ "Ready to execute ${functionName} on ${contractAddress}. Proceed? (yes/no)"
177
+
178
+ **Execution Result**:
179
+ - Transaction Hash: [hash]
180
+ - Status: Pending/Confirmed/Failed
181
+ - Energy Used: [actual energy used]
182
+ - Bandwidth Used: [actual bandwidth used]
183
+
184
+ ## Safety Considerations
185
+
186
+ ### Critical Checks
187
+ - ✅ Check function parameters are correct type and format
188
+ - ✅ Ensure sufficient balance for fees + value
189
+ - ✅ Validate addresses (no typos, correct network)
190
+ - ✅ Understand what the function does before calling
191
+
192
+ ### Common Risks
193
+ - **Irreversible**: Most blockchain transactions cannot be undone
194
+ - **Fee Loss**: Failed transactions still consume Energy/Bandwidth
195
+ - **Approval Risks**: Be careful with unlimited approvals
196
+ - **Access Control**: Verify you have permission to call this function
197
+ `,
198
+ },
199
+ },
200
+ ],
201
+ };
202
+ });
80
203
  server.registerPrompt("diagnose_transaction", {
81
204
  description: "Analyze transaction status, failures, and provide debugging insights",
82
205
  argsSchema: {
@@ -131,6 +254,83 @@ Provide structured diagnosis:
131
254
  - **Resource Usage**: Energy / Bandwidth used
132
255
  - **Issue (if failed)**: Root cause and explanation
133
256
  - **Recommended Actions**: Next steps to resolve
257
+ `,
258
+ },
259
+ },
260
+ ],
261
+ }));
262
+ server.registerPrompt("explain_tron_concept", {
263
+ description: "Explain TRON and blockchain concepts with examples",
264
+ argsSchema: {
265
+ concept: z
266
+ .string()
267
+ .describe("Concept to explain (Energy, Bandwidth, Super Representative, TRC20, TRC721, etc)"),
268
+ },
269
+ }, ({ concept }) => ({
270
+ messages: [
271
+ {
272
+ role: "user",
273
+ content: {
274
+ type: "text",
275
+ text: `# Concept Explanation: ${concept}
276
+
277
+ **Objective**: Provide clear, practical explanation of "${concept}"
278
+
279
+ ## Explanation Structure
280
+
281
+ ### 1. Definition
282
+ - What is it?
283
+ - Simple one-sentence summary
284
+ - Technical name/terminology
285
+
286
+ ### 2. How It Works
287
+ - Step-by-step explanation
288
+ - Why it exists/why it's important (e.g., Resource model prevents spam)
289
+ - How it relates to TRON blockchain
290
+
291
+ ### 3. Real-World Analogy
292
+ - Compare to familiar concept (e.g., Bandwidth like internet data, Energy like CPU time)
293
+ - Make it relatable for beginners
294
+ - Highlight key differences
295
+
296
+ ### 4. Practical Examples
297
+ - Real transaction scenarios
298
+ - Numbers and metrics where applicable (e.g., Transfer costs ~300 Bandwidth)
299
+ - Common scenarios
300
+ - Edge cases or gotchas
301
+
302
+ ### 5. Relevance to Users
303
+ - Why should developers/users care?
304
+ - How does it affect transactions/costs?
305
+ - How to optimize (e.g., Staking for resources)?
306
+ - Common mistakes to avoid
307
+
308
+ ## Output Format
309
+
310
+ Provide explanation in sections:
311
+
312
+ **What is ${concept}?**
313
+ [Definition and overview]
314
+
315
+ **How Does It Work?**
316
+ [Mechanics and process]
317
+
318
+ **Example**
319
+ [Real or hypothetical scenario]
320
+
321
+ **Key Takeaways**
322
+ [Bullet points of important facts]
323
+
324
+ **Common Questions**
325
+ - Question 1? Answer
326
+ - Question 2? Answer
327
+
328
+ ## Important
329
+ - Use clear, non-technical language first
330
+ - Progress to technical details
331
+ - Include concrete numbers where helpful
332
+ - Be honest about complexity
333
+ - Suggest further learning if needed
134
334
  `,
135
335
  },
136
336
  },
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/core/prompts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAiB;IACnD,+EAA+E;IAC/E,sBAAsB;IACtB,+EAA+E;IAE/E,MAAM,CAAC,cAAc,CACnB,kBAAkB,EAClB;QACE,WAAW,EAAE,oEAAoE;QACjF,UAAU,EAAE;YACV,SAAS,EAAE,CAAC;iBACT,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;iBACtB,QAAQ,CAAC,6DAA6D,CAAC;YAC1E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,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;IAC9B,+EAA+E;IAE/E,MAAM,CAAC,cAAc,CACnB,sBAAsB,EACtB;QACE,WAAW,EAAE,6CAA6C;QAC1D,UAAU,EAAE;YACV,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;SAC3E;KACF,EACD,CAAC,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5B,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE;oBACP,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE;;yDAEuC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA2BrC,OAAO;;;;;;;;;;;;;;;;CAgBjC;iBACU;aACF;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sun-protocol/tron-mcp-server",
3
3
  "module": "src/index.ts",
4
4
  "type": "module",
5
- "version": "1.0.0-beta.1",
5
+ "version": "1.1.0",
6
6
  "description": "MCP server for interacting with TRON blockchain - supports tools and prompts for TRX, TRC20, TRC721 tokens and smart contracts",
7
7
  "bin": {
8
8
  "tron-mcp-server": "./bin/cli.js"