From 2b0439b1819e1d69e4773934265d79a3c77b7e61 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 22 Sep 2026 14:07:40 +1000 Subject: [PATCH] docs(webui): note the mkcert fix for local WebMCP testing The header's secure-context note no longer reads as a dead end: 127.0.0.1 is already a secure context, and mkcert gives a LAN address or hostname a locally-trusted certificate, so a plain-HTTP origin is a configuration gap with a known local fix. Production terminates TLS in front of the dashboard. --- ui/src/lib/webmcp.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/src/lib/webmcp.ts b/ui/src/lib/webmcp.ts index a660ba08e..3f7e95f79 100644 --- a/ui/src/lib/webmcp.ts +++ b/ui/src/lib/webmcp.ts @@ -27,9 +27,12 @@ // Two deployment conditions make the tools silently absent, with no error: // - `document.modelContext` needs a secure context. A dashboard served over // plain HTTP (a LAN address, say) never exposes it, even with the -// origin-trial flag: `isSecureContext` is false and the API is undefined. -// Production terminates TLS in front of the dashboard; a plain-HTTP -// deployment gets no tools and no message saying so. +// origin-trial flag: `isSecureContext` is false and the API is undefined, +// with no error anywhere. Production terminates TLS in front of the +// dashboard, and local work needs a secure origin too -- 127.0.0.1 already +// is one, and a locally-trusted certificate (mkcert) covers a LAN address +// or a hostname. A plain-HTTP origin is a configuration gap with a known +// fix, not a place where the tools cannot be tested. // - archie-ui embeds the built ui/dist into its binary, so rebuilding the // dist is not deploying it. A running process keeps serving the bundle it // embedded at build time, and a check against that stale process reports