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!"