From f378dc9d6b8f74d34b4dfd3b65cf564c689bdb95 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 23 Oct 2026 09:49:49 -0400 Subject: Add a loopback MCP server for the running viewer (#44) The server is off by default and listens on 127.0.0.1. It can see and act in the logged-in session, including inventory, object contents, script editing, mesh and material upload, and animated mesh. --- indra/newview/llappviewer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/newview/llappviewer.cpp') diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 0ce41bf773..26542a29c6 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -61,6 +61,7 @@ #include "llmimetypes.h" #include "llslurl.h" #include "llstartup.h" +#include "llviewermcp.h" #include "llfocusmgr.h" #include "llurlfloaterdispatchhandler.h" #include "llviewerjoystick.h" @@ -1862,6 +1863,7 @@ void LLAppViewer::flushLFSIO() bool LLAppViewer::cleanup() { + LLViewerMCP::shutdown(); #if LL_VELOPACK // Apply any pending Velopack update before shutdown if (velopack_is_update_pending()) @@ -5389,6 +5391,7 @@ void LLAppViewer::idle() { LL_PROFILE_ZONE_SCOPED_CATEGORY_APP; pingMainloopTimeout("Main:Idle"); + LLViewerMCP::pump(); // Update frame timers static LLTimer idle_timer; -- cgit v1.3