FROM python:3.11-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && rm -rf /var/lib/apt/lists/*

# Install python dependencies
RUN pip install --no-cache-dir \
    mcp \
    httpx \
    pydantic

# Copy source code
COPY ./src /app/src
COPY ./pyproject.toml /app/pyproject.toml

# Set python path
ENV PYTHONPATH=/app

# Default command (stdio mode)
CMD ["python", "-m", "src.server"]
