Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,37 @@ stoplight:
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/stoplight:${OPENAPI_VERSION}
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/stoplight:latest

mcp-server:
FROM astral/uv:0.10.7-python3.13-trixie-slim

RUN groupadd --system --gid 999 nonroot \
&& useradd --system --gid 999 --uid 999 --create-home nonroot
USER nonroot

WORKDIR /app

ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV UV_SYSTEM_PYTHON=1
ENV UV_LINK_MODE=copy

COPY mcp-server/pyproject.toml mcp-server/uv.lock .
RUN uv sync --frozen --no-cache --no-dev

COPY mcp-server/src /app/src

# Run the application using uv
ENTRYPOINT ["uv"]
CMD ["run", "src/main.py"]

ARG --required OPENAPI_VERSION
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/mcp-server:${OPENAPI_VERSION}
SAVE IMAGE --push ${HARBOR_DOCKER_REGISTRY}/mcp-server:latest

main:
BUILD +swagger
BUILD +stoplight
BUILD +docs
BUILD +r-api-client
BUILD +python-api-client
BUILD +mcp-server
2 changes: 2 additions & 0 deletions mcp-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.venv
.env
1 change: 1 addition & 0 deletions mcp-server/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.14.4
11 changes: 11 additions & 0 deletions mcp-server/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[project]
name = "mcp-server"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"asyncio>=4.0.0",
"fastmcp>=3.1.0",
"httpx>=0.28.1",
]
Loading
Loading