Files
MUA-Mikes-Unraid-Agent/AGENTS.md
T
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

2.5 KiB

Agent instructions for MUA

This repository already contains a complete, production-ready MCP server for Unraid. Do not design a second Unraid MCP, do not deploy another Deemix-style sidecar and do not enable Unraid GraphQL. The normal task is to install or verify MUA on Unraid and connect an MCP client such as Hermes directly to it.

Canonical paths

  • MCP implementation: src/
  • Unraid plugin manifest: plugin/mua.plg
  • packaged releases: dist/*.txz
  • package builder: scripts/package.sh
  • operator documentation: README.md
  • Hermes procedure: docs/HERMES.md

Required workflow

  1. Read README.md and docs/HERMES.md before changing anything.
  2. Check the configured http://<unraid-ip>:3002/health or native HTTPS URL. For HTTPS, validate client trust and certificate SAN before sending a token; never retry over plaintext or disable verification. See docs/HTTPS.md. Native TLS is packaged from r034 onward; installing it does not enable TLS.
  3. If health is successful, MUA is already installed. Do not rebuild or reinstall it. Register its /mcp URL in Hermes and test the connection.
  4. If health fails, determine whether MUA is stopped or absent. Report that distinction before changing Unraid. Installation, upgrade, API-key rotation and tool-permission changes require an explicit user request.
  5. Use direct Streamable HTTP with Bearer authentication. Do not insert an SSH stdio wrapper and do not route through MCPHub unless the user explicitly requests that architecture.
  6. Verify with hermes mcp test unraid, reload MCP discovery, and confirm that at least one harmless read-only MUA tool is visible.

Safety and scope

  • Never print, commit or paste the MUA API key into reports or source files.
  • Never silently enable all, the unrestricted root shell, shutdown, reboot, network reconfiguration or destructive storage operations.
  • Do not change model, provider, router, WireGuard or Hermes session settings as part of an MUA connection task.
  • Do not claim success from a health check alone. The authenticated MCP handshake and Hermes tool discovery must also succeed.
  • Prefer the existing packaged release. Build from source only when the user explicitly asks for development or a new MUA release.

Definition of done

  • exactly one MUA service is running on Unraid;
  • /health reports OK;
  • Hermes reaches http://<unraid-ip>:3002/mcp with Bearer authentication;
  • hermes mcp test unraid succeeds;
  • no secret appears in logs, commits or the final response;
  • no unrelated service was restarted or reconfigured.