Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
# =============================================================================
# repowise — MCP server image (stdio)
# =============================================================================
# A lean image that runs ONLY the repowise MCP server, speaking JSON-RPC over
# stdio. This is the image MCP hosts and directories (e.g. Glama) build to start
# the server and run introspection (initialize + tools/list). It carries no web
# UI and exposes no ports.
#
# Build:
# docker build -t repowise-mcp -f docker/Dockerfile.mcp .
#
# Run (mount a repo so the tools can serve it; tools/list works without one):
# docker run --rm -i -v /path/to/your/repo:/repo -w /repo repowise-mcp
#
# For the full API + Web UI stack, use docker/Dockerfile instead.
# =============================================================================
FROM python:3.12-slim
# git is required at runtime (repowise reads git history via GitPython).
RUN apt-get update && apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
# Install the published package. The base install already ships `repowise mcp`.
RUN pip install --no-cache-dir repowise
# Run as a non-root user.
RUN useradd -r -m -d /home/repowise -s /sbin/nologin repowise
USER repowise
WORKDIR /repo
# The MCP server communicates over stdio; do not buffer stdout.
ENV PYTHONUNBUFFERED=1
ENTRYPOINT ["repowise", "mcp"]