Skip to main content
Glama
Dockerfile948 B
FROM python:3.11-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* # Create non-root user RUN groupadd -r mcpuser && useradd -r -g mcpuser mcpuser # Copy and install Python dependencies COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY app ./app # Set ownership to non-root user RUN chown -R mcpuser:mcpuser /app # Switch to non-root user USER mcpuser ENV SMARTTHINGS_BASE_URL=https://api.smartthings.com/v1 \ MCP_TRANSPORT=stdio # Health check (for debugging/monitoring, though MCP is stdio-based) HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD python -c "import sys; sys.exit(0)" # STDIO transport for MCP clients; no port exposure by default. CMD ["python", "-m", "app.main"]

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/bjornhovd/Samsung-SmartThings-MCP'

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