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
run-tests.shβ’908 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
# Run the tests
echo "π§ͺ Running tests..."
npm test
# Clean up - kill the Hardhat node
echo "π§Ή Cleaning up - stopping Hardhat node..."
kill $HARDHAT_PID || true
echo "β All done!"