We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/neosun100/notebookLM2PPT'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
start.shβ’2.55 KiB
#!/bin/bash
# PDF2PPT Docker Startup Script
# Automatically checks dependencies and starts the service
set -e
echo "π PDF2PPT Docker Startup Script"
echo "=================================="
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Check if Docker is installed
if ! command -v docker &> /dev/null; then
echo -e "${RED}β Docker is not installed${NC}"
echo "Please install Docker first: https://docs.docker.com/get-docker/"
exit 1
fi
echo -e "${GREEN}β Docker is installed${NC}"
# Check if docker-compose is installed
if ! command -v docker-compose &> /dev/null; then
echo -e "${YELLOW}β οΈ docker-compose not found, using 'docker compose' instead${NC}"
DOCKER_COMPOSE="docker compose"
else
DOCKER_COMPOSE="docker-compose"
fi
# Check for port conflicts
PORT=${PORT:-8000}
if lsof -Pi :$PORT -sTCP:LISTEN -t >/dev/null 2>&1 ; then
echo -e "${YELLOW}β οΈ Port $PORT is already in use${NC}"
echo "Please set a different PORT in .env file or stop the service using that port"
read -p "Do you want to use a different port? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
read -p "Enter new port number: " NEW_PORT
export PORT=$NEW_PORT
echo "PORT=$NEW_PORT" > .env
else
exit 1
fi
fi
# Create .env if it doesn't exist
if [ ! -f .env ]; then
echo "π Creating .env file from .env.example..."
cp .env.example .env
echo -e "${GREEN}β Created .env file${NC}"
fi
# Create necessary directories
echo "π Creating directories..."
mkdir -p uploads outputs
echo -e "${GREEN}β Directories created${NC}"
# Build and start the service
echo "π¨ Building Docker image..."
$DOCKER_COMPOSE build
echo "π Starting PDF2PPT service..."
$DOCKER_COMPOSE up -d
# Wait for service to be ready
echo "β³ Waiting for service to be ready..."
sleep 5
# Check if service is running
if docker ps | grep -q pdf2ppt; then
echo -e "${GREEN}β PDF2PPT is running!${NC}"
echo ""
echo "π Service Information:"
echo " - Web UI: http://localhost:$PORT"
echo " - API Docs: http://localhost:$PORT/docs"
echo " - Health Check: http://localhost:$PORT/health"
echo ""
echo "π Useful Commands:"
echo " - View logs: $DOCKER_COMPOSE logs -f"
echo " - Stop service: $DOCKER_COMPOSE down"
echo " - Restart service: $DOCKER_COMPOSE restart"
echo ""
echo "π Ready to convert PDF to PPT!"
else
echo -e "${RED}β Failed to start PDF2PPT${NC}"
echo "Check logs with: $DOCKER_COMPOSE logs"
exit 1
fi