From 23d36b311a95443d3832eb22e2a4261523f1f896 Mon Sep 17 00:00:00 2001 From: uncle6me-web Date: Sun, 9 Aug 2026 14:23:56 +0800 Subject: [PATCH] =?UTF-8?q?portal=20=E8=A8=AD=E5=AE=9A=E9=A0=81=E8=A3=9C?= =?UTF-8?q?=E9=A1=AF=E7=A4=BA=20MCP=20=E9=80=A3=E6=8E=A5=E7=B6=B2=E5=9D=80?= =?UTF-8?q?=EF=BC=88arcrun-rag#7=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 封測者原話:「說明叫我把 MCP 加進 claude.ai connector,但我找不到網址」。文件一直寫 「登入 portal → 設定頁,那裡可以直接複製」,但畫面上從沒真的顯示過(grep 0 命中), 用戶照文件走一定撲空。 設定頁新增「接上你的 AI(MCP)」面板:純前端把 apiBase 的 worker 名字從 arcrun-cypher-executor 換成 arcrun-mcp(同一顆自架帳號 workers.dev 子網域,對齊 cli/src/lib/deploy.ts:386-392 部署時的組法),不符形狀就誠實顯示「尚未偵測到」, 不亂猜連不到的網址。複製按鈕從既有 copyOriginUrl 拆出共用 copyText(btn, url)。 端到端本機瀏覽器實測:真 wrangler dev(kbdb+cypher-executor local D1)+ 真登入流程 (console setup → bootstrap admin → portal login)走到設定頁,面板正確顯示/隱藏; 用貼近真實自架形狀的假網址驗算,結果與 deploy.ts 的組法逐字相同;複製鈕點擊行為與 既有、未改動的 st-copy-url 按鈕在同一自動化環境下一致(clipboard-write 是瀏覽器自動化 環境限制,非本次改動的迴歸)。詳細記錄見 system-dev/docs/3-specs/portal-auth/tasks.md t218。 未部署(紅線:只 commit+push,未動任何 Cloudflare 實例)。 Co-Authored-By: Claude Opus 5 --- console-ui/public/portal/index.html | 49 ++++++++++++++++++-- system-dev/docs/3-specs/portal-auth/tasks.md | 32 +++++++++++++ 2 files changed, 78 insertions(+), 3 deletions(-) diff --git a/console-ui/public/portal/index.html b/console-ui/public/portal/index.html index 70ddf20..348702a 100644 --- a/console-ui/public/portal/index.html +++ b/console-ui/public/portal/index.html @@ -401,6 +401,21 @@ if (!window.ARCRUN_API_BASE) {
封測版未簽章,第一次請右鍵→打開。裝好第一次開啟時,貼上這個網址+你的帳號密碼就連上了。
+ +
+
+ 你的 MCP 網址(給你的 AI 連線用) + + +
+
接上你的 AI(MCP)
+
把上面這串網址貼到 Claude、ChatGPT 等 AI 的「新增自訂連接器」欄位,就能讓你的 AI 直接查這個知識庫。
+