We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/crazyrabbitLTC/mcp-ethers-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test-setup.shβ’945 B
#!/bin/bash
set -e
echo "π Setting up test environment..."
# Kill any existing Hardhat processes
echo "π Stopping any running Hardhat nodes..."
pkill -f "hardhat node" || true
# Wait a moment to ensure ports are freed
sleep 2
# Start a new Hardhat node in the background
echo "π Starting a fresh Hardhat node..."
npx hardhat node --hostname 127.0.0.1 --port 8545 > hardhat.log 2>&1 &
HARDHAT_PID=$!
# Wait for node to start
echo "β³ Waiting for Hardhat node to start..."
sleep 3
# Deploy the token contract
echo "π Deploying TestToken contract..."
node scripts/deployToken.mjs
# Update the test helper
echo "π Updating test helper with new contract address..."
node scripts/updateTestHelper.mjs
echo "β Setup complete! Hardhat node is running with PID: $HARDHAT_PID"
echo "π§ͺ You can now run 'bun run test' to run the tests"
echo ""
echo "π‘ When you're done, you can stop the Hardhat node with: kill $HARDHAT_PID"