We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chongzixuan-ai/mcp-server-website'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
npm-simulation.sh•1.22 kB
#!/bin/bash
# This script simulates how the package will work when installed via npm
echo "Testing npm package simulation..."
# 1. Build the project
echo "Building project..."
npm run build
# 2. Test that the bin script works with default (serve) command
echo "Testing default serve command..."
timeout 1s node bin/mcp-screenshot-website.js 2>&1 | grep -q "screenshot-website-fast MCP server running"
if [ $? -eq 0 ]; then
echo "✓ Default serve command works"
else
echo "✗ Default serve command failed"
exit 1
fi
# 3. Test that the bin script works with explicit serve command
echo "Testing explicit serve command..."
timeout 1s node bin/mcp-screenshot-website.js serve 2>&1 | grep -q "screenshot-website-fast MCP server running"
if [ $? -eq 0 ]; then
echo "✓ Explicit serve command works"
else
echo "✗ Explicit serve command failed"
exit 1
fi
# 4. Test that the capture command works
echo "Testing capture command help..."
node bin/mcp-screenshot-website.js capture --help > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "✓ Capture command works"
else
echo "✗ Capture command failed"
exit 1
fi
echo ""
echo "All tests passed! Package is ready for npm deployment."