You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// authorization for the desktop UI, which renders it as text via React.
479
479
let display_name_html = html_escape_text(&display_name);
480
480
481
+
// When the gateway is exposed beyond loopback, a client that reached this
482
+
// page from another machine can't complete the desktop consent (the
483
+
// mcpmux:// deep link fires only on the host). Surface the API-key path so a
484
+
// remote user isn't left at a dead end.
485
+
let network_bind = state.read().await.network_bind;
486
+
let network_note = if network_bind {
487
+
r#"<div style="margin-bottom:1.5rem;padding:0.85rem 1rem;border-radius:10px;background:rgba(218,119,86,0.08);border:1px solid rgba(218,119,86,0.25);color:#d8b08c;font-size:0.8rem;line-height:1.45;text-align:left;"><strong style="color:#DA7756;">Connecting from another machine?</strong> This approval only completes on the computer running McpMux. For a remote or headless client, register an <strong>API-key client</strong> in McpMux (Clients tab) and connect with that key — no browser approval needed.</div>"#
488
+
}else{
489
+
""
490
+
};
491
+
481
492
// HTML page that triggers the deep link
482
493
// The page shows a brief message while the app opens
483
494
// Industry standard: Don't auto-close, let user close after approval
0 commit comments