Stylus MCP Tools
Tools for Stylus development and interaction.
createStylusProject- Create a new Cargo Stylus projectParameters:
projectName: Project namepath: Path to create the project (optional)
initStylusProject- Initialize a Stylus project in the current directoryParameters:
path: Path to initialize the project (optional)
exportStylusAbi- Export a Solidity ABI for a Stylus contractParameters:
output: The output filepath: Path to the Stylus project (optional)json: Write a JSON ABI instead using solc. Requires solc (default: true)rustFeatures: Rust crate's features list. Required to include feature specific ABI (optional)
checkStylusContract- Check if a Stylus contract is valid for deploymentParameters:
path: Path to the Stylus project (optional)
deployStylusContract- Deploy a Stylus contract to the Arbitrum network. Uses environment variables for secure authentication and supports gas estimation mode.Parameters:
endpoint: RPC endpoint URLpath: Path to the Stylus project (optional)estimateGas: Only estimate gas instead of deploying (optional boolean)Uses STYLUS_PRIVATE_KEY, STYLUS_PRIVATE_KEY_PATH, or STYLUS_KEYSTORE_PATH environment variables for authentication.
verifyStylusContract- Verify the deployment of a Stylus contractParameters:
deploymentTx: Deployment transaction hashendpoint: RPC endpoint URL (optional)path: Path to the Stylus project (optional)
activateStylusContract- Activate an already deployed Stylus contract. Uses environment variables for secure authentication.Parameters:
contractAddress: Deployed contract addressendpoint: RPC endpoint URLpath: Path to the Stylus project (optional)Uses STYLUS_PRIVATE_KEY, STYLUS_PRIVATE_KEY_PATH, or STYLUS_KEYSTORE_PATH environment variables for authentication.
cacheStylusContract- Cache a contract using the Stylus CacheManager. Uses environment variables for secure authentication and supports multiple cache operations.Parameters:
subcommand: Cache subcommand ('bid', 'status', 'suggest-bid', 'help')contractAddress: Contract address to cacheendpoint: RPC endpoint URLpath: Path to the Stylus project (optional)bidAmount: Bid amount for 'bid' subcommand (optional)Uses STYLUS_PRIVATE_KEY, STYLUS_PRIVATE_KEY_PATH, or STYLUS_KEYSTORE_PATH environment variables.
generateStylusBindings- Generate C code bindings for a Stylus contract from project source with automatic ABI preparation and cleanupParameters:
projectPath: The Stylus project pathoutDir: Output directory for C bindingsrustFeatures: Rust features for ABI generation (optional)abiOutputPath: Custom ABI JSON path (optional)keepAbiFile: Keep generated ABI file (optional, default: false)
replayStylusTransaction- Replay a Stylus transaction in GDB debuggerParameters:
txHash: Transaction hash to replayendpoint: RPC endpoint URL (optional)path: Path to the Stylus project (optional)
traceStylusTransaction- Trace a Stylus transactionParameters:
txHash: Transaction hash to traceendpoint: RPC endpoint URL (optional)path: Path to the Stylus project (optional)
deployMultipleStylusContracts- Deploy multiple Stylus contracts to the Arbitrum network in sequenceParameters:
endpoint: RPC endpoint URLprojectPaths: Array of paths to Stylus projects that should be deployedestimateGas: Only estimate gas instead of deploying (optional boolean)Uses
STYLUS_PRIVATE_KEY,STYLUS_PRIVATE_KEY_PATH, orSTYLUS_KEYSTORE_PATHenvironment variables for authentication.
Last updated