Fix UniFi OS authentication and simplify server architecture
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s

- Use /api/auth/login for UniFi OS controllers (UDM, Cloud Gateway)
- Use /api/login for standalone controllers
- Refactor to use FastMCP's native mcp.run() with custom_route for /health
- Switch to network_mode: host for local network access
- Include README.md in Dockerfile for hatchling build
This commit is contained in:
Ben
2026-01-02 02:49:43 +00:00
parent cb57b8f537
commit 487f5355a0
4 changed files with 24 additions and 41 deletions

View File

@@ -4,8 +4,7 @@ services:
image: gitea.ext.ben.io/b3nw/unifi-mcp-light:latest
container_name: unifi-mcp-light
restart: unless-stopped
ports:
- "${PORT:-8100}:8000"
network_mode: host
environment:
- UNIFI_HOST=${UNIFI_HOST}
- UNIFI_USERNAME=${UNIFI_USERNAME}