mirror of
https://github.com/Dasemu/remote-mcp-manager.git
synced 2026-11-28 00:07:08 +00:00
feat: SQLite-backed installations, REST API, admin auth and web UI
Replaces the slice-2 hardcoded installation with a full install/deploy pipeline: - SQLite persistence (better-sqlite3) with a single `installations` table and a draft -> cloning -> building -> built -> starting -> running/error/stopped state machine; env vars and bearer tokens are encrypted at rest (AES-256-GCM, key derived from MASTER_KEY). - Build/run orchestration: git clone (+ .env.example key detection), `nixpacks build` as a logged subprocess, dockerode container run/stop with forced host/port env vars and a TCP-connect health check before flipping an installation to "running". - REST API (installations CRUD, build/deploy/redeploy, logs, token regeneration) behind single-operator session-cookie auth with a basic login lockout. - Vite+React admin SPA: login, installation list, install wizard, and a detail page to configure env vars, trigger build/deploy/redeploy, view the build log, and copy the authenticated /mcp/<slug> URL. - Dockerfile (multi-stage, pulls in nixpacks + the Docker CLI) and docker-compose.yml for production deployment. Validated end-to-end against a real cloned repo: draft creation with env-key detection, build, the error path on a failed health check, and delete, all through the live API. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
309e6aedc3
commit
b8f5d8253f
33 files changed
+3502
-42
No files matched your search
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
manager:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
environment:
|
||||
PORT: 3000
|
||||
DOCKER_SOCKET_PATH: /var/run/docker.sock
|
||||
MCP_NETWORK_NAME: mcp-net
|
||||
DATA_DIR: /repo/data
|
||||
PUBLIC_BASE_URL: ${PUBLIC_BASE_URL}
|
||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
|
||||
SESSION_SECRET: ${SESSION_SECRET}
|
||||
MASTER_KEY: ${MASTER_KEY}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./data:/repo/data
|
||||
networks:
|
||||
- mcp-net
|
||||
|
||||
networks:
|
||||
mcp-net:
|
||||
name: mcp-net
|
||||
Reference in new issue
Block a user