@@ -725,10 +725,10 @@ export function registerTools(server: McpServer) {
725
725
"transfer_starknet_eth" ,
726
726
"Transfer ETH from one account to another" ,
727
727
{
728
- privateKey : z . string ( ) . describe ( "Private key of the sender account" ) ,
728
+ privateKey : z . string ( ) . describe ( "Private key of the sender account (not stored, only used to sign the transaction) " ) ,
729
729
from : z . string ( ) . describe ( "Sender's Starknet address" ) ,
730
730
to : z . string ( ) . describe ( "Recipient's Starknet address or Starknet ID" ) ,
731
- amount : z . string ( ) . describe ( "Amount to transfer in wei" ) ,
731
+ amount : z . string ( ) . describe ( "Amount to transfer in ETH (human readable format, not wei) " ) ,
732
732
maxFee : z . string ( ) . optional ( ) . describe ( "Maximum fee to pay (optional)" ) ,
733
733
network : z . string ( ) . optional ( ) . describe ( "Network name (e.g., 'mainnet', 'sepolia'). Defaults to Mainnet." )
734
734
} ,
@@ -738,7 +738,7 @@ export function registerTools(server: McpServer) {
738
738
privateKey,
739
739
from,
740
740
to,
741
- amount,
741
+ amount, // Will be converted from human-readable ETH to wei internally
742
742
maxFee
743
743
} , network ) ;
744
744
@@ -768,10 +768,10 @@ export function registerTools(server: McpServer) {
768
768
"transfer_starknet_strk" ,
769
769
"Transfer STRK from one account to another" ,
770
770
{
771
- privateKey : z . string ( ) . describe ( "Private key of the sender account" ) ,
771
+ privateKey : z . string ( ) . describe ( "Private key of the sender account (not stored, only used to sign the transaction) " ) ,
772
772
from : z . string ( ) . describe ( "Sender's Starknet address" ) ,
773
773
to : z . string ( ) . describe ( "Recipient's Starknet address or Starknet ID" ) ,
774
- amount : z . string ( ) . describe ( "Amount to transfer in wei" ) ,
774
+ amount : z . string ( ) . describe ( "Amount to transfer in STRK (human readable format, not wei) " ) ,
775
775
maxFee : z . string ( ) . optional ( ) . describe ( "Maximum fee to pay (optional)" ) ,
776
776
network : z . string ( ) . optional ( ) . describe ( "Network name (e.g., 'mainnet', 'sepolia'). Defaults to Mainnet." )
777
777
} ,
@@ -781,7 +781,7 @@ export function registerTools(server: McpServer) {
781
781
privateKey,
782
782
from,
783
783
to,
784
- amount,
784
+ amount, // Will be converted from human-readable STRK to wei internally
785
785
maxFee
786
786
} , network ) ;
787
787
@@ -811,11 +811,11 @@ export function registerTools(server: McpServer) {
811
811
"transfer_starknet_token" ,
812
812
"Transfer ERC20 tokens from one account to another" ,
813
813
{
814
- privateKey : z . string ( ) . describe ( "Private key of the sender account" ) ,
814
+ privateKey : z . string ( ) . describe ( "Private key of the sender account (not stored, only used to sign the transaction) " ) ,
815
815
from : z . string ( ) . describe ( "Sender's Starknet address" ) ,
816
816
to : z . string ( ) . describe ( "Recipient's Starknet address or Starknet ID" ) ,
817
817
tokenAddress : z . string ( ) . describe ( "Token contract address or Starknet ID" ) ,
818
- amount : z . string ( ) . describe ( "Amount to transfer ( in token's smallest unit)" ) ,
818
+ amount : z . string ( ) . describe ( "Amount to transfer in token's standard units (human readable format, not in smallest unit)" ) ,
819
819
maxFee : z . string ( ) . optional ( ) . describe ( "Maximum fee to pay (optional)" ) ,
820
820
network : z . string ( ) . optional ( ) . describe ( "Network name (e.g., 'mainnet', 'sepolia'). Defaults to Mainnet." )
821
821
} ,
@@ -826,7 +826,7 @@ export function registerTools(server: McpServer) {
826
826
from,
827
827
to,
828
828
tokenAddress,
829
- amount,
829
+ amount, // Will be converted from human-readable token units to smallest units internally
830
830
maxFee
831
831
} , network ) ;
832
832
@@ -856,7 +856,7 @@ export function registerTools(server: McpServer) {
856
856
"execute_starknet_contract" ,
857
857
"Execute a contract call (write operation)" ,
858
858
{
859
- privateKey : z . string ( ) . describe ( "Private key of the sender account" ) ,
859
+ privateKey : z . string ( ) . describe ( "Private key of the sender account (not stored, only used to sign the transaction) " ) ,
860
860
accountAddress : z . string ( ) . describe ( "Sender's Starknet address" ) ,
861
861
contractAddress : z . string ( ) . describe ( "Contract address or Starknet ID" ) ,
862
862
entrypoint : z . string ( ) . describe ( "Function name to call" ) ,
0 commit comments