From a6cf7b8f18973682a37ae30424ac21435b4fbc0a Mon Sep 17 00:00:00 2001 From: Xuan Son Nguyen Date: Thu, 3 Sep 2026 00:29:12 +0200 Subject: [PATCH] make it clear that it's experimental --- common/arg.cpp | 2 +- tools/server/README.md | 2 +- tools/server/server.cpp | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/arg.cpp b/common/arg.cpp index 7b3f57bbcb..787a382abe 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -3493,7 +3493,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex ).set_examples({LLAMA_EXAMPLE_SERVER}).set_env("LLAMA_ARG_UI")); add_opt(common_arg( {"--connect"}, - string_format("open a peer-to-peer tunnel for server using llama-connect (default: %s)", params.server_connect ? "enabled" : "disabled"), + string_format("(experimental) open a peer-to-peer tunnel for server using llama-connect (default: %s)", params.server_connect ? "enabled" : "disabled"), [](common_params & params) { params.server_connect = true; } diff --git a/tools/server/README.md b/tools/server/README.md index a39c4a751e..088d96186e 100644 --- a/tools/server/README.md +++ b/tools/server/README.md @@ -209,7 +209,7 @@ For the full list of features, please refer to [server's changelog](https://gith | `--mcp-servers-json JSON` | experimental: inline JSON with MCP server definitions (Cursor-compatible format) - do not enable in untrusted environments (default: none)
note: for security reasons, this will limit --cors-origins to localhost by default
(env: LLAMA_ARG_MCP_SERVERS_JSON) | | `-ag, --agent, -no-ag, --no-agent` | whether to enable CORS proxy and all built-in tools - do not enable in untrusted environments (default: disabled)
note: for security reasons, this will limit --cors-origins to localhost by default
(env: LLAMA_ARG_AGENT) | | `--ui, --webui, --no-ui, --no-webui` | whether to enable the Web UI (default: enabled)
(env: LLAMA_ARG_UI) | -| `--connect` | open a peer-to-peer tunnel for server using llama-connect (default: disabled)
(env: LLAMA_ARG_CONNECT) | +| `--connect` | (experimental) open a peer-to-peer tunnel for server using llama-connect (default: disabled)
(env: LLAMA_ARG_CONNECT) | | `--connect-code CODE` | manually specify a 40-character code for --connect (default: generate a new one for each run)
(env: LLAMA_ARG_CONNECT_CODE) | | `--embedding, --embeddings` | restrict to only support embedding use case; use only with dedicated embedding models (default: disabled)
(env: LLAMA_ARG_EMBEDDINGS) | | `--rerank, --reranking` | enable reranking endpoint on server (default: disabled)
(env: LLAMA_ARG_RERANKING) | diff --git a/tools/server/server.cpp b/tools/server/server.cpp index 5c0a58be8d..612622c7b8 100644 --- a/tools/server/server.cpp +++ b/tools/server/server.cpp @@ -343,6 +343,10 @@ int llama_server(common_params & params, int argc, char ** argv) { warn_names.push_back("router mode"); } + if (params.server_connect) { + warn_names.push_back("peer-to-peer tunnel (llama-connect, experimental)"); + } + if (params.ui_mcp_proxy) { ctx_http.get ("/cors-proxy", ex_wrapper(proxy_handler_get)); ctx_http.post("/cors-proxy", ex_wrapper(proxy_handler_post));