MCP Troubleshooting
Common issues and solutions for BlockRun MCP.
Installation Issues
"MCP not found" after installation
Cause: Claude Code needs to restart to load new MCPs.
Solution:
# Kill all Claude processes
pkill -f "claude"
# Start fresh
claude
# Verify MCP is loaded
claude mcp list
"Permission denied" during install
Cause: npm doesn't have write permission.
Solution:
# Set npm to use local directory
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH
# Retry installation
claude mcp add blockrun -- npx @blockrun/mcp
"Node not found"
Cause: Node.js is not installed or not in PATH.
Solution:
# Install Node.js (macOS)
brew install node
# Or download from https://nodejs.org
# Verify
node --version # Should be 18+
Wallet Issues
"Wallet not found"
Cause: No wallet has been created yet.
Solution:
# In Claude Code
blockrun setup
This creates a wallet at ~/.blockrun/wallet.json.
"Insufficient balance"
Cause: Not enough USDC in your wallet.
Solution:
- Check balance:
blockrun balance - Fund wallet with USDC on Base network
- Verify balance updated
"Transaction failed"
Causes:
- Network congestion
- Insufficient balance
- RPC endpoint issues
Solutions:
# Check balance
blockrun balance
# Check Base network status
curl https://mainnet.base.org -X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
# Retry after a few seconds
"Invalid private key"
Cause: Corrupted wallet file or incorrect format.
Solution:
# Backup existing wallet
mv ~/.blockrun/wallet.json ~/.blockrun/wallet.json.backup
# Create new wallet
# In Claude Code:
blockrun setup
Connection Issues
"Network timeout"
Cause: Can't reach BlockRun API or Base RPC.
Solutions:
- Check internet connection
- Verify BlockRun API is up:
curl https://blockrun.ai/api/health - Try again in a few seconds
"Rate limited"
Cause: Too many requests in a short period.
Solution: Wait 60 seconds and retry. Consider using session budgets to pace requests.
"API error: 500"
Cause: Server-side issue.
Solution:
- Wait a few minutes
- Check BlockRun status
- Report if persists: GitHub Issues
Tool Issues
"Tool not available"
Cause: MCP not properly initialized.
Solution:
# Verify MCP is running
claude mcp list
# Should show "blockrun" in the list
# If not, reinstall:
claude mcp remove blockrun
claude mcp add blockrun -- npx @blockrun/mcp
"Invalid model"
Cause: Requested model doesn't exist or isn't supported.
Solution: Check available models at Models Reference.
"Image generation failed"
Causes:
- Insufficient balance
- Content policy violation
- Timeout
Solutions:
- Check balance
- Simplify prompt (remove potentially flagged content)
- Try again with shorter prompt
Environment Issues
Wrong wallet being used
Cause: Environment variable overriding default location.
Solution:
# Check environment
echo $BLOCKRUN_WALLET_KEY
echo $BLOCKRUN_WALLET_PATH
# Unset if needed
unset BLOCKRUN_WALLET_KEY
unset BLOCKRUN_WALLET_PATH
Using wrong network
Cause: Custom RPC configured for wrong network.
Solution:
# Verify using Base mainnet
echo $BASE_RPC_URL
# Should be empty (uses default) or:
# https://mainnet.base.org
Getting Help
Check Logs
# Claude Code logs
cat ~/.claude/logs/latest.log
# Look for MCP-related errors
grep -i "blockrun\|mcp" ~/.claude/logs/latest.log
Debug Mode
# Run with verbose logging
DEBUG=* claude
Report Issues
If you can't resolve an issue:
-
Gather info:
- Error message
- Steps to reproduce
- Claude Code version:
claude --version - Node version:
node --version - OS:
uname -a
-
Report at GitHub Issues
Quick Reference
| Issue | Quick Fix |
|---|---|
| MCP not loading | Restart Claude Code |
| No wallet | blockrun setup |
| No balance | Fund wallet on Base |
| Network error | Check internet, retry |
| Tool error | claude mcp list to verify |