-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
47 lines (40 loc) · 1.76 KB
/
Copy pathContainerfile
File metadata and controls
47 lines (40 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# MCP GitHub CrunchTools Container
# Built on Hummingbird Python image (Red Hat UBI-based) for enterprise security
#
# Build:
# podman build -t quay.io/crunchtools/mcp-github .
#
# Run:
# podman run -e GITHUB_TOKEN=your_token quay.io/crunchtools/mcp-github
#
# With Claude Code:
# claude mcp add mcp-github-crunchtools \
# --env GITHUB_TOKEN=your_token \
# -- podman run -i --rm -e GITHUB_TOKEN quay.io/crunchtools/mcp-github
# Use Hummingbird Python image (Red Hat UBI-based with Python pre-installed)
FROM quay.io/hummingbird/python:latest
# Labels for container metadata
LABEL name="mcp-github-crunchtools" \
version="0.3.0" \
summary="Secure MCP server for GitHub issues, pull requests, files, and search" \
description="A security-focused MCP server for GitHub built on Red Hat UBI" \
maintainer="crunchtools.com" \
url="https://github.com/crunchtools/mcp-github" \
io.k8s.display-name="MCP GitHub CrunchTools" \
io.openshift.tags="mcp,github,devops" \
org.opencontainers.image.source="https://github.com/crunchtools/mcp-github" \
org.opencontainers.image.description="Secure MCP server for GitHub issues, pull requests, files, and search" \
org.opencontainers.image.licenses="AGPL-3.0-or-later"
# Set working directory
WORKDIR /app
# Copy project files
COPY pyproject.toml README.md ./
COPY src/ ./src/
# Install the package and dependencies
RUN ["python", "-m", "pip", "install", "--no-cache-dir", "."]
# Verify installation
RUN ["python", "-c", "from mcp_github_crunchtools import main; print('Installation verified')"]
# Default: stdio transport (use -i with podman run)
# HTTP: --transport streamable-http (use -d -p 8014:8014 with podman run)
EXPOSE 8014
ENTRYPOINT ["python", "-m", "mcp_github_crunchtools"]