BluestoneApps MCP Remote Server

#!/bin/bash # Script to test the remote MCP server # Remote server address REMOTE_SERVER="107.191.37.244:5051" # Base64 encoded credentials (admin:n2hXUijptRwpe9v6wZ37yOgEx4P8w3ofDRO0ko4A) AUTH_HEADER="Basic YWRtaW46bjJoWFVpanB0UndwZTl2NndaMzd5T2dFeDRQOHczb2ZEUk8wa280QQ==" # Test tools/list endpoint echo "Testing tools/list endpoint on remote server..." curl -X POST http://$REMOTE_SERVER/jsonrpc \ -H "Content-Type: application/json" \ -H "Authorization: $AUTH_HEADER" \ -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | jq . # Test tools/call endpoint with get_project_structure echo "Testing tools/call endpoint with get_project_structure on remote server..." curl -X POST http://$REMOTE_SERVER/jsonrpc \ -H "Content-Type: application/json" \ -H "Authorization: $AUTH_HEADER" \ -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "get_project_structure", "parameters": {}}}' | jq . # Test SSE endpoint echo "Testing SSE endpoint on remote server (will run for 5 seconds)..." curl -N -H "Authorization: $AUTH_HEADER" http://$REMOTE_SERVER/sse & SSE_PID=$! sleep 5 kill $SSE_PID echo "Remote server tests completed!"