🚢 MCP-Server für automatisierte Deployments und Build-Jobs
- add badges for version, CI status, license, and NPM - update installation instructions to use npm install @customable/deployment-mcp - add Claude Code MCP configuration examples - improve documentation structure 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| .gitignore | ||
| CHANGELOG.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
🚢 deployment-mcp
MCP Server for automated deployments and build jobs with CI/CD integration.
Features
Core Features
- 🚀
deploy- Start deployment to environment - 🔙
rollback- Rollback to previous version - 📊
get_status- Get deployment status - 📋
list_deployments- List deployment history - 🔄
trigger_build- Trigger CI/CD build
Advanced Features
- 📊 Build log retrieval
- 💬 Notifications to issues/MRs
- 🐳 Docker/Kubernetes deployment support
- 🔐 Secrets management integration
- 📈 Deployment metrics
Installation
npm install
npm run build
Configuration
Environment variables:
DEPLOY_TYPE- Deployment type (docker, k8s, ssh, custom) (default: custom)DEPLOY_SCRIPT- Path to deployment scriptK8S_CONFIG- Path to Kubernetes config (if using k8s)DOCKER_HOST- Docker host URL (if using docker)GITLAB_URL- GitLab instance URL (for CI/CD integration)GITLAB_TOKEN- GitLab API tokenGITHUB_TOKEN- GitHub token (for Actions integration)
Usage
export DEPLOY_TYPE=docker
export DEPLOY_SCRIPT=/path/to/deploy.sh
npm start
Examples
Deploy to environment
{
"tool": "deploy",
"arguments": {
"environment": "production",
"version": "v1.2.3"
}
}
Rollback deployment
{
"tool": "rollback",
"arguments": {
"environment": "production"
}
}
Get deployment status
{
"tool": "get_status",
"arguments": {
"environment": "production"
}
}
Deployment Types
Docker
Deploy using Docker Compose or Docker Swarm.
Kubernetes
Deploy to Kubernetes cluster using kubectl.
SSH
Deploy via SSH to remote servers.
Custom Script
Run custom deployment scripts.
Security
- Never log or expose secrets in responses
- Use environment variables for sensitive data
- Validate all inputs before execution
- Implement proper access control
License
MIT