44 Commits
Author SHA1 Message Date
Michael RollandClaude Opus 5.5 c219794850 2026.11.24.r040: neutrale Beispielnamen, PHP-8.5-Fix, Tests auf macOS grün
- curl_close() entfernt (wirkungslos seit PHP 8.0, ab 8.5 Deprecation-Meldung)
- readProcessOutput akzeptiert den allgemeinen Bun-Prozesstyp (tsc wieder fehlerfrei)
- Test-Fixtures nutzen den aufgelösten Temp-Pfad (/var -> /private/var auf macOS)
- Release r040 gebaut, r039 aus dist/ entfernt (bleibt in der Historie)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:08:53 +01:00
Michael RollandClaude Opus 5.5 74013e847c README auf Englisch und Deutsch; neutrale Beispielnamen statt echter Container und Benutzer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:19:04 +01:00
Mikei386andClaude Opus 5.5 a96b8f8534 release: MUA 2026.11.21.r039
WebGUI
- New "Verbindung" section with both endpoints (/mcp/full, /mcp/lite),
  copy buttons and a selectable default profile for /mcp.
- Notice for new, not yet enabled tools with a button to enable the new
  read-only tools; "Nur Lesen" and "Betrieb + Diagnose" presets extended.

New tools (verified against the Unraid webgui source where possible)
- VMs: list, inspect (disks, network, PCI/USB passthrough, snapshots,
  no passwords), start/shutdown/reboot/suspend/resume with state checks,
  autostart, force stop (critical).
- Cache/pool analysis (which shares fill a pool, cache setting, files
  the mover will never move), mover state/schedule/log, start mover.
- Parity status with schedule and history; start (non-correcting by
  default), pause, resume, cancel.
- docker.img fill level and breakdown; send and archive Unraid
  notifications.
- unraid_overview also reports a full docker.img, errors of the last
  parity check and crashed VMs.

Fixes
- Unread notifications in /tmp/notifications/unread were never read;
  the list and the overview now include them.

Lite profile: new unraid_vm group; storage, docker and system groups
extended with the new actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:15:22 +01:00
Mikei386andClaude Opus 5.5 a244195b94 release: MUA 2026.11.21.r037
Lite profile for small models
- /mcp/lite (or ?profile=lite, default via MUA_PROFILE) exposes the same
  functions as 9 grouped tools with an `action` field instead of 49
  single tools. Schema size: read-only preset ~1.6k vs 2.9k tokens,
  full access ~3.3k vs 6.9k tokens.
- Schemas are generated per request from the enabled tools only;
  permission checks always use the underlying full-profile tool.
- Tolerates common mix-ups (name/container, cmd/command, action
  spelling), drops and reports unknown parameters, names missing
  required parameters. Names of both profiles work in both profiles.

unraid_overview
- One call: array/parity, disks (errors, temperature, fill level),
  RAM/CPU/temperatures, crashed or unhealthy containers, updates and
  important notifications, sorted by severity, each with a ready-made
  `next` call in the client's profile. Reads only enabled sources and
  reports "unknown" (never "ok") when nothing could be read.

Container names
- Read actions resolve unique partial names (plex -> binhex-plex);
  write actions require the exact name and answer with a suggestion.
- Batch update accepts names separated by | or comma, or an array.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:48:05 +01:00
Mikei386andClaude Opus 5.5 b8d89ffd9c release: MUA 2026.11.20.r036
Read-only shell
- Accept a full command line (`command`) and parse it without /bin/sh:
  quotes, escapes, ~, pipes between allowed programs, ; && ||, globs in
  absolute paths; 2>&1 and 2>/dev/null are tolerated. Pipeline stages run
  with strictly single-quoted, pre-validated literals only.
- Per-program option policies that understand combined short flags,
  --opt=value and GNU abbreviations. Closes bypasses: ip abbreviations
  (ip a a / ip r d / ip link s), dmesg -c/-Tc/--console-level=, ss -tK/-D,
  date operands, sort -o, uniq output file, file -C.
- Block credential files (shadow, SSH private keys, mua.conf, admin token,
  /proc/*/environ, docker config.v2.json); redact password hashes, private
  PEM keys and WireGuard keys in output. MUA API key and admin token are
  never emitted by any tool.
- More diagnostic programs (echo, printf, sort, uniq, cut, tr, findmnt,
  sensors, zpool/zfs read verbs, mdcmd status, ...). grep without matches
  is reported as no_match instead of an error.

Process handling
- Spawn every child in its own process group; timeouts kill the whole
  tree. The MCP hard timeout kills exactly the processes of that call.
- Async jobs: command in its own file (exit no longer loses the exit
  code), new unraid_system_job_cancel, finished jobs pruned after 7 days.

Other
- Cache toolbox discovery briefly; validate and bound session IDs; /health
  shows version/port only with a valid token; constant-time admin token
  check; auto-granted tools are logged and shown in the WebGUI.
- Remove the legacy PHP server (mcp/), drop old packages from dist/, pin
  @types/bun.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:51:14 +01:00
Jean-Luc Picode f1df7f9f1c release: MUA 2026.11.05.r035
Offer explicit path-free Unraid WebGUI certificate reuse with validated generated-nginx/runtime-state discovery, named SNI choice, expert-path compatibility and no certificate generation or config execution. Preserve one-read PEM loading, trust/SAN verification, explicit restart and existing auth/tools; reject uncertain/stale configuration without fallback. Include publisher-derived fixtures for five Unraid versions, manual rollback-compatible writes and GUI-scoped discovery. Verified 109 source tests, 35 extracted-package transport tests, 52 PHP checks, 8 release gates and fresh-context independent review follow-up without blockers. No production installation or service/network/trust changes.
2026-11-05 19:19:30 +01:00
Jean-Luc Picode 4add04e94d release: MUA 2026.11.05.r034
Publish optional native HTTPS and explicit Unraid WebGUI PEM reuse from 1677894. Synchronize all release versions and TXZ/manifest/checksum, use transport-aware authenticated local post-install readiness, preserve r033, and document operator-only installation/trust/renewal. Verified 68 source tests, 31 extracted-r034 transport tests, 52 PHP checks and all 7 release/archive/hook gates; final independent fresh-context AI review passed without blocking security/logic findings. No production installation or configuration changes.
2026-11-05 17:50:41 +01:00
Jean-Luc Picode d58373e72f fix(tls): safely reuse combined Unraid WebGUI PEM bundles
Read identical cert/key paths once without persisting private-key copies. Cover self-signed CA:FALSE bundles in both block orders with verified TLS and authenticated MCP calls, public-only trust export, invalid bundles and explicit renewal/restart. Document explicit active-certificate selection and the existing Hermes per-server ssl_verify trust path from source/docs inspection only. Verified 68 source tests, 31 extracted-binary transport tests, 52 PHP checks and build/package gates. No main/release/production changes.
2026-11-05 10:05:01 +01:00
Jean-Luc Picode 454a3ed0fa feat: add opt-in native HTTPS with fail-closed TLS validation
Keep existing HTTP/auth/tool settings compatible; isolate TLS persistence, validate PEM/key/validity before startup and saves, and require explicit restart. Integrate local status, WebGUI TLS controls and renewal preflight without insecure trust bypasses. Add synthetic HTTP/TLS/MCP, WebGUI and service regression tests plus operator documentation. Existing r033 binaries and automatic update manifest remain untouched; packaging was exercised as a local development artifact.
2026-11-05 09:11:00 +01:00
Mikei386 8bf567f09c fix: bound process output memory and HTTP request bodies 2026-11-01 07:04:16 +01:00
Mikei386 6527281854 r032: fix share capacity and add native scoped administration 2026-10-24 22:59:58 +02:00
Mikei386 18d3c4d869 r031: fix shell spawn from deleted cwd and separate connection diagnostics 2026-10-12 11:54:44 +02:00
Mikei386 b72fdd90e0 r030: convert Unraid disk KiB values to bytes at source boundary 2026-10-11 17:10:22 +02:00
Mikei386 11f0b530ab Fix literal parsing of multiline Unraid notifications 2026-09-21 19:16:54 +02:00
Mikei386 c4fa819121 Add native toolbox MCP tools 2026-08-29 13:27:28 +02:00
Mikei386 68b8c7b803 r026: add dynamic agent toolbox integration 2026-08-29 12:44:29 +02:00
Mikei386 3e3a316afc feat: add asynchronous Unraid jobs 2026-08-24 14:52:19 +02:00
Mikei386 cafba2aa29 fix: prune matched media collection roots 2026-08-24 12:15:59 +02:00
Mikei386 088955ef5f fix: match inventory filters on basename only 2026-08-24 12:04:09 +02:00
Mikei386 e399b29576 fix: widen bounded collection discovery scan 2026-08-24 12:01:09 +02:00
Mikei386 63725eb3cd fix: make media inventory discovery deterministic 2026-08-24 11:55:30 +02:00
Mikei386 6d21db8a5c feat: add bounded file inventory for media audits 2026-08-24 11:49:12 +02:00
Mikei386 d480a39834 release: r019 idempotent batch container updates 2026-08-24 11:21:19 +02:00
Mikei386 387d644ed5 release: r016 fix Docker update cache matching 2026-08-23 14:27:46 +02:00
Mikei386 61d78c39f1 release: r014 normalize CA templates 2026-08-21 10:27:33 +02:00
Mikei386 83f4b8a2de release: r013 fix CA numeric overrides 2026-08-21 10:24:01 +02:00
Mikei386 308127876e release r012 fix CA container existence check 2026-08-21 10:20:46 +02:00
Mikei386 236eca9013 release r010 add Unraid health and Community Apps tools 2026-08-21 10:14:16 +02:00
Mikei386 04926d4264 release r009 fix Unraid WebGUI forms 2026-08-21 08:02:56 +02:00
Mikei386 3df9555e54 release r008 add safe read-only shell 2026-08-21 07:53:34 +02:00
Mikei386 9c517a73d0 release r007 security hardening and redesigned UI 2026-08-21 07:43:39 +02:00
Mikei386 9f3032cb8d fix packaging ownership for Unraid 2026-08-20 23:13:30 +02:00
Mikei386 808e2c32c2 r006: Add unraid_system_shell to WebGUI tool groups + update counts 2026-08-18 20:48:17 +02:00
Mikei386 5489117609 r004: Auto-Restart + WebGUI-Restart-Button + dynamische Version
- Auto-Restart: Binary erkennt Update auf Platte (mtime/size) → rc.mua restart
- WebGUI: 'MUA neu starten'-Button (POST /restart über Config-Server)
- POST-INSTALL/UPDATE: Service wird nach Installation/Update automatisch neu gestartet
- WebGUI: Version dynamisch aus /health (kein hartkodiertes rNNN)
- MUA_VERSION in helpers.ts auf r004
- .txz neu gepackt, SHA256 aktualisiert
2026-08-18 11:40:17 +02:00
Mikei386 308dee2441 r003: Version erhöht (r002→r003), package.sh liest Version aus package.json
- Version 2026.08.18.r003 (Unraid erkennt Update)
- package.sh: Version aus package.json statt hartkodiert
- .txz neu gepackt, SHA256 aktualisiert
2026-08-18 11:22:40 +02:00
Mikei386 852bf51178 r002: Config-Port 3003→3013 (Port-Konflikt), robustes Fallback
- Config-Server wechselt auf 127.0.0.1:3013 (3003 war belegt)
- Binary: Port belegt → Warnung + weiterlaufen (kein Crash)
- mua.page: Config-Port 3013
- .txz neu gepackt, SHA256 aktualisiert
2026-08-18 11:17:31 +02:00
Mikei386 70af901f44 r002: API-Key-Auth + Einstellungs-Maske (API-Key generieren, Tool-Checkboxen)
- src/auth.ts: Config-Management (API-Key + Tool-Filter), timing-safe Auth
- src/index.ts: Auth-Check auf /mcp, Tool-Filter in tools/list + tools/call,
  Config-Server auf 127.0.0.1:3003 (nur localhost)
- scripts/mua.page: Einstellungs-UI (API-Key generieren + Tool-Checkboxen)
- scripts/rc.mua: Config-Dir sicherstellen
- Version: 2026.08.18.r002
2026-08-18 10:53:07 +02:00
Mikei386 86fd8114fa Versionierungsschema: Release-Counter rNNN (2026.08.18 → 2026.08.18.r001)
Format: YYYY.MM.DD.rNNN — Unraid erkennt Updates korrekt.
r001 = erste Release, r002 = zweite, etc.

Geändert: plugin/mua.plg, plugin/plugin.json, src/helpers.ts,
mcp/server.php, mcp/helpers.php, package.json, scripts/mua.page,
scripts/package.sh

Neues .txz: mua-2026.08.18.r001-x86_64-1.txz (24MB, xz)
SHA256: 723a5b7b3302af9c5da4abc665af5361b55c41484ada1d95be259ad06776b49f
2026-08-18 08:40:31 +02:00
Mikei386 0a382ccb8d Fix: .txz war gzip statt xz (tar czf → tar cf | xz -9)
macOS bsdtar cJf erzeugt gzip, nicht xz. Unraids upgradepkg
erwartet echtes xz. Fix: tar cf - | xz -9 -c.

Neues SHA256: a9ce6500a395dbfb7c531bf50b83176997738d78a3ad95520c45ae2470018e00
Größe: 24MB (statt 35MB gzip)
2026-08-18 08:17:11 +02:00
Mikei386 2a5b1bc5f0 Versionierungsschema auf Datumsformat geändert (1.0.0 → 2026.08.18)
- plugin/mua.plg: version-Entity, txzURL, txzSHA256, CHANGES, FILE-Name
- plugin/plugin.json: version
- src/helpers.ts: MUA_VERSION
- mcp/server.php, mcp/helpers.php: MUA_VERSION
- package.json: version
- scripts/mua.page: Versionsanzeige
- scripts/package.sh: Default-Version
- Binary neu kompiliert, .txz neu gebaut (34MB)
- SHA256: 4189f9bd085806535306a59de5a4fe38abe3b883f87f9d900d2f977528913a1a
2026-08-18 08:12:12 +02:00
Mikei386 e82b2280f8 Refactor: PHP-Built-in-Server durch TypeScript-Binary (Bun Runtime) ersetzt
- src/*.ts: Port von mcp/*.php (helpers, tools, server)
- Bun.serve() statt php -S — production-grade HTTP, POST funktioniert
- dist/mua-1.0.0-x86_64-1.txz: Slackware-Paket (Binary + rc.mua + mua.page + PHP-Helper)
- plugin/mua.plg: .txz-Installation via upgradepkg
- scripts/rc.mua: Binary statt php -S
- scripts/mua.page: Binary-Info statt PHP-Version
- scripts/package.sh: .txz-Builder

Fix: MCP-POST-Endpunkt lieferte leeren Body (php -S Limitation).
Bun.serve() löst das Problem.
2026-08-18 08:02:39 +02:00
Mikei386 3de8cb055a Refactor: Doku-konformes Plugin-Format (DOCTYPE Entities, Method=update, .page-WebUI) 2026-08-18 07:35:49 +02:00
Mikei386 1f1e67a3ab MUA: Echte Unraid-Plugin-Struktur
- plugin/mua.plg: <!DOCTYPE PLUGIN> XML mit <FILE Run> + <INLINE>
- plugin/plugin.json: Metadaten
- scripts/rc.mua: SysVinit-Service (statt systemd)
- scripts/plugin.php: WebGUI-Tab (Settings > MUA)
- README.md: Aktualisiert
- Alte Dateien entfernt (MUA.plg, mua.service, install/update/remove.sh)
2026-08-18 06:36:57 +02:00
Mikei386 f4e66ea5a1 MUA v1.0.0 — Mikes Unraid Agent
Natives Unraid-Plugin: 21 Docker-, Netzwerk- und System-Tools
als MCP-Server (Streamable HTTP) auf Port 3002.

- mcp/server.php: MCP-Server (JSON-RPC 2.0, Streamable HTTP)
- mcp/helpers.php: Lokale Tool-Implementierungen (kein SSH)
- mcp/tools.php: 21 Tool-Definitionen
- mcp/selftest.php: Selftest (12 Checks)
- scripts/unraid-docker-mcp-helper.php: Write-Operationen
- scripts/mua.service: systemd-Service
- scripts/install.sh, update.sh, remove.sh: Plugin-Scripts
- MUA.plg: Plugin-Manifest
2026-08-17 22:00:48 +02:00