Skip to main content
Glama

Insurance Campaign MCP Server

by AlandeXiong
build.sh2.27 kB
#!/bin/bash # MCP Campaign Server Build Script # This script builds both stdio and streamable JARs echo "==========================================" echo "MCP Campaign Server Build Script" echo "==========================================" # Check if Maven is available if ! command -v mvn &> /dev/null; then echo "Error: Maven is not installed or not in PATH" exit 1 fi echo "Maven version: $(mvn -version | head -n 1)" # Clean previous builds echo "Cleaning previous builds..." mvn clean -q if [ $? -ne 0 ]; then echo "Clean failed. Please check the errors above." exit 1 fi # Compile the project echo "Compiling project..." mvn compile -q if [ $? -ne 0 ]; then echo "Compilation failed. Please check the errors above." exit 1 fi # Package all JARs echo "Building all JAR packages..." mvn package -q if [ $? -ne 0 ]; then echo "Build failed. Please check the errors above." exit 1 fi echo "Build completed successfully!" echo "==========================================" # List generated files echo "Generated files:" echo "1. Default JAR (Streamable HTTP):" ls -lh target/mcp-campaign-server-1.0.0.jar 2>/dev/null && echo " Size: $(du -h target/mcp-campaign-server-1.0.0.jar | cut -f1)" echo "" echo "2. Stdio JAR:" ls -lh target/mcp-campaign-server-1.0.0-stdio.jar 2>/dev/null && echo " Size: $(du -h target/mcp-campaign-server-1.0.0-stdio.jar | cut -f1)" echo "" echo "3. Streamable JAR:" ls -lh target/mcp-campaign-server-1.0.0-streamable.jar 2>/dev/null && echo " Size: $(du -h target/mcp-campaign-server-1.0.0-streamable.jar | cut -f1)" echo "" echo "4. Distribution packages:" ls -lh target/mcp-campaign-server-1.0.0-*.zip 2>/dev/null echo "" echo "==========================================" echo "Usage Instructions:" echo "" echo "Stdio Mode:" echo " java -jar target/mcp-campaign-server-1.0.0-stdio.jar --spring.profiles.active=stdio" echo "" echo "Streamable HTTP Mode:" echo " java -jar target/mcp-campaign-server-1.0.0-streamable.jar --server.port=8081" echo "" echo "Extract distribution packages for standalone deployment:" echo " unzip target/mcp-campaign-server-1.0.0-stdio.zip" echo " unzip target/mcp-campaign-server-1.0.0-streamable.zip" echo "=========================================="

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