talkops-helm-mcp-server 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- talkops_helm_mcp_server-0.3.0/.gitignore +69 -0
- talkops_helm_mcp_server-0.3.0/.python-version +1 -0
- talkops_helm_mcp_server-0.3.0/Dockerfile +117 -0
- talkops_helm_mcp_server-0.3.0/PKG-INFO +676 -0
- talkops_helm_mcp_server-0.3.0/README.md +647 -0
- talkops_helm_mcp_server-0.3.0/docker-entrypoint.sh +23 -0
- talkops_helm_mcp_server-0.3.0/docker-healthcheck.sh +12 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/__init__.py +4 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/config.py +83 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/exceptions/__init__.py +18 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/exceptions/custom.py +54 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/main.py +40 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/__init__.py +33 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/base.py +42 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/installation_prompts.py +69 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/registry.py +33 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/rollback_prompts.py +213 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/security_prompts.py +133 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/troubleshooting_prompts.py +155 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/upgrade_prompts.py +58 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/prompts/workflow_prompts.py +180 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/resources/__init__.py +29 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/resources/base.py +42 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/resources/chart_resources.py +117 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/resources/helm_resources.py +82 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/resources/kubernetes_resources.py +55 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/resources/registry.py +38 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/resources/static_resources.py +53 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/scripts/scrape_helm_best_practices.py +120 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/server/__init__.py +10 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/server/bootstrap.py +50 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/server/core.py +49 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/server/middleware.py +130 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/services/__init__.py +12 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/services/helm_service.py +1882 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/services/kubernetes_service.py +429 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/services/validation_service.py +206 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/static/HELM_BEST_PRACTICES.md +831 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/static/HELM_MCP_INSTRUCTIONS.md +190 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/static/HELM_WORKFLOW_GUIDE.md +554 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/static/__init__.py +0 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/__init__.py +31 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/base.py +45 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/discovery/__init__.py +6 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/discovery/chart_discovery.py +307 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/installation/__init__.py +6 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/installation/chart_management.py +553 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/kubernetes/__init__.py +6 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/kubernetes/cluster_ops.py +319 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/monitoring/__init__.py +6 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/monitoring/deployment_monitor.py +183 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/registry.py +38 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/validation/__init__.py +6 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/tools/validation/chart_validation.py +420 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/utils/__init__.py +11 -0
- talkops_helm_mcp_server-0.3.0/helm_mcp_server/utils/helm_helper.py +70 -0
- talkops_helm_mcp_server-0.3.0/pyproject.toml +54 -0
- talkops_helm_mcp_server-0.3.0/uv.lock +1224 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.so
|
|
6
|
+
.Python
|
|
7
|
+
build/
|
|
8
|
+
develop-eggs/
|
|
9
|
+
dist/
|
|
10
|
+
downloads/
|
|
11
|
+
eggs/
|
|
12
|
+
.eggs/
|
|
13
|
+
lib/
|
|
14
|
+
lib64/
|
|
15
|
+
parts/
|
|
16
|
+
sdist/
|
|
17
|
+
var/
|
|
18
|
+
wheels/
|
|
19
|
+
share/python-wheels/
|
|
20
|
+
*.egg-info/
|
|
21
|
+
.installed.cfg
|
|
22
|
+
*.egg
|
|
23
|
+
MANIFEST
|
|
24
|
+
|
|
25
|
+
# Virtual environments
|
|
26
|
+
.venv
|
|
27
|
+
env/
|
|
28
|
+
venv/
|
|
29
|
+
ENV/
|
|
30
|
+
|
|
31
|
+
# IDE
|
|
32
|
+
.idea/
|
|
33
|
+
.vscode/
|
|
34
|
+
*.swp
|
|
35
|
+
*.swo
|
|
36
|
+
|
|
37
|
+
# Testing
|
|
38
|
+
.tox/
|
|
39
|
+
.coverage
|
|
40
|
+
.coverage.*
|
|
41
|
+
htmlcov/
|
|
42
|
+
.pytest_cache/
|
|
43
|
+
|
|
44
|
+
# Ruff
|
|
45
|
+
.ruff_cache/
|
|
46
|
+
|
|
47
|
+
# Build
|
|
48
|
+
*.manifest
|
|
49
|
+
*.spec
|
|
50
|
+
.pybuilder/
|
|
51
|
+
target/
|
|
52
|
+
|
|
53
|
+
# Environments
|
|
54
|
+
.env
|
|
55
|
+
.env.local
|
|
56
|
+
.env.*.local
|
|
57
|
+
|
|
58
|
+
# PyPI
|
|
59
|
+
.pypirc
|
|
60
|
+
|
|
61
|
+
# Cursor
|
|
62
|
+
.cursorrules
|
|
63
|
+
.cursor/
|
|
64
|
+
|
|
65
|
+
tasks/
|
|
66
|
+
reference/
|
|
67
|
+
docs/
|
|
68
|
+
pyproject.toml.bak
|
|
69
|
+
tests/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Use Python 3.12 slim as base image
|
|
2
|
+
FROM python:3.12-slim AS uv
|
|
3
|
+
|
|
4
|
+
# Install the project into `/app`
|
|
5
|
+
WORKDIR /app
|
|
6
|
+
|
|
7
|
+
# Enable bytecode compilation
|
|
8
|
+
ENV UV_COMPILE_BYTECODE=1
|
|
9
|
+
|
|
10
|
+
# Copy from the cache instead of linking since it's a mounted volume
|
|
11
|
+
ENV UV_LINK_MODE=copy
|
|
12
|
+
|
|
13
|
+
# Prefer the system python
|
|
14
|
+
ENV UV_PYTHON_PREFERENCE=only-system
|
|
15
|
+
|
|
16
|
+
# Run without updating the uv.lock file like running with `--frozen`
|
|
17
|
+
ENV UV_FROZEN=true
|
|
18
|
+
|
|
19
|
+
# Copy the required files first
|
|
20
|
+
COPY pyproject.toml uv.lock ./
|
|
21
|
+
|
|
22
|
+
# Python optimization and uv configuration
|
|
23
|
+
ENV PIP_NO_CACHE_DIR=1 \
|
|
24
|
+
PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
25
|
+
|
|
26
|
+
# Install system dependencies and Python package manager
|
|
27
|
+
RUN apt-get update && \
|
|
28
|
+
apt-get install -y --no-install-recommends \
|
|
29
|
+
build-essential \
|
|
30
|
+
gcc \
|
|
31
|
+
libffi-dev \
|
|
32
|
+
libssl-dev \
|
|
33
|
+
cargo \
|
|
34
|
+
curl && \
|
|
35
|
+
rm -rf /var/lib/apt/lists/*
|
|
36
|
+
|
|
37
|
+
# Install uv package manager
|
|
38
|
+
RUN pip install uv
|
|
39
|
+
|
|
40
|
+
# Install the project's dependencies using the lockfile and settings
|
|
41
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
42
|
+
uv sync --python 3.12 --frozen --no-install-project --no-dev --no-editable
|
|
43
|
+
|
|
44
|
+
# Then, add the rest of the project source code and install it
|
|
45
|
+
# Installing separately from its dependencies allows optimal layer caching
|
|
46
|
+
COPY . /app
|
|
47
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
48
|
+
uv sync --python 3.12 --frozen --no-dev --no-editable
|
|
49
|
+
|
|
50
|
+
# Make the directory just in case it doesn't exist
|
|
51
|
+
RUN mkdir -p /root/.local
|
|
52
|
+
|
|
53
|
+
# Final stage - runtime image
|
|
54
|
+
FROM python:3.12-slim
|
|
55
|
+
|
|
56
|
+
# Place executables in the environment at the front of the path and include other binaries
|
|
57
|
+
ENV PATH="/app/.venv/bin:$PATH" \
|
|
58
|
+
PYTHONUNBUFFERED=1
|
|
59
|
+
|
|
60
|
+
# Install runtime dependencies and create application user
|
|
61
|
+
RUN apt-get update && \
|
|
62
|
+
apt-get install -y --no-install-recommends ca-certificates curl lsof && \
|
|
63
|
+
rm -rf /var/lib/apt/lists/* && \
|
|
64
|
+
update-ca-certificates && \
|
|
65
|
+
groupadd -r app && \
|
|
66
|
+
useradd -r -g app -d /app -s /bin/bash app
|
|
67
|
+
|
|
68
|
+
# Install kubectl (latest stable)
|
|
69
|
+
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
|
|
70
|
+
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \
|
|
71
|
+
&& rm kubectl
|
|
72
|
+
|
|
73
|
+
# Install Helm CLI
|
|
74
|
+
RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash && \
|
|
75
|
+
helm version
|
|
76
|
+
|
|
77
|
+
# Copy application artifacts from build stage
|
|
78
|
+
COPY --from=uv --chown=app:app /app/.venv /app/.venv
|
|
79
|
+
COPY --from=uv --chown=app:app /root/.local /root/.local
|
|
80
|
+
|
|
81
|
+
# Copy healthcheck and entrypoint scripts
|
|
82
|
+
COPY ./docker-healthcheck.sh /usr/local/bin/docker-healthcheck.sh
|
|
83
|
+
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
|
84
|
+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
85
|
+
|
|
86
|
+
# Run as non-root
|
|
87
|
+
USER app
|
|
88
|
+
|
|
89
|
+
# Expose port
|
|
90
|
+
EXPOSE 8765
|
|
91
|
+
|
|
92
|
+
# Set working directory
|
|
93
|
+
WORKDIR /app
|
|
94
|
+
|
|
95
|
+
# Default environment variables (can be overridden via docker run -e)
|
|
96
|
+
ENV MCP_SERVER_NAME=helm-mcp-server
|
|
97
|
+
ENV MCP_SERVER_VERSION=0.2.0
|
|
98
|
+
ENV MCP_TRANSPORT=http
|
|
99
|
+
ENV MCP_HOST=0.0.0.0
|
|
100
|
+
ENV MCP_PORT=8765
|
|
101
|
+
ENV MCP_PATH=/mcp
|
|
102
|
+
ENV MCP_ALLOW_WRITE=true
|
|
103
|
+
ENV MCP_HTTP_TIMEOUT=300
|
|
104
|
+
ENV MCP_HTTP_KEEPALIVE_TIMEOUT=5
|
|
105
|
+
ENV MCP_HTTP_CONNECT_TIMEOUT=60
|
|
106
|
+
ENV MCP_LOG_LEVEL=INFO
|
|
107
|
+
ENV MCP_LOG_FORMAT=json
|
|
108
|
+
ENV HELM_TIMEOUT=300
|
|
109
|
+
ENV K8S_TIMEOUT=30
|
|
110
|
+
ENV KUBECONFIG=/app/.kube/config
|
|
111
|
+
|
|
112
|
+
# Healthcheck
|
|
113
|
+
# HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "docker-healthcheck.sh" ]
|
|
114
|
+
|
|
115
|
+
# When running the container, the entrypoint will use environment variables with defaults
|
|
116
|
+
# Environment variables can be overridden via docker run -e flags
|
|
117
|
+
ENTRYPOINT ["docker-entrypoint.sh"]
|