Files
Charles N Wyble afa88abda4 fix(mcp-ansible): use local source install instead of uvx
The mcp-ansible package is not published to PyPI, causing uvx to fail.
Changed entrypoint to run directly from local source installation:
- Uses `uv pip install -e .` for local editable install
- Entrypoint: `python src/ansible_mcp/server.py`
- MCP handshake validated: ansible-mcp v1.26.0

Status: WORKING (29/38 MCP servers production ready)

💘 Generated with Crush

Assisted-by: GLM-5 via Crush <crush@charm.land>
2026-02-27 11:21:55 -05:00

20 lines
415 B
Docker

FROM python:3.12-slim
# Install uv for faster package management
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
# Copy source code
COPY . .
# Install the project with uv
RUN uv venv && uv pip install --no-cache -e .
# Set up environment
ENV PYTHONUNBUFFERED=1
ENV PATH=/app/.venv/bin:$PATH
# Run directly from local install, not via uvx
ENTRYPOINT ["python", "src/ansible_mcp/server.py"]