#!/bin/bash
echo "Building Curl MCP Server..."
docker-compose build
echo ""
echo "Starting Curl MCP Server..."
docker-compose up -d
echo ""
echo "Checking container status..."
docker-compose ps
echo ""
echo "Testing network connectivity..."
echo "Testing internet access:"
docker exec curl-mcp-server curl -s https://google.com > /dev/null && echo "✓ Internet access working" || echo "✗ Internet access failed"
echo "Testing local network access (192.168.1.1):"
docker exec curl-mcp-server curl -k -s --connect-timeout 5 https://192.168.1.1 > /dev/null && echo "✓ Local network access working" || echo "✗ Local network access failed (this might be expected if 192.168.1.1 doesn't exist)"
echo ""
echo "=== Setup Complete ==="
echo ""
echo "Next steps:"
echo "1. Add this to your Claude Desktop config:"
echo ""
echo '{
"mcpServers": {
"curl": {
"command": "docker",
"args": ["exec", "-i", "curl-mcp-server", "python", "/app/server.py"]
}
}
}'
echo ""
echo "2. Restart Claude Desktop"
echo ""
echo "Configuration file location:"
echo " macOS: ~/Library/Application Support/Claude/claude_desktop_config.json"
echo " Windows: %APPDATA%\\Claude\\claude_desktop_config.json"