We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TJarriault/mcp-weather-sample'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_local_cities.shβ’696 B
#!/bin/bash
echo "π§ͺ Testing local cities search functionality"
echo "=================================================="
# Start server in background
echo "π Starting MCP server..."
npm start &
SERVER_PID=$!
# Wait for server to start
echo "β³ Waiting for server startup..."
sleep 3
# Check if server started
if curl -s http://localhost:8080/health > /dev/null; then
echo "β Server started successfully"
# Run tests
echo "π§ͺ Running tests..."
node test_local_cities.js
echo "π Tests completed"
else
echo "β Error: Server failed to start"
fi
# Stop server
echo "π Stopping server..."
kill $SERVER_PID 2>/dev/null || true
echo "β Done!"