Skip to main content
Glama

MCP Development Framework

Dockerfile.json17.8 kB
{ "sourceFile": "Dockerfile", "activeCommit": 0, "commits": [ { "activePatchIndex": 28, "patches": [ { "date": 1741245157547, "content": "Index: \n===================================================================\n--- \n+++ \n" }, { "date": 1741258783838, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -8,8 +8,11 @@\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n+ tesseract-ocr \\\n+ tesseract-ocr-eng \\\n+ tesseract-ocr-chi-sim \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n COPY . .\n" }, { "date": 1741259379637, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -8,11 +8,8 @@\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n- tesseract-ocr \\\n- tesseract-ocr-eng \\\n- tesseract-ocr-chi-sim \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n COPY . .\n" }, { "date": 1741259527600, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -8,8 +8,11 @@\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n+ tesseract-ocr \\\n+ tesseract-ocr-chi-sim \\\n+ tesseract-ocr-eng \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n COPY . .\n" }, { "date": 1741259592267, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -8,11 +8,8 @@\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n- tesseract-ocr \\\n- tesseract-ocr-chi-sim \\\n- tesseract-ocr-eng \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n COPY . .\n" }, { "date": 1741496348552, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -13,12 +13,12 @@\n \n # Copy project files\n COPY . .\n \n-# Install the package in editable mode\n-RUN pip install --no-cache-dir -e \".[dev]\"\n+# Install the package in editable mode with proper path\n+RUN pip install --no-cache-dir -e .\n \n # Expose the port\n EXPOSE 8000\n \n\\ No newline at end of file\n # Run the server with SSE transport\n-CMD [\"mcp-simple-tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n+CMD [\"python\", \"-m\", \"mcp_simple_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n\\ No newline at end of file\n" }, { "date": 1741496544769, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -20,5 +20,5 @@\n # Expose the port\n EXPOSE 8000\n \n # Run the server with SSE transport\n-CMD [\"python\", \"-m\", \"mcp_simple_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n\\ No newline at end of file\n+CMD [\"python\", \"-m\", \"mcp_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n\\ No newline at end of file\n" }, { "date": 1741529804201, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -20,5 +20,5 @@\n # Expose the port\n EXPOSE 8000\n \n # Run the server with SSE transport\n-CMD [\"python\", \"-m\", \"mcp_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n\\ No newline at end of file\n+CMD [\"python\", \"-m\", \"mcp_simple_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n\\ No newline at end of file\n" }, { "date": 1741529967474, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -20,5 +20,5 @@\n # Expose the port\n EXPOSE 8000\n \n # Run the server with SSE transport\n-CMD [\"python\", \"-m\", \"mcp_simple_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n\\ No newline at end of file\n+CMD [\"python\", \"-m\", \"mcp_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n\\ No newline at end of file\n" }, { "date": 1741668945541, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -3,13 +3,20 @@\n \n # Set working directory\n WORKDIR /app\n \n-# Install build dependencies and curl for healthcheck\n+# Install build dependencies and required packages\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n+ libgl1-mesa-glx \\\n+ libglib2.0-0 \\\n+ libsm6 \\\n+ libxext6 \\\n+ libxrender-dev \\\n+ libpango-1.0-0 \\\n+ libpangocairo-1.0-0 \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n COPY . .\n" }, { "date": 1741669852360, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -3,20 +3,13 @@\n \n # Set working directory\n WORKDIR /app\n \n-# Install build dependencies and required packages\n+# Install build dependencies and curl for healthcheck\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n- libgl1-mesa-glx \\\n- libglib2.0-0 \\\n- libsm6 \\\n- libxext6 \\\n- libxrender-dev \\\n- libpango-1.0-0 \\\n- libpangocairo-1.0-0 \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n COPY . .\n" }, { "date": 1741765604403, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -8,8 +8,9 @@\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n+ tesseract-ocr \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n COPY . .\n" }, { "date": 1741765639526, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -11,8 +11,13 @@\n poppler-utils \\\n tesseract-ocr \\\n && rm -rf /var/lib/apt/lists/*\n \n+# Configure pip to use Aliyun mirror and increase timeout\n+RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ \\\n+ && pip config set global.trusted-host mirrors.aliyun.com \\\n+ && pip config set global.timeout 120\n+\n # Copy project files\n COPY . .\n \n # Install the package in editable mode with proper path\n" }, { "date": 1741765649689, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -8,16 +8,10 @@\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n- tesseract-ocr \\\n && rm -rf /var/lib/apt/lists/*\n \n-# Configure pip to use Aliyun mirror and increase timeout\n-RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ \\\n- && pip config set global.trusted-host mirrors.aliyun.com \\\n- && pip config set global.timeout 120\n-\n # Copy project files\n COPY . .\n \n # Install the package in editable mode with proper path\n" }, { "date": 1741766545615, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -7,8 +7,11 @@\n # Install build dependencies and curl for healthcheck\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n+ python3-dev \\\n+ libxml2-dev \\\n+ libxslt-dev \\\n poppler-utils \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n" }, { "date": 1741767018759, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -7,11 +7,8 @@\n # Install build dependencies and curl for healthcheck\n RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n- python3-dev \\\n- libxml2-dev \\\n- libxslt-dev \\\n poppler-utils \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n" }, { "date": 1742297240834, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -5,8 +5,11 @@\n WORKDIR /app\n \n # Install build dependencies and curl for healthcheck\n RUN apt-get update && apt-get install -y \\\n+ gnupg \\\n+ && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 \\\n+ && apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n && rm -rf /var/lib/apt/lists/*\n" }, { "date": 1742297392893, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -4,12 +4,12 @@\n # Set working directory\n WORKDIR /app\n \n # Install build dependencies and curl for healthcheck\n-RUN apt-get update && apt-get install -y \\\n- gnupg \\\n- && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 \\\n- && apt-get update && apt-get install -y \\\n+RUN apt-get clean && \\\n+ rm -rf /var/lib/apt/lists/* && \\\n+ apt-get update --fix-missing && \\\n+ apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n && rm -rf /var/lib/apt/lists/*\n" }, { "date": 1742297503072, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,15 +1,12 @@\n # Use Python 3.10 slim image as base\n-FROM python:3.10-slim\n+FROM python:3.10.13-slim-bullseye\n \n # Set working directory\n WORKDIR /app\n \n # Install build dependencies and curl for healthcheck\n-RUN apt-get clean && \\\n- rm -rf /var/lib/apt/lists/* && \\\n- apt-get update --fix-missing && \\\n- apt-get install -y \\\n+RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n && rm -rf /var/lib/apt/lists/*\n" }, { "date": 1742297532430, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,6 +1,6 @@\n # Use Python 3.10 slim image as base\n-FROM python:3.10.13-slim-bullseye\n+FROM python:3.10-slim\n \n # Set working directory\n WORKDIR /app\n \n" }, { "date": 1742297908270, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -4,9 +4,13 @@\n # Set working directory\n WORKDIR /app\n \n # Install build dependencies and curl for healthcheck\n-RUN apt-get update && apt-get install -y \\\n+RUN apt-get update && \\\n+ apt-get install -y --no-install-recommends gnupg2 && \\\n+ apt-key update && \\\n+ apt-get update && \\\n+ apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n && rm -rf /var/lib/apt/lists/*\n" }, { "date": 1742298011438, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,16 +1,12 @@\n-# Use Python 3.10 slim image as base\n-FROM python:3.10-slim\n+# Use Python 3.10 bullseye image as base\n+FROM python:3.10-bullseye\n \n # Set working directory\n WORKDIR /app\n \n # Install build dependencies and curl for healthcheck\n-RUN apt-get update && \\\n- apt-get install -y --no-install-recommends gnupg2 && \\\n- apt-key update && \\\n- apt-get update && \\\n- apt-get install -y \\\n+RUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n && rm -rf /var/lib/apt/lists/*\n" }, { "date": 1742298072974, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,6 +1,6 @@\n-# Use Python 3.10 bullseye image as base\n-FROM python:3.10-bullseye\n+# Use Python 3.10 slim image as base\n+FROM python:3.10-slim\n \n # Set working directory\n WORKDIR /app\n \n" }, { "date": 1744091992789, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,6 +1,6 @@\n # Use Python 3.10 slim image as base\n-FROM python:3.10-slim\n+FROM mirrors.ustc.edu.cn/python:3.10-slim\n \n # Set working directory\n WORKDIR /app\n \n" }, { "date": 1744092113363, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,6 +1,6 @@\n # Use Python 3.10 slim image as base\n-FROM mirrors.ustc.edu.cn/python:3.10-slim\n+FROM python:3.10-slim\n \n # Set working directory\n WORKDIR /app\n \n" }, { "date": 1745551240589, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,30 @@\n+# Use Python 3.10 slim image as base\n+FROM python:3.10-slim\n+\n+# Set working directory\n+WORKDIR /app\n+\n+# Install build dependencies and required libraries\n+RUN apt-get update && apt-get install -y \\\n+ build-essential \\\n+ curl \\\n+ poppler-utils \\\n+ tesseract-ocr \\\n+ tesseract-ocr-chi-sim \\\n+ tesseract-ocr-eng \\\n+ ffmpeg \\\n+ libsm6 \\\n+ libxext6 \\\n+ && rm -rf /var/lib/apt/lists/*\n+\n+# Copy project files\n+COPY . .\n+\n+# Install the package in editable mode with proper path\n+RUN pip install --no-cache-dir -e .\n+\n+# Expose the port\n+EXPOSE 8000\n+\n+# Run the server with SSE transport\n+CMD [\"python\", \"-m\", \"mcp_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n\\ No newline at end of file\n" }, { "date": 1745917875171, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -22,32 +22,14 @@\n \n # Install the package in editable mode with proper path\n RUN pip install --no-cache-dir -e .\n \n-# Expose the port\n-EXPOSE 8000\n+# Install dependencies\n+RUN pip install --no-cache-dir -r requirements.txt\n \n-# Run the server with SSE transport\n-CMD [\"python\", \"-m\", \"mcp_tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] \n-# Use Python 3.10 slim image as base\n-FROM python:3.10-slim\n+# Install image processing library Pillow\n+RUN pip install --no-cache-dir Pillow\n \n-# Set working directory\n-WORKDIR /app\n-\n-# Install build dependencies and curl for healthcheck\n-RUN apt-get update && apt-get install -y \\\n- build-essential \\\n- curl \\\n- poppler-utils \\\n- && rm -rf /var/lib/apt/lists/*\n-\n-# Copy project files\n-COPY . .\n-\n-# Install the package in editable mode with proper path\n-RUN pip install --no-cache-dir -e .\n-\n # Expose the port\n EXPOSE 8000\n \n # Run the server with SSE transport\n" }, { "date": 1745917895343, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -22,14 +22,8 @@\n \n # Install the package in editable mode with proper path\n RUN pip install --no-cache-dir -e .\n \n-# Install dependencies\n-RUN pip install --no-cache-dir -r requirements.txt\n-\n-# Install image processing library Pillow\n-RUN pip install --no-cache-dir Pillow\n-\n # Expose the port\n EXPOSE 8000\n \n # Run the server with SSE transport\n" }, { "date": 1745992866896, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -14,8 +14,9 @@\n tesseract-ocr-eng \\\n ffmpeg \\\n libsm6 \\\n libxext6 \\\n+ libreoffice \\\n && rm -rf /var/lib/apt/lists/*\n \n # Copy project files\n COPY . .\n" } ], "date": 1741245157547, "name": "Commit-0", "content": "# Use Python 3.10 slim image as base\nFROM python:3.10-slim\n\n# Set working directory\nWORKDIR /app\n\n# Install build dependencies and curl for healthcheck\nRUN apt-get update && apt-get install -y \\\n build-essential \\\n curl \\\n poppler-utils \\\n && rm -rf /var/lib/apt/lists/*\n\n# Copy project files\nCOPY . .\n\n# Install the package in editable mode\nRUN pip install --no-cache-dir -e \".[dev]\"\n\n# Expose the port\nEXPOSE 8000\n\n# Run the server with SSE transport\nCMD [\"mcp-simple-tool\", \"--transport\", \"sse\", \"--port\", \"8000\"] " } ] }

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/aigo666/mcp-framework'

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