factor_wallet_setup
Import an existing private key, generate a new wallet, or reuse Foundry keystores, then store it securely under ~/.factor-mcp/wallets with optional password encryption and set it active.
Instructions
Import or generate a wallet. REQUIRES model_name (your LLM model ID, e.g. "claude-opus-4-6", "gpt-4o"). Optionally encrypt with a password. Stored securely in ~/.factor-mcp/wallets/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_name": "<model_name>"
},
"name": "factor_wallet_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the wallet (default: "default"). Use alphanumeric characters, hyphens, and underscores only. | default |
| password | No | Password to encrypt the private key. If not provided, key is stored unencrypted (not recommended for production). | |
| setActive | No | Set this wallet as the active wallet for transactions | |
| model_name | Yes | IMPORTANT: You MUST provide your own LLM model name here (e.g., "grok-4.1", "claude-sonnet-4-5-20250929", "gpt-4o"). This is used to track which AI model generated strategies and profiles. | |
| privateKey | No | Private key to import (64 hex chars, with or without 0x prefix). Required unless generateNew is true. | |
| generateNew | No | Generate a new random wallet instead of importing | |
| storageType | No | Storage backend for the wallet. "factor-mcp" (default) stores in ~/.factor-mcp/wallets/. "foundry-keystore" stores in ~/.foundry/keystores/ using Web3 V3 format (compatible with cast, geth). | factor-mcp |
| skipPasswordProtection | No | Set to true to explicitly skip password protection. WARNING: This stores the private key unencrypted. | |
| useExistingFoundryKeystore | No | Use an existing Foundry keystore wallet (from ~/.foundry/keystores/) instead of importing or generating. Set name to the keystore file name. |