{ pkgs, ... }: # gitea-mcp in HTTP mode, tailnet-only at http://jupiter.orbit.sol:8093/mcp. # It holds no token: each client sends its own PAT as `Authorization: Bearer # `, so an unauthenticated request can only see what anonymous gitea # users can. { systemd.services.gitea-mcp = { description = "Gitea MCP server"; after = [ "gitea.service" ]; wants = [ "gitea.service" ]; wantedBy = [ "multi-user.target" ]; environment.GITEA_HOST = "http://localhost:3000"; serviceConfig = { # Binds every interface (no listen-address flag); tailnet-only because # tailscale0 is trusted and 8093 stays closed on the LAN. ExecStart = "${pkgs.gitea-mcp-server}/bin/gitea-mcp -t http -p 8093"; DynamicUser = true; Restart = "on-failure"; ProtectSystem = "strict"; ProtectHome = true; PrivateTmp = true; NoNewPrivileges = true; }; }; }