flipside-mcp-extension/test-interactive.sh
Erik Brakke a179b10854 Initial commit: Flipside Intelligence MCP Extension
- Add Go-based MCP proxy for Flipside Intelligence blockchain analytics
- Configure project structure with proper Go module naming
- Include comprehensive README focused on product vision
- Add manifest.json for Claude Desktop integration
- Setup build automation with Makefile and test scripts
- Configure .gitignore for Go project best practices

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 14:06:57 -06:00

45 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Interactive test script for MCP remote proxy
# Starts the proxy and lets you send JSON-RPC messages manually
set -e
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
# Configuration
REMOTE_URL="${MCP_REMOTE_URL:-https://mcp.flipsidecrypto.xyz/beta/sse}"
API_KEY="${FLIPSIDE_API_KEY}"
DEBUG="${MCP_DEBUG:-true}"
if [ -z "$API_KEY" ]; then
echo -e "${RED}Error: FLIPSIDE_API_KEY environment variable is required${NC}"
echo "Usage: FLIPSIDE_API_KEY=your_key ./test-interactive.sh"
exit 1
fi
# Build if needed
if [ ! -f "./remote-mcp-proxy" ]; then
echo -e "${YELLOW}Building proxy binary...${NC}"
go build -o remote-mcp-proxy .
fi
echo -e "${BLUE}🔧 Starting MCP Remote Proxy in interactive mode${NC}"
echo -e "${BLUE}Remote URL: ${REMOTE_URL}${NC}"
echo -e "${BLUE}Debug Mode: ${DEBUG}${NC}"
echo ""
echo -e "${YELLOW}💡 Usage:${NC}"
echo -e " • Type JSON-RPC messages and press Enter"
echo -e " • Try: {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}"
echo -e " • Press Ctrl+C to exit"
echo ""
echo -e "${GREEN}🚀 Proxy is ready! Enter JSON-RPC messages:${NC}"
echo ""
# Start the proxy with environment variables
exec env MCP_REMOTE_URL="$REMOTE_URL" FLIPSIDE_API_KEY="$API_KEY" MCP_DEBUG="$DEBUG" ./remote-mcp-proxy