Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Train fix (#7948): the return address field and Copy show in Advanced
milind-sonif62d19747ef6
diff --git a/src/components/McpServerEditor.tsx b/src/components/McpServerEditor.tsxindex 92339546d9..6f875ac620 100644--- a/src/components/McpServerEditor.tsx+++ b/src/components/McpServerEditor.tsx@@ -4,6 +4,7 @@ import { ChevronDown, ChevronRight, Loader2 } from "lucide-react";import { cn } from "@/lib/cn";import { useCopyFeedback } from "@/lib/copy-text";import { t } from "@/lib/i18n";+import { useAdvancedMode } from "@/lib/interface-mode";import { readMcpPaste, type McpPasteError } from "@/lib/mcp-paste";import { McpResultBudgetField, withResultBudget, type McpMessage } from "./McpResultBudgetField";@@ -49,6 +50,7 @@ export function McpServerEditor({ server, fixKeys = false, taken, team, busy, onconst setDraft = (update: (current: McpDraft) => McpDraft) => setDrafts((current) => current.length === 1 ? [update(current[0]!)] : current);const savedOAuth = server && isRemoteMcpListing(server) ? server.oauth : undefined;const redirectCopy = useCopyFeedback(savedOAuth?.redirectUri ?? "");+ const advanced = useAdvancedMode();const secretKept = Boolean(savedOAuth?.clientSecretConfigured && !draft?.oauthForgetSecret);const canKeepOwn = team && adding && draft !== null && soleKey(draft) !== null;@@ -165,8 +167,8 @@ export function McpServerEditor({ server, fixKeys = false, taken, team, busy, on<div className="text-[12px] font-medium text-ink">{t("mcp.oauth.title")}</div><p className="mt-1 flex flex-wrap items-center gap-2 text-[11px] leading-relaxed text-ink-secondary"><span>{savedOAuth ? t("mcp.oauth.hintRedirect", { uri: savedOAuth.redirectUri }) : t("mcp.oauth.hint")}</span>- {savedOAuth && (- <button type="button" onClick={redirectCopy.copy} className="shrink-0 rounded border border-hairline/60 px-1.5 py-0.5 text-[11px] text-ink-secondary hover:text-ink">+ {advanced && savedOAuth && (+ <button type="button" onClick={redirectCopy.copy} className="ui-button ui-button-sm shrink-0">{t(redirectCopy.state === "copied" ? "mcp.oauth.copied" : redirectCopy.state === "failed" ? "mcp.oauth.copyFailed" : "mcp.oauth.copy")}</button>)}@@ -195,12 +197,12 @@ export function McpServerEditor({ server, fixKeys = false, taken, team, busy, on<input value={draft.oauthScopes} placeholder="offline_access api://my-app/mcp.read" spellCheck={false} className={cn(FIELD, "font-mono text-[12px]")}onChange={(event) => setDraft((current) => ({ ...current, oauthScopes: event.target.value }))} /></label>- <label className="block sm:col-span-2">+ {advanced && <label className="block sm:col-span-2"><span className={LABEL}>{t("mcp.oauth.redirectUri")}</span><input value={draft.oauthRedirectUri} placeholder={savedOAuth?.redirectUri ?? "https://maus.example/mcp-oauth/callback"} spellCheck={false} autoComplete="off" className={cn(FIELD, "font-mono text-[12px]")}onChange={(event) => setDraft((current) => ({ ...current, oauthRedirectUri: event.target.value }))} /><span className="mt-1.5 block text-[11px] text-ink-secondary">{t("mcp.oauth.redirectHint")}</span>- </label>+ </label>}</div></div></>