Skip to main content

Automated server setup and application deployment system with AI control via MCP (v0.2.0: DNS-first architecture)

Project description

🚀 LivChat Setup

Automated server setup and deployment with AI control

Deploy complete stacks (N8N, Chatwoot, Portainer) on VPS with one command - via Python or Claude AI.

🧪 Beta aberto - Sistema funcional, em desenvolvimento ativo


⚡ Instalação

# Python package
pip install livchat-setup

# MCP server (para usar com Claude)
npm install -g @pedrohnas/livchat-setup-mcp

🚀 Quick Start

1. Configure credenciais

# Start API server
livchat-setup serve

# Em outro terminal, configure via Claude ou Python:
# - Hetzner API token
# - Cloudflare API key + email

2. Deploy via Claude AI

// Configure Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "livchat-setup": {
      "command": "npx",
      "args": ["@pedrohnas/livchat-setup-mcp"]
    }
  }
}

Comandos naturais:

"Create server prod-01 type cx21 in region nbg1"
"Setup with DNS zone example.com subdomain prod"
"Deploy N8N"  → Auto-instala postgres + redis!

3. Deploy via Python

from orchestrator import Orchestrator

orch = Orchestrator()
orch.init()

# Create + setup server (~3 min)
orch.create_server_sync("prod-01", "cx21", "nbg1")
orch.setup_server_sync("prod-01", zone_name="example.com", subdomain="prod")

# Deploy infrastructure + app
orch.deploy_app_sync("prod-01", "infrastructure")  # Traefik + Portainer
orch.deploy_app_sync("prod-01", "n8n")             # Auto-resolves dependencies!

✨ Principais Features

  • 🤖 AI Control: Gerencie servidores conversando com Claude
  • 📦 Auto Dependencies: Deploy N8N instala postgres + redis automaticamente
  • 🌐 DNS Automático: Apps recebem domínios prontos (n8n.lab.example.com)
  • ⚡ Async Jobs: Operações longas rodam em background com tracking
  • 🔐 Secrets Management: Credenciais criptografadas com Ansible Vault
  • 🐳 Docker Swarm: Orquestração completa com Traefik SSL automático

📦 Apps Disponíveis

Categoria Apps
Infrastructure Traefik, Portainer
Databases PostgreSQL, Redis
Automation N8N (auto-instala postgres + redis)
Communication Chatwoot

Cada app inclui:

  • Domain + SSL automático via Traefik
  • Resolução de dependências
  • Health checks

🔧 Configuração

Secrets necessários

# Via MCP tool "manage-secrets" ou Python
hetzner_token          # API token Hetzner
cloudflare_api_key     # Cloudflare API key
cloudflare_email       # Email do Cloudflare

Storage local

~/.livchat/
├── state.json              # Estado dos servidores + apps
├── credentials.vault       # Secrets criptografados
└── ssh_keys/              # Chaves SSH

🧪 Development

# Run tests
pytest tests/unit/           # Unit tests
pytest tests/integration/    # Integration tests
cd mcp-server && npm test    # MCP E2E tests

# Dev setup
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Structure:

src/          → Core Python (orchestrator, providers, deployer)
apps/         → App definitions (YAML)
ansible/      → Playbooks (setup, deploy)
mcp-server/   → TypeScript MCP integration

📖 Docs

🗺️ Roadmap

v0.3.0 (próximo)

  • DigitalOcean provider
  • Web dashboard
  • Backup automation

v1.0.0 (futuro)

  • Kubernetes support
  • Multi-tenancy
  • GitHub Actions integration

📄 Licença

Licença Provisória - ver LICENSE para detalhes

Resumo: Código aberto para aprendizado, uso comercial requer autorização


💝 Inspiração & Agradecimentos

Willian - Orion Design Projeto inspirado no SetupOrion

Tecnologias:


Made with ❤️ by LivChat Team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livchat_setup-0.1.4.tar.gz (87.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livchat_setup-0.1.4-py3-none-any.whl (103.3 kB view details)

Uploaded Python 3

File details

Details for the file livchat_setup-0.1.4.tar.gz.

File metadata

  • Download URL: livchat_setup-0.1.4.tar.gz
  • Upload date:
  • Size: 87.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for livchat_setup-0.1.4.tar.gz
Algorithm Hash digest
SHA256 84748987f2a77549979fd72e17afa224cfc5a75af5ba8c64bd9246339a4a976f
MD5 0fd6100f6e27575fe9aa938d655c888b
BLAKE2b-256 49d2bab5281060f06086036f2fc12bbac6ccfae0ea506dbddf1d3bc9357c699f

See more details on using hashes here.

File details

Details for the file livchat_setup-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: livchat_setup-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 103.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for livchat_setup-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1d48a1ba9f7464c881cf21ca0355d8515cc22de59be7331fa0c2d6ee19ff6480
MD5 fae4b9f2e46af34ae4aba2b004b68a33
BLAKE2b-256 ba0a542d69a1fd81c17abb9f484b9c02f43ab15ec7517bf3859a67b0e4a6a1ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page