Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 19, 2025

Provides containerized deployment options for the MCP HTTP mock server to support external HTTPS MCP deployments.

Docker Images

Three Dockerfiles for different base environments:

  • Dockerfile.ubuntu - Ubuntu 24.04 (recommended)
  • Dockerfile.fedora - Fedora latest
  • Dockerfile.rhel - RHEL UBI 9 (enterprise)

All run as non-root user with health checks and minimal layers.

Kubernetes Helm Chart

Production-ready chart in helm/mcp-server/ with:

  • Deployment with configurable replicas (1-N)
  • Service types: ClusterIP, NodePort, LoadBalancer
  • Horizontal Pod Autoscaler (3-10 pods)
  • Ingress with TLS support
  • Security contexts (non-root, dropped capabilities)
  • ConfigMap/Secret integration
  • Network policies and pod disruption budgets

Example deployment:

# Development
helm install mcp-dev ./helm/mcp-server -f values-dev.yaml --namespace mcp-dev

# Production with HA
helm install mcp-prod ./helm/mcp-server \
  --set replicaCount=3 \
  --set autoscaling.enabled=true \
  --set service.type=LoadBalancer \
  --namespace mcp-prod

Documentation

  • DOCKER_K8S_DEPLOYMENT.md - Comprehensive deployment guide with multiple scenarios
  • QUICKSTART.md - Quick reference commands
  • BUILD_NOTES.md - Validation results and environment notes
  • Updated main README with deployment options

Helm chart validated: helm lint passes with 0 errors.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Example docker file for mcp</issue_title>
<issue_description>For the external https mCP mock. Make a rhel or fedora and Ubuntu device docker file. Make an example k8 helm chart for how many the mCP couple be deployed. </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 19, 2025 14:00
Co-authored-by: garland3 <1162675+garland3@users.noreply.github.com>
Co-authored-by: garland3 <1162675+garland3@users.noreply.github.com>
Copilot AI changed the title [WIP] Add example Docker file for mCP Add Docker and Kubernetes deployment for MCP HTTP mock server Nov 19, 2025
Copilot AI requested a review from garland3 November 19, 2025 14:09
Copilot finished work on behalf of garland3 November 19, 2025 14:09
@garland3 garland3 marked this pull request as ready for review November 20, 2025 01:32
@github-actions
Copy link

🔒 Security Scan Results

Security Scan Summary

Scan Results

Python SAST (Bandit)

⚠️ Security issues found in Python code

Recommendations

  • Review all SARIF files uploaded to GitHub Security tab
  • Address high and critical severity vulnerabilities immediately
  • Run npm audit fix and pip-audit locally to fix dependencies
  • Consider implementing additional security controls

@garland3 garland3 merged commit 260af4a into main Nov 20, 2025
9 checks passed
@garland3 garland3 deleted the copilot/add-example-docker-file branch November 20, 2025 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example docker file for mcp

2 participants