Skip to main content
Glama

Insurance Campaign MCP Server

by AlandeXiong
start_http_stream.sh1.44 kB
#!/bin/bash # MCP Campaign Server HTTP Stream Startup Script echo "Starting MCP Campaign Server in HTTP Stream mode..." # Check if Java is installed if ! command -v java &> /dev/null; then echo "Error: Java is not installed. Please install Java 17 or higher." exit 1 fi # Check Java version JAVA_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}' | awk -F '.' '{print $1}') if [ "$JAVA_VERSION" -lt 17 ]; then echo "Error: Java 17 or higher is required. Current version: $JAVA_VERSION" exit 1 fi # Check if Maven is installed if ! command -v mvn &> /dev/null; then echo "Error: Maven is not installed. Please install Maven 3.6 or higher." exit 1 fi # Parse port argument PORT=8081 if [ $# -gt 0 ]; then PORT=$1 fi echo "Compiling the application..." mvn clean compile if [ $? -eq 0 ]; then echo "Build successful. Starting the server in HTTP Stream mode on port $PORT..." echo "Note: This will start the MCP server in HTTP Stream mode for Claude integration." echo "Server will be available at: http://localhost:$PORT" echo "SSE endpoint: http://localhost:$PORT/connect" echo "Press Ctrl+C to stop the server." echo # Start the HTTP Stream application using Maven exec plugin mvn exec:java -Dexec.mainClass="com.insurance.mcp.McpHttpStreamApplication" -Dexec.args="$PORT" else echo "Build failed. Please check the error messages above." exit 1 fi

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AlandeXiong/mcp_campaign_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server