#!/bin/bash # Simple one-shot test for MCP remote proxy if [ -z "$FLIPSIDE_API_KEY" ]; then echo "Error: FLIPSIDE_API_KEY required" exit 1 fi # Build if needed [ ! -f "./remote-mcp-proxy" ] && go build -o remote-mcp-proxy . echo "Testing tools/list..." echo "Press Ctrl+C after you see the response..." echo "" # Use a pipe to send the message echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | \ MCP_REMOTE_URL="${MCP_REMOTE_URL:-https://mcp.flipsidecrypto.xyz/beta/sse}" \ FLIPSIDE_API_KEY="$FLIPSIDE_API_KEY" \ MCP_DEBUG="${MCP_DEBUG:-true}" \ ./remote-mcp-proxy