genlayer_deploy
Deploy a GenLayer Intelligent Contract with automatic private key handling. Accepts contract path and optional RPC, chain, and argument parameters.
Instructions
Deploy a GenLayer Intelligent Contract with genlayer-js. Accepts privateKey; generates one when missing or invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contractPath | Yes | Path to the Intelligent Contract source file. | |
| privateKey | No | GenLayer private key. If missing or invalid, a new private key is generated with genlayer-js. | |
| args | No | Constructor arguments passed to deployContract. | |
| kwargs | No | Keyword constructor arguments passed to deployContract. | |
| rpcUrl | No | Custom GenLayer RPC endpoint. | |
| chain | No | GenLayer chain used when creating the SDK client. | localnet |
| cwd | No | Base directory for resolving contractPath. Defaults to MCP server cwd. | |
| leaderOnly | No | ||
| consensusMaxRotations | No | ||
| initializeConsensus | No | ||
| autoFundLocalnet | No | Call localnet sim_fundAccount before deploy. Only works on localnet. | |
| fundAmount | No | ||
| waitForReceipt | No | ||
| receiptStatus | No | ACCEPTED | |
| receiptRetries | No | ||
| receiptIntervalMs | No | ||
| timeoutMs | No | ||
| exposePrivateKey | No | Return the generated/used private key in output. Defaults false to avoid leaking secrets. |