# Stacks MCP Server Configuration
# ============================================================================
# REQUIRED: Network Configuration
# ============================================================================
# Options: mainnet, testnet, devnet
# Default: testnet
STACKS_NETWORK=testnet
# ============================================================================
# REQUIRED: Wallet Configuration
# ============================================================================
# Provide EITHER private key OR mnemonic (not both)
# Option 1: Private Key (64 character hex string, with or without 0x prefix)
WALLET_PRIVATE_KEY=your_private_key_here
# Option 2: Mnemonic (12 or 24 word seed phrase)
# WALLET_MNEMONIC="your twelve or twenty four word mnemonic phrase here"
# ============================================================================
# OPTIONAL: Stacks API Configuration
# ============================================================================
# Custom Stacks API endpoints (defaults to Hiro APIs if not specified)
# STACKS_MAINNET_API_URL=https://api.hiro.so
# STACKS_TESTNET_API_URL=https://api.testnet.hiro.so
# STACKS_DEVNET_API_URL=http://localhost:20443
# Hiro API Key (optional, for higher rate limits)
# HIRO_API_KEY=your_hiro_api_key_here
# ============================================================================
# OPTIONAL: Explorer Configuration
# ============================================================================
# STACKS_EXPLORER_MAINNET_URL=https://explorer.hiro.so
# STACKS_EXPLORER_TESTNET_URL=https://explorer.hiro.so
# ============================================================================
# OPTIONAL: Server Configuration
# ============================================================================
# MCP Server Host and Port (for HTTP mode, stdio is default)
# MCP_SERVER_HOST=localhost
# MCP_SERVER_PORT=3000
# ============================================================================
# OPTIONAL: Protocol-Specific API Keys
# ============================================================================
# Bitflow SDK Configuration (optional, SDK will use environment variables)
# BITFLOW_API_HOST=https://api.bitflow.finance
# BITFLOW_API_KEY=your_bitflow_api_key_here
# BITFLOW_PROVIDER_ADDRESS=your_provider_address
# READONLY_CALL_API_HOST=https://api.bitflow.finance
# READONLY_CALL_API_KEY=your_readonly_api_key_here
# KEEPER_API_HOST=https://keeper.bitflow.finance
# KEEPER_API_KEY=your_keeper_api_key_here
# Charisma DEX API Key (optional, for rate limits and automation)
# CHARISMA_API_KEY=your_charisma_api_key_here
# ============================================================================
# OPTIONAL: Environment and Logging
# ============================================================================
# NODE_ENV=development
# LOG_LEVEL=info
# DEBUG=false
# DISABLE_TELEMETRY=false
# ============================================================================
# Example Configurations
# ============================================================================
# Testnet Development (Recommended for testing):
# STACKS_NETWORK=testnet
# WALLET_PRIVATE_KEY=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
# Mainnet Production (Use with caution - real funds):
# STACKS_NETWORK=mainnet
# WALLET_PRIVATE_KEY=0xYOUR_REAL_PRIVATE_KEY_HERE
# HIRO_API_KEY=your_hiro_api_key_for_rate_limits
# Local Devnet Development:
# STACKS_NETWORK=devnet
# STACKS_DEVNET_API_URL=http://localhost:20443
# WALLET_PRIVATE_KEY=0xYOUR_DEVNET_PRIVATE_KEY