Skip to main content
Glama
Dockerfile.mcp1.68 kB
# PrestaShop MCP Server - Flexible Docker image # Supports: baked-in docs, mounted docs, or auto-fetch from GitHub FROM python:3.10-slim # Install git and ca-certificates for cloning documentation RUN apt-get update && \ apt-get install -y --no-install-recommends git ca-certificates && \ rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy package files and source COPY pyproject.toml README.md LICENSE ./ COPY prestashop_mcp/ ./prestashop_mcp/ # Install the package RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir . # Clone PrestaShop documentation (baked into image) RUN git clone --depth 1 https://github.com/PrestaShop/docs.git /app/prestashop-docs # Set default environment variables ENV PRESTASHOP_DOCS_PATH=/app/prestashop-docs \ PRESTASHOP_DB_PATH=/app/database.db \ PRESTASHOP_AUTO_FETCH=true \ PYTHONUNBUFFERED=1 # Run indexing to create the database (baked into the image) RUN python -m prestashop_mcp.ingest_v2 --force # Verify indexing succeeded RUN python -c "import sqlite3; conn = sqlite3.connect('/app/database.db'); cursor = conn.cursor(); cursor.execute('SELECT COUNT(*) FROM prestashop_docs'); count = cursor.fetchone()[0]; print(f'Indexed {count} documents'); assert count > 1000, 'Indexing failed'; conn.close()" # Copy and set up entrypoint script COPY docker-entrypoint.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/docker-entrypoint.sh # Labels LABEL maintainer="Florinel Chis" \ description="PrestaShop MCP Server with indexed documentation" \ version="0.4.0" # Use entrypoint for intelligent initialization ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

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/florinel-chis/prestashop-mcp'

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