You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,12 +60,12 @@ export function registerEVMTools(server: McpServer) {
47
60
},
48
61
async()=>{
49
62
try{
50
-
constwallet=getConfiguredWallet();
63
+
constaddress=getWalletAddressFromKey();
51
64
return{
52
65
content: [{
53
66
type: "text",
54
67
text: JSON.stringify({
55
-
address: wallet.address,
68
+
address,
56
69
message: "This is the wallet that will be used for all transactions"
57
70
},null,2)
58
71
}]
@@ -606,10 +619,10 @@ export function registerEVMTools(server: McpServer) {
606
619
server.registerTool(
607
620
"get_contract_abi",
608
621
{
609
-
description: "Fetch a contract's ABI from a block explorer (Etherscan, Polygonscan, etc.). Requires ETHERSCAN_API_KEY environment variable.",
622
+
description: "Fetch a contract's full ABI from Etherscan/block explorers. Use this to understand verified contracts before interacting. Requires ETHERSCAN_API_KEY. Supports 30+ EVM networks. Works best with verified contracts on block explorers.",
network: z.string().optional().describe("Network name or chain ID. Defaults to ethereum. Supported: ethereum, polygon, arbitrum, optimism, base, avalanche, gnosis, fantom, bsc, celo, scroll, linea, zksync, manta, blast, and testnets (sepolia, mumbai, arbitrum-sepolia, optimism-sepolia, base-sepolia, avalanche-fuji)")
613
626
},
614
627
annotations: {
615
628
title: "Get Contract ABI",
@@ -650,12 +663,12 @@ export function registerEVMTools(server: McpServer) {
650
663
server.registerTool(
651
664
"read_contract",
652
665
{
653
-
description: "Read data from a smart contract (read-only call). Can auto-fetch verified contract ABIs or use common function signatures.",
666
+
description: "Call read-only functions on a smart contract. Automatically fetches ABI from block explorer if not provided (requires ETHERSCAN_API_KEY). Falls back to common functions if contract is not verified. Use this to query contract state and data.",
0 commit comments