talkops-argocd-mcp-server 0.2.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_argocd_mcp_server-0.2.0/.dockerignore +61 -0
- talkops_argocd_mcp_server-0.2.0/.gitignore +67 -0
- talkops_argocd_mcp_server-0.2.0/.python-version +1 -0
- talkops_argocd_mcp_server-0.2.0/Dockerfile +116 -0
- talkops_argocd_mcp_server-0.2.0/PKG-INFO +607 -0
- talkops_argocd_mcp_server-0.2.0/README.md +578 -0
- talkops_argocd_mcp_server-0.2.0/USER_GUIDE.md +232 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/__init__.py +0 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/config.py +104 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/exceptions/__init__.py +31 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/exceptions/custom.py +79 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/main.py +39 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/prompts/__init__.py +25 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/prompts/base.py +31 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/prompts/deployment_workflows.py +529 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/prompts/registry.py +37 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/prompts/repository_workflows.py +1422 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/resources/__init__.py +23 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/resources/argocd_resources.py +270 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/resources/base.py +31 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/resources/registry.py +37 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/resources/workflow_resource.py +52 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/scripts/fetch_argocd_token.py +171 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/server/__init__.py +4 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/server/bootstrap.py +45 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/server/core.py +48 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/server/middleware.py +126 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/services/__init__.py +4 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/services/argocd_mgmt.py +885 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/services/argocd_service.py +794 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/static/ARGOCD_MCP_INSTRUCTIONS.md +164 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/static/ARGOCD_WORKFLOW.md +224 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/__init__.py +28 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/application_manager/__init__.py +3 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/application_manager/app_management.py +427 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/base.py +31 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/deployment_executor/__init__.py +3 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/deployment_executor/deployment_operations.py +614 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/registry.py +37 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/repository_mgmt/__init__.py +6 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/repository_mgmt/project_operations.py +416 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/tools/repository_mgmt/repository_operations.py +717 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/utils/__init__.py +0 -0
- talkops_argocd_mcp_server-0.2.0/argocd_mcp_server/utils/argocd_helper.py +51 -0
- talkops_argocd_mcp_server-0.2.0/docker-compose.yml +75 -0
- talkops_argocd_mcp_server-0.2.0/docker-entrypoint.sh +57 -0
- talkops_argocd_mcp_server-0.2.0/docker-healthcheck.sh +12 -0
- talkops_argocd_mcp_server-0.2.0/pyproject.toml +52 -0
- talkops_argocd_mcp_server-0.2.0/uv.lock +1605 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.so
|
|
6
|
+
.Python
|
|
7
|
+
*.egg-info/
|
|
8
|
+
dist/
|
|
9
|
+
build/
|
|
10
|
+
*.egg
|
|
11
|
+
.pytest_cache/
|
|
12
|
+
.coverage
|
|
13
|
+
htmlcov/
|
|
14
|
+
.tox/
|
|
15
|
+
.hypothesis/
|
|
16
|
+
|
|
17
|
+
# Virtual environments
|
|
18
|
+
.venv/
|
|
19
|
+
venv/
|
|
20
|
+
ENV/
|
|
21
|
+
env/
|
|
22
|
+
|
|
23
|
+
# IDEs
|
|
24
|
+
.vscode/
|
|
25
|
+
.idea/
|
|
26
|
+
*.swp
|
|
27
|
+
*.swo
|
|
28
|
+
*~
|
|
29
|
+
.DS_Store
|
|
30
|
+
|
|
31
|
+
# Logs
|
|
32
|
+
*.log
|
|
33
|
+
logs/
|
|
34
|
+
|
|
35
|
+
# Testing
|
|
36
|
+
.pytest_cache/
|
|
37
|
+
.coverage
|
|
38
|
+
coverage.xml
|
|
39
|
+
*.cover
|
|
40
|
+
|
|
41
|
+
# Documentation
|
|
42
|
+
docs/
|
|
43
|
+
*.md
|
|
44
|
+
!README.md
|
|
45
|
+
|
|
46
|
+
# Git
|
|
47
|
+
.git/
|
|
48
|
+
.gitignore
|
|
49
|
+
.gitattributes
|
|
50
|
+
|
|
51
|
+
# CI/CD
|
|
52
|
+
.github/
|
|
53
|
+
.gitlab-ci.yml
|
|
54
|
+
|
|
55
|
+
# Miscellaneous
|
|
56
|
+
tasks/
|
|
57
|
+
reference/
|
|
58
|
+
*.bak
|
|
59
|
+
*.tmp
|
|
60
|
+
.env
|
|
61
|
+
.env.local
|
|
@@ -0,0 +1,67 @@
|
|
|
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/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
pip install --no-cache-dir uv && \
|
|
36
|
+
rm -rf /var/lib/apt/lists/*
|
|
37
|
+
|
|
38
|
+
# Install the project's dependencies using the lockfile and settings
|
|
39
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
40
|
+
uv sync --python 3.12 --frozen --no-install-project --no-dev --no-editable
|
|
41
|
+
|
|
42
|
+
# Then, add the rest of the project source code and install it
|
|
43
|
+
# Installing separately from its dependencies allows optimal layer caching
|
|
44
|
+
COPY . /app
|
|
45
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
46
|
+
uv sync --python 3.12 --frozen --no-dev --no-editable
|
|
47
|
+
|
|
48
|
+
# Make the directory just in case it doesn't exist
|
|
49
|
+
RUN mkdir -p /root/.local
|
|
50
|
+
|
|
51
|
+
# ============================================
|
|
52
|
+
# Final stage - runtime image
|
|
53
|
+
# ============================================
|
|
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, create application user, and set up directories
|
|
61
|
+
RUN apt-get update && \
|
|
62
|
+
apt-get install -y --no-install-recommends \
|
|
63
|
+
ca-certificates \
|
|
64
|
+
curl \
|
|
65
|
+
lsof && \
|
|
66
|
+
rm -rf /var/lib/apt/lists/* && \
|
|
67
|
+
update-ca-certificates && \
|
|
68
|
+
groupadd -r app && \
|
|
69
|
+
useradd -r -g app -d /app -s /bin/bash app && \
|
|
70
|
+
mkdir -p /app/.ssh /app/logs && \
|
|
71
|
+
chown -R app:app /app
|
|
72
|
+
|
|
73
|
+
# Copy application artifacts from build stage
|
|
74
|
+
COPY --from=uv --chown=app:app /app/.venv /app/.venv
|
|
75
|
+
COPY --from=uv --chown=app:app /root/.local /root/.local
|
|
76
|
+
|
|
77
|
+
# Copy healthcheck and entrypoint scripts with execute permissions
|
|
78
|
+
COPY --chmod=755 ./docker-healthcheck.sh /usr/local/bin/docker-healthcheck.sh
|
|
79
|
+
COPY --chmod=755 ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
|
80
|
+
|
|
81
|
+
# Run as non-root user
|
|
82
|
+
USER app
|
|
83
|
+
|
|
84
|
+
# Set working directory
|
|
85
|
+
WORKDIR /app
|
|
86
|
+
|
|
87
|
+
# Default environment variables (can be overridden via docker run -e)
|
|
88
|
+
# MCP Server Configuration
|
|
89
|
+
ENV MCP_SERVER_NAME=argocd-mcp-server \
|
|
90
|
+
MCP_SERVER_VERSION=0.1.0 \
|
|
91
|
+
MCP_TRANSPORT=http \
|
|
92
|
+
MCP_HOST=0.0.0.0 \
|
|
93
|
+
MCP_PORT=8765 \
|
|
94
|
+
MCP_PATH=/sse \
|
|
95
|
+
MCP_ALLOW_WRITE=false \
|
|
96
|
+
MCP_HTTP_TIMEOUT=300 \
|
|
97
|
+
MCP_HTTP_KEEPALIVE_TIMEOUT=5 \
|
|
98
|
+
MCP_HTTP_CONNECT_TIMEOUT=60 \
|
|
99
|
+
MCP_LOG_LEVEL=INFO \
|
|
100
|
+
MCP_LOG_FORMAT=json
|
|
101
|
+
|
|
102
|
+
# ArgoCD Configuration
|
|
103
|
+
ENV ARGOCD_SERVER_URL=https://argocd-server.argocd.svc:443 \
|
|
104
|
+
ARGOCD_INSECURE=false \
|
|
105
|
+
ARGOCD_TIMEOUT=300
|
|
106
|
+
|
|
107
|
+
# Expose MCP server port
|
|
108
|
+
EXPOSE 8765
|
|
109
|
+
|
|
110
|
+
# Health check to ensure server is running
|
|
111
|
+
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
|
|
112
|
+
CMD [ "docker-healthcheck.sh" ]
|
|
113
|
+
|
|
114
|
+
# When running the container, the entrypoint will use environment variables with defaults
|
|
115
|
+
# Environment variables can be overridden via docker run -e flags
|
|
116
|
+
ENTRYPOINT ["docker-entrypoint.sh"]
|