Skip to main content
Glama
start_trusty_sign_service.shβ€’1.52 kB
#!/bin/bash # Trusty Sign API - Production Startup Script # Usage: ./start_trusty_sign_service.sh set -e echo "πŸš€ Starting Trusty Sign API Service..." # Check if .env exists if [ ! -f .env ]; then echo "❌ Error: .env file not found" exit 1 fi # Check if port 9000 is already in use if lsof -Pi :9000 -sTCP:LISTEN -t >/dev/null 2>&1 ; then echo "⚠️ Port 9000 is already in use. Stopping existing process..." pkill -f "start_trusty_sign_api.py" || true sleep 2 fi # Load environment variables source .env # Check required environment variables if [ -z "$ANTHROPIC_API_KEY" ]; then echo "❌ Error: ANTHROPIC_API_KEY not set in .env" exit 1 fi # Create logs directory if it doesn't exist mkdir -p logs # Start API server echo "πŸ“‘ Starting API server on port ${API_PORT:-9000}..." nohup python start_trusty_sign_api.py > logs/trusty_sign_api.log 2>&1 & API_PID=$! # Wait for server to start echo "⏳ Waiting for server to start..." sleep 3 # Health check if curl -s http://localhost:${API_PORT:-9000}/api/trusty-sign/health > /dev/null; then echo "βœ… Trusty Sign API is running (PID: $API_PID)" echo "πŸ“Š Logs: logs/trusty_sign_api.log" echo "🌐 Health: http://localhost:${API_PORT:-9000}/api/trusty-sign/health" echo "πŸ“š Docs: http://localhost:${API_PORT:-9000}/docs" echo "" echo "To stop: pkill -f start_trusty_sign_api.py" else echo "❌ Failed to start Trusty Sign API" echo "Check logs: tail -f logs/trusty_sign_api.log" exit 1 fi

Latest Blog Posts

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/ilvolodel/iris-legacy'

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