server: add --ui-mcp-proxy-allow-private-urls (#32633)

This commit is contained in:
Xuan-Son Nguyen authored and GitHub committed 2026-11-20 14:10:06 +01:00
1 parent 28de970cc1
commit 36cd3aff40
8 files changed
+32 -23

No files matched your search

+3 -3
View File
@@ -126,7 +126,7 @@ class ServerProcess:
no_cache_idle_slots: bool = False
log_path: str | None = None
ui_mcp_proxy: bool = False
debug_proxy_allow_private: bool = False # test-only: lets the CORS proxy reach local servers
ui_mcp_proxy_allow_private_urls: bool = False
media_allow_private_urls: bool = False
allow_unauthenticated_tools: bool = False
backend_sampling: bool = False
@@ -155,8 +155,6 @@ class ServerProcess:
**os.environ,
"LLAMA_SERVER_DEBUG_FAKE_TIMING": "1",
}
if self.debug_proxy_allow_private:
env["LLAMA_SERVER_DEBUG_PROXY_ALLOW_PRIVATE"] = "1"
if self.llama_cache is not None:
env["LLAMA_CACHE"] = self.llama_cache
elif "LLAMA_CACHE" not in os.environ:
@@ -313,6 +311,8 @@ class ServerProcess:
server_args.append("--no-cache-idle-slots")
if self.ui_mcp_proxy:
server_args.append("--ui-mcp-proxy")
if self.ui_mcp_proxy_allow_private_urls:
server_args.append("--ui-mcp-proxy-allow-private-urls")
if self.media_allow_private_urls:
server_args.append("--media-allow-private-urls")
if self.allow_unauthenticated_tools: