Refactor code structure for improved readability and maintainability

This commit is contained in:
sha
2026-03-20 13:30:53 +02:00
commit b56cc63c84
10 changed files with 918 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.12-slim
WORKDIR /app
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# Copy dependency files first for layer caching
COPY pyproject.toml uv.lock* ./
# Install deps into system python (no venv needed in container)
RUN uv pip install --system mcp httpx
COPY server.py .
ENV MCP_TRANSPORT=http
ENV MCP_HOST=0.0.0.0
ENV MCP_PORT=8000
EXPOSE 8000
CMD ["python", "server.py"]