Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix(mcp): offer sign-in for servers that only refuse tool calls (#4245)

Omkar Satpute608ff19fb82b
diff --git a/docs/custom-mcp-servers.md b/docs/custom-mcp-servers.md
index 234257b3ae..3258b87047 100644
--- a/docs/custom-mcp-servers.md
+++ b/docs/custom-mcp-servers.md
@@ -61,6 +61,21 @@ manage, and its own consequential-action confirmations still apply. See the
[official Whop MCP documentation](https://github.com/whopio/whop-mcp-server).
This is an optional connected tool, not a change to OMB's subscription billing.
+### Agentcard
+
+In Plugins, find **Agentcard** beside Whop and click **Connect**. The card uses
+Agentcard's official hosted MCP endpoint, `https://mcp.agentcard.sh/mcp`, and
+opens Agentcard's browser sign-in with your own Agentcard account. No API key
+is needed. After sign-in and tool discovery it enables the connection, and
+**Disconnect** and **Bot access** work as they do for Whop.
+
+OpenMausBot owns no cards, approvals or orders here. Agentcard keeps your cards
+and handles purchase approvals; OpenMausBot stores no card details. A bot that
+can use Agentcard can call all of its tools, including the ones that buy and
+the ones that show card details, so choose which bots get it under **Bot
+access**. Existing custom entries at the official HTTP endpoint are recognized
+rather than replaced.
+
### Servers that ask you to sign in
Some URL servers take no token; they want you to sign in with your browser
@@ -69,7 +84,9 @@ details (RFC 9728 protected-resource metadata, then the authorization
server's own metadata), the server shows **Needs sign-in** and a **Sign in**
button. Sign in opens the provider's page in your browser, which returns to
OpenMausBot when you approve. The server then shows **Signed in**, and Test
-lists its tools.
+lists its tools. A server that lists its tools before you sign in but refuses
+tool calls the same way (an HTTP 401 pointing at those sign-in details) shows
+**Sign in** too.
- **Which servers work.** The authorization server must support PKCE with
S256. If it lets apps register themselves (dynamic client registration),
diff --git a/docs/verification/whop.md b/docs/verification/whop.md
index 3ebd046d55..e7e396a8cd 100644
--- a/docs/verification/whop.md
+++ b/docs/verification/whop.md
@@ -32,6 +32,9 @@ has no alternate endpoint or test switch. It checks:
token reaches the synthetic provider without appearing in the renderer list.
- Failed post-login tool discovery does not enable the server and is retryable.
- Reload keeps the connection; disconnect disables it and revokes sign-in.
+- The Agentcard card, from the same table of hosted apps, draws a glyph with
+ no logo, connects and disconnects beside Whop, and each stays connected
+ while the other changes.
- Narrow layout has no page overflow; no business tools execute during setup.
Screenshots default to `/tmp/omb-whop-evidence`; override with
@@ -44,7 +47,7 @@ S256, refresh tokens and the `admin` scope.
## Regression checks
```sh
-pnpm exec vitest run src/lib/whop-integration.test.ts src/components/PluginsPanel.navigation.test.ts src/components/PluginsPanel.i18n.test.ts src/components/McpServersPanel.test.ts src/components/McpServersPanel.embedded.test.ts src/lib/mcp-sign-in.test.ts server/mcp-oauth.test.ts server/mcp-oauth-discovery.test.ts server/mcp-oauth-store.test.ts server/mcp-probe.test.ts server/mcp-selection.e2e.test.ts server/mcp-remote-proxy.test.ts server/mcp-gate-config.test.ts server/drivers/pi-mcp-extension.test.ts scripts/testing/verification-docs.test.ts
+pnpm exec vitest run src/lib/hosted-mcp-apps.test.ts src/components/PluginsPanel.navigation.test.ts src/components/PluginsPanel.i18n.test.ts src/components/McpServersPanel.test.ts src/components/McpServersPanel.embedded.test.ts src/components/McpServersPanel.hosted.test.ts src/lib/mcp-sign-in.test.ts server/mcp-oauth.test.ts server/mcp-oauth-discovery.test.ts server/mcp-oauth-store.test.ts server/mcp-probe.test.ts server/mcp-selection.e2e.test.ts server/mcp-remote-proxy.test.ts server/mcp-gate-config.test.ts server/drivers/pi-mcp-extension.test.ts scripts/testing/verification-docs.test.ts
pnpm typecheck
pnpm lint
pnpm i18n:check
diff --git a/scripts/verify-whop.ts b/scripts/verify-whop.ts
index fdfda1a2b2..d8c5272f5b 100644
--- a/scripts/verify-whop.ts
+++ b/scripts/verify-whop.ts
@@ -1,4 +1,4 @@
-// Real registry, OAuth and renderer; no real Whop account or financial calls.
+// Real registry, OAuth and renderer; no real Whop or Agentcard account, and no financial calls.
import assert from "node:assert/strict";
import { mkdirSync } from "node:fs";
import { join } from "node:path";
@@ -7,6 +7,8 @@ import { fixtureApi, mountPreview, type MountedPreview } from "./testing/preview
import { startFakeOAuth } from "../server/testing/fake-oauth-server.ts";
import { startFakeHttpMcp } from "../server/testing/fake-http-mcp-server.ts";
+// Node cannot import the app's table (it pulls in a PNG), so the official addresses are named here too.
+const OFFICIAL = { whop: "https://mcp.whop.com/mcp", agentcard: "https://mcp.agentcard.sh/mcp" };
const fixture = await launchVerificationServer();
const oauth = await startFakeOAuth();
const mcp = await startFakeHttpMcp({ acceptBearer: oauth.isValid, wwwAuthenticate: oauth.challenge,
@@ -45,13 +47,13 @@ try {
let raw = "";
for await (const chunk of req) raw += chunk;
// Only the fixture substitutes transport: production always saves the official URL.
- if (raw) { const body = JSON.parse(raw); if (body.url === "https://mcp.whop.com/mcp") body.url = mcp.url; raw = JSON.stringify(body); }
+ if (raw) { const body = JSON.parse(raw); if (Object.values(OFFICIAL).includes(body.url)) body.url = mcp.url; raw = JSON.stringify(body); }
const response = await fetch(`${fixture.info.url}${path}`, { method: req.method,
headers: { "content-type": "application/json", cookie: req.headers.cookie ?? "", "x-forwarded-for": "192.0.2.10" },
...(raw ? { body: raw } : {}),
});
const body = await response.json();
- for (const server of body.servers ?? []) if (server.url === mcp.url) server.url = "https://mcp.whop.com/mcp";
+ for (const server of body.servers ?? []) if (server.url === mcp.url) server.url = server.name.startsWith("agentcard") ? OFFICIAL.agentcard : OFFICIAL.whop;
if (req.method === "POST" && path.endsWith("/sign-in") && response.ok) {
authorizationUrl = body.auth.authorizationUrl;
body.auth.authorizationUrl = "https://oauth.example.test/authorize";
@@ -100,7 +102,7 @@ try {
oauth.options.deny = false;
await connect();
await complete();
- await row.getByText("Connected", { exact: true }).waitFor();
+ await row.getByLabel("Connected", { exact: true }).waitFor();
const connected = (await status()).find((server: any) => server.name === "whop-2");
assert.equal(connected.auth, "signed-in");
assert.equal(connected.enabled, true);
@@ -113,14 +115,14 @@ try {
mkdirSync(output, { recursive: true });
await page.screenshot({ path: join(output, "connected.png"), fullPage: true });
await page.locator('[data-apps-filter="connected"]').click();
- await row.getByText("Connected", { exact: true }).waitFor();
- assert.equal(await page.locator('[data-apps-filter="connected"]').innerText(), "Connected 1");
+ await row.getByLabel("Connected", { exact: true }).waitFor();
+ assert.equal(await page.locator('[data-apps-filter="connected"]').innerText(), "1 connected");
assert.equal(await page.locator('[data-app-tile="gmail"]').count(), 0);
await row.getByRole("button", { name: "Disconnect Whop", exact: true }).click();
await row.waitFor({ state: "hidden" });
await page.locator('[data-apps-filter="all"]').click();
await connect(); await complete();
- await row.getByText("Connected", { exact: true }).waitFor();
+ await row.getByLabel("Connected", { exact: true }).waitFor();
await page.reload();
await row.getByRole("button", { name: "Disconnect Whop", exact: true }).waitFor();
assert.equal(await page.locator("[data-whop-setup]").count(), 0);
@@ -133,17 +135,34 @@ try {
// A successful login alone must not claim the tool connection is ready.
failTest = true;
await connect(); await complete();
- await page.getByText("Signed in, but Whop’s tools could not be loaded. Please connect again to retry.", { exact: true }).waitFor();
+ await page.getByText("Signed in, but Whop’s tools could not be loaded: Synthetic discovery failure. Please connect again to retry.", { exact: true }).waitFor();
assert.equal((await status()).find((server: any) => server.name === "whop-2").enabled, false);
await connect(); await complete();
- await row.getByText("Connected", { exact: true }).waitFor();
+ await row.getByLabel("Connected", { exact: true }).waitFor();
const search = page.getByRole("textbox", { name: "Search apps", exact: true });
await search.fill("whop");
assert.equal(await row.isVisible(), true);
assert.equal(await page.locator('[data-app-tile="gmail"]').count(), 0);
await search.fill("gmail");
assert.equal(await row.isVisible(), false);
+ await search.fill("agentcard");
+ assert.equal(await row.isVisible(), false);
+ assert.equal(await page.locator('[data-app-tile="agentcard"]').isVisible(), true);
await search.fill("");
+ const agentcard = page.locator('[data-app-tile="agentcard"]');
+ assert.equal(await agentcard.locator("img").count(), 0, "Agentcard draws a glyph, never a logo");
+ await agentcard.getByRole("button", { name: "Connect Agentcard", exact: true }).click();
+ await complete();
+ await agentcard.getByLabel("Connected", { exact: true }).waitFor();
+ const agentcardServer = (await status()).find((server: any) => server.name === "agentcard");
+ assert.equal(agentcardServer.auth, "signed-in");
+ assert.equal(agentcardServer.enabled, true);
+ assert.equal(await page.locator('[data-apps-filter="connected"]').innerText(), "2 connected");
+ assert.equal(await row.getByLabel("Connected", { exact: true }).count(), 1, "Whop stays connected beside Agentcard");
+ await agentcard.getByRole("button", { name: "Disconnect Agentcard", exact: true }).click();
+ await agentcard.getByRole("button", { name: "Connect Agentcard", exact: true }).waitFor();
+ assert.equal((await status()).find((server: any) => server.name === "agentcard").enabled, false);
+ assert.equal(await row.getByLabel("Connected", { exact: true }).count(), 1);
await page.setViewportSize({ width: 390, height: 844 });
await row.scrollIntoViewIfNeeded();
await page.screenshot({ path: join(output, "narrow.png"), fullPage: true });
diff --git a/server/chat-apps-mcp.test.ts b/server/chat-apps-mcp.test.ts
index 3436987d4c..5a5769663e 100644
--- a/server/chat-apps-mcp.test.ts
+++ b/server/chat-apps-mcp.test.ts
@@ -6,14 +6,16 @@ import { afterEach, describe, expect, it, vi } from "vitest";
import { APP_LIMITS, APP_MIME, type AppPayload } from "../shared/app.ts";
import { createChatApps, type ChatApps } from "./chat-apps.ts";
-import { APP_WRITE_DECLINED, createChatAppsMcp, type ChatAppsMcp, type ChatAppsMcpStore } from "./chat-apps-mcp.ts";
+import { APP_WRITE_DECLINED, createChatAppsMcp, type ChatAppsMcp, type ChatAppsMcpOAuth, type ChatAppsMcpStore } from "./chat-apps-mcp.ts";
import { createAgentCard } from "./chat-widgets.ts";
import type { McpServerSpec } from "./contracts.ts";
-import { probeMcpServer } from "./mcp-probe.ts";
+import { McpOAuthManager, withMcpSignIn } from "./mcp-oauth.ts";
+import { probeMcpServer, SIGN_IN_CHECK_TOOL } from "./mcp-probe.ts";
import type { McpRpcRequest } from "./routes/chat-apps.ts";
import type { BotRecord, Message } from "./store.ts";
import { removeTempDir } from "./testing/cleanup.ts";
import { startFakeHttpMcp, type FakeHttpMcp } from "./testing/fake-http-mcp-server.ts";
+import { startFakeOAuth } from "./testing/fake-oauth-server.ts";
const FAKE_APP = fileURLToPath(new URL("./testing/fake-stdio-app-server.ts", import.meta.url));
const THREAD = "thread-scout";
@@ -33,7 +35,7 @@ const REPORT = {
const cleanup: Array<() => Promise<void> | void> = [];
afterEach(async () => { for (const step of cleanup.splice(0).reverse()) await step(); });
-function setup(options: { servers?: Record<string, Record<string, unknown>>; scope?: BotRecord["toolScope"]; approval?: "ask" | "full"; needsSignIn?: string[]; probe?: typeof probeMcpServer } = {}) {
+function setup(options: { servers?: Record<string, Record<string, unknown>>; scope?: BotRecord["toolScope"]; approval?: "ask" | "full"; needsSignIn?: string[]; probe?: typeof probeMcpServer; oauth?: ChatAppsMcpOAuth; startupProbes?: boolean } = {}) {
const dataDir = mkdtempSync(join(tmpdir(), "omb-chat-apps-mcp-"));
cleanup.push(() => removeTempDir(dataDir));
const threads = new Map<string, Message[]>();
@@ -69,8 +71,8 @@ function setup(options: { servers?: Record<string, Record<string, unknown>>; sco
const { enabled: _enabled, apps: _apps, ...spec } = server;
return [name, ("url" in spec ? { headers: {}, ...spec } : { args: [], env: {}, ...spec }) as McpServerSpec];
})),
- oauth: { authState: (name) => (options.needsSignIn?.includes(name) ? "needs-sign-in" : "none"), accessToken: async () => null },
- startupProbes: false,
+ oauth: options.oauth ?? { authState: (name) => (options.needsSignIn?.includes(name) ? "needs-sign-in" : "none"), accessToken: async () => null, requireSignIn: () => {} },
+ startupProbes: options.startupProbes ?? false,
...(options.probe ? { probe: options.probe } : {}),
log: (line) => lines.push(line),
});
@@ -328,3 +330,79 @@ describe("mounts and probes", () => {
expect(mcp.catalog.get("draw", draw)).toBeUndefined();
}, 30_000);
});
+
+describe("a server that lists tools before anyone signs in", () => {
+ const buy = { name: "buy", description: "Buy something" };
+
+ async function agentcardShaped() {
+ const issuer = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({ guard: "tools/call", acceptBearer: issuer.isValid, wwwAuthenticate: issuer.challenge, tools: [buy] });
+ cleanup.push(() => fake.close(), () => issuer.close());
+ return fake;
+ }
+
+ /** Starts the app with the saved servers, lets the 20 second startup probe fire, and returns the sign-in book it used. */
+ async function startupProbe(servers: Record<string, Record<string, unknown>>) {
+ vi.useFakeTimers({ toFake: ["setTimeout", "clearTimeout"] });
+ cleanup.push(() => { vi.useRealTimers(); });
+ const dataDir = mkdtempSync(join(tmpdir(), "omb-mcp-oauth-"));
+ cleanup.push(() => removeTempDir(dataDir));
+ const oauth = new McpOAuthManager({ file: join(dataDir, "mcp-oauth.json") });
+ cleanup.push(() => oauth.dispose());
+ const probe = vi.fn(probeMcpServer);
+ setup({ servers, oauth, probe, startupProbes: true });
+ await vi.advanceTimersByTimeAsync(20_000);
+ await vi.waitFor(() => expect(probe).toHaveBeenCalled(), { timeout: 10_000 });
+ await vi.waitFor(() => expect(probe.mock.results.length).toBeGreaterThan(0));
+ const result = await probe.mock.results[0]!.value;
+ await new Promise((resolve) => setImmediate(resolve));
+ return { oauth, result };
+ }
+
+ it("marks an installed server that was never signed in, and drops it from bots' turns", async () => {
+ const fake = await agentcardShaped();
+ const agentcard = { type: "http", url: fake.url, enabled: true };
+ const { oauth, result } = await startupProbe({ agentcard });
+ expect(result).toMatchObject({ ok: false, auth: "required" });
+ expect(oauth.authState("agentcard", fake.url)).toBe("needs-sign-in");
+ expect(await withMcpSignIn({ agentcard: { type: "http", url: fake.url, headers: {} } }, oauth)).toEqual({});
+ expect(fake.calls).toEqual([]);
+ });
+
+ it("never signs a signed-in server out when its Bearer is refused in the background", async () => {
+ const issuer = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({ guard: "every-request", acceptBearer: () => false, wwwAuthenticate: issuer.challenge, tools: [buy] });
+ cleanup.push(() => fake.close(), () => issuer.close());
+ const dataDir = mkdtempSync(join(tmpdir(), "omb-mcp-oauth-"));
+ cleanup.push(() => removeTempDir(dataDir));
+ const oauth = new McpOAuthManager({ file: join(dataDir, "mcp-oauth.json") });
+ cleanup.push(() => oauth.dispose());
+ oauth.adopt("agentcard", fake.url, { url: fake.url, state: "signed-in", tokens: { access: "at_refused", expiresAt: Date.now() + 3_600_000 } });
+ const probe = vi.fn(probeMcpServer);
+ const { mcp } = setup({ servers: { agentcard: { type: "http", url: fake.url, enabled: true } }, oauth, probe });
+ mcp.serverChanged("agentcard");
+ await vi.waitFor(() => expect(probe).toHaveBeenCalled());
+ expect(await probe.mock.results[0]!.value).toMatchObject({ ok: false, auth: "required" });
+ await new Promise((resolve) => setImmediate(resolve));
+ expect(oauth.authState("agentcard", fake.url)).toBe("signed-in");
+ expect(await oauth.accessToken("agentcard", fake.url)).toBe("at_refused");
+ });
+
+ it("leaves a server that carries a key alone", async () => {
+ const issuer = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({ requireHeader: { name: "x-api-key", value: "right" }, wwwAuthenticate: issuer.challenge, tools: [buy] });
+ cleanup.push(() => fake.close(), () => issuer.close());
+ const keyed = { type: "http", url: fake.url, headers: { "X-Api-Key": "wrong" }, enabled: true };
+ const { oauth, result } = await startupProbe({ keyed });
+ expect(result).toMatchObject({ ok: false, auth: "required" });
+ expect(oauth.authState("keyed", fake.url)).toBe("none");
+ });
+
+ it("leaves an anonymous server alone when it answers the check with a JSON-RPC error", async () => {
+ const fake = await startFakeHttpMcp({ tools: [buy], callError: () => ({ code: -32602, message: `Tool ${SIGN_IN_CHECK_TOOL} not found` }) });
+ cleanup.push(() => fake.close());
+ const { oauth, result } = await startupProbe({ open: { type: "http", url: fake.url, enabled: true } });
+ expect(result).toMatchObject({ ok: true });
+ expect(oauth.authState("open", fake.url)).toBe("none");
+ });
+});
diff --git a/server/chat-apps-mcp.ts b/server/chat-apps-mcp.ts
index 1d9087e79b..dba14ad179 100644
--- a/server/chat-apps-mcp.ts
+++ b/server/chat-apps-mcp.ts
@@ -11,7 +11,7 @@ import { toolUiResource, toolVisibility, uiMeta } from "./mcp-app-observer.ts";
import { McpHttpError, McpRpcError } from "./mcp-http.ts";
import type { McpOAuthManager } from "./mcp-oauth.ts";
import { withMcpSignIn } from "./mcp-oauth.ts";
-import { probeMcpServer, type McpProbeOptions } from "./mcp-probe.ts";
+import { probeMcpServer, sendsCredentials, type McpProbeOptions } from "./mcp-probe.ts";
import { isRemoteMcpServer, parseStoredMcpServer, type StoredMcpServer } from "./mcp-registry.ts";
import { lenientToolValidator, schemaProblems } from "./mcp-schema-validator.ts";
import { redactSecretsInText } from "./redact.ts";
@@ -36,7 +36,7 @@ function isRecord(value: unknown): value is Json {
export type ChatAppsMcpStore = Pick<Store, "bot" | "botByThread" | "groupByThread" | "messagesFor" | "appendMessage" | "patchMessage" | "projectBotForTask">;
-export type ChatAppsMcpOAuth = Pick<McpOAuthManager, "authState" | "accessToken">;
+export type ChatAppsMcpOAuth = Pick<McpOAuthManager, "authState" | "accessToken" | "requireSignIn">;
export interface ChatAppsMcpDeps {
store: ChatAppsMcpStore;
@@ -378,8 +378,10 @@ export function createChatAppsMcp(deps: ChatAppsMcpDeps): ChatAppsMcp {
if (isRemoteMcpServer(stored) && deps.oauth.authState(name, stored.url) === "needs-sign-in") return;
const target = isRemoteMcpServer(stored) ? await signedIn(name, stored) : stored;
if (!target) return;
- const result = await probe({ ...target, enabled: true } as StoredMcpServer, BACKGROUND_PROBE_MS, undefined, probeOptions(name, stored));
- log(`probed ${name}: ${result.ok ? `apps=${catalog.get(name, stored)?.apps === true}` : "failed"}`);
+ const probed = { ...target, enabled: true } as StoredMcpServer;
+ const result = await probe(probed, BACKGROUND_PROBE_MS, undefined, probeOptions(name, stored));
+ if (!result.ok && result.auth === "required" && isRemoteMcpServer(probed) && !sendsCredentials(probed)) deps.oauth.requireSignIn(name, probed.url);
+ log(`probed ${name}: ${result.ok ? `apps=${catalog.get(name, stored)?.apps === true}` : result.auth === "required" ? "needs sign-in" : "failed"}`);
}).catch((error: unknown) => log(`probe of ${name} failed: ${String(error)}`));
}
diff --git a/server/host/mcp-config.ts b/server/host/mcp-config.ts
index 9f17f92a5d..889b1fcbfe 100644
--- a/server/host/mcp-config.ts
+++ b/server/host/mcp-config.ts
@@ -1,6 +1,6 @@
import { withMcpSignIn, type McpOAuthManager } from "../mcp-oauth.ts";
import { brokeredServer, type BrokerPath } from "../bot-box/broker-probe.ts";
-import { probeMcpServer, type McpProbeOptions, type McpProbeResult } from "../mcp-probe.ts";
+import { probeMcpServer, sendsCredentials, type McpProbeOptions, type McpProbeResult } from "../mcp-probe.ts";
import { MAX_MCP_SERVERS, isRemoteMcpServer, parseStoredMcpServer, type McpRunsOn, type StoredMcpServer, type StoredRemoteMcpServer } from "../mcp-registry.ts";
import { postizKeyHeaders } from "../postiz/connection.ts";
import type { AppConfig } from "../config.ts";
@@ -80,7 +80,7 @@ async function probeAsBots(path: BrokerPath, name: string, target: StoredRemoteM
export const runsElsewhere = (runsOn: McpRunsOn) => `This server runs on ${runsOn.label}, so it isn't started here.`;
const personalHeaderValueRefusal = (personal: string[], name: string, server: StoredMcpServer) =>
- personal.includes(name) && isRemoteMcpServer(server) && Object.values(server.headers).some((value) => value !== "")
+ personal.includes(name) && isRemoteMcpServer(server) && sendsCredentials(server)
? "Personal MCP header values cannot be saved in shared configuration. Save your key in your personal connection."
: null;
@@ -238,16 +238,24 @@ export function createMcpConfig(deps: McpConfigDeps & { changed(): void }): McpC
} else if (!personal && isRemoteMcpServer(target)) {
target = { ...target, headers: { ...target.headers, ...postizKeyHeaders(cfg.postiz, name, target) } };
}
+ let sentSignIn = false;
if (isRemoteMcpServer(target) && oauth.authState(name, target.url) === "signed-in") {
const signedIn = (await withMcpSignIn({ [name]: target }, oauth))[name];
- if (signedIn) target = { ...signedIn, enabled: target.enabled } as typeof target;
+ if (signedIn) {
+ target = { ...signedIn, enabled: target.enabled } as typeof target;
+ sentSignIn = true;
+ }
}
const options = { ...(personal ? {} : appCatalog?.probeOptions(name, parsed.server) ?? {}), ...(asBot ? { asBot } : isRemoteMcpServer(target) ? {} : { asBot: deps.probeAs?.(target) ?? {} }) };
const viaBots = isRemoteMcpServer(target) ? deps.botsPath?.() ?? null : null;
const result = viaBots && isRemoteMcpServer(target)
? await probeAsBots(viaBots, name, target, signal, options)
: await probeMcpServer(target, undefined, signal, options);
- if (!result.ok && result.auth === "required" && isRemoteMcpServer(target)) oauth.markNeedsSignIn(name, target.url);
+ if (!result.ok && result.auth === "required" && isRemoteMcpServer(target)) {
+ // Only a Bearer we sent and the server refused drops the sign-in; a probe that sent none must not sign anyone out.
+ if (sentSignIn) oauth.markNeedsSignIn(name, target.url);
+ else oauth.requireSignIn(name, target.url);
+ }
return { status: 200, body: result };
} finally {
mcpProbesInFlight -= 1;
diff --git a/server/index.test.ts b/server/index.test.ts
index af79613b3b..1f6339d6fb 100644
--- a/server/index.test.ts
+++ b/server/index.test.ts
@@ -8707,6 +8707,84 @@ describe("harness HTTP API", () => {
}
});
+ async function signInThroughBrowser(name: string) {
+ const started = await api("POST", `/api/mcp/servers/${name}/sign-in`);
+ expect(started.status).toBe(200);
+ await fetch(started.body.auth.authorizationUrl, { redirect: "follow" });
+ let auth = started.body.auth;
+ for (let i = 0; i < 50 && auth.phase === "waiting"; i++) {
+ await new Promise((resolve) => setTimeout(resolve, 20));
+ auth = (await api("GET", `/api/mcp/servers/${name}/sign-in/${auth.flowId}`)).body.auth;
+ }
+ expect(auth.phase).toBe("succeeded");
+ }
+ /** Where mcp.agentcard.sh serves its RFC 9728 document: on its own origin, which is how sign-in finds it when initialize is not refused. */
+ const protectedResourceOf = (oauth: { issuer: string }) =>
+ ({ "/.well-known/oauth-protected-resource/mcp": (origin: string) => ({ resource: `${origin}/mcp`, authorization_servers: [oauth.issuer] }) });
+ const serverListing = async (name: string) => ((await api("GET", "/api/mcp/servers")).body.servers as Array<{ name: string }>).find((server) => server.name === name);
+
+ it("asks for a sign-in when a server lists its tools to anyone and refuses to run one", async () => {
+ const oauth = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({ guard: "tools/call", acceptBearer: oauth.isValid, wwwAuthenticate: oauth.challenge, wellKnown: protectedResourceOf(oauth), tools: [{ name: "buy", description: "Buy something" }] });
+ try {
+ expect((await api("POST", "/api/mcp/servers", { name: "shop", url: fake.url })).status).toBe(201);
+ const first = await api("POST", "/api/mcp/servers/shop/test");
+ expect(first.body).toEqual({ ok: false, auth: "required", error: "This server needs you to sign in." });
+ expect(await serverListing("shop")).toMatchObject({ auth: "needs-sign-in", enabled: false });
+ expect(fake.refusedCalls).toHaveLength(1);
+ expect(fake.calls).toEqual([]);
+
+ await signInThroughBrowser("shop");
+ const tested = await api("POST", "/api/mcp/servers/shop/test");
+ expect(tested.body).toEqual({ ok: true, tools: [{ name: "buy", description: "Buy something" }] });
+ expect(fake.refusedCalls).toHaveLength(1);
+ expect(fake.seenHeaders.at(-1)?.authorization).toMatch(/^Bearer /);
+
+ expect((await api("PATCH", "/api/mcp/servers/shop", { enabled: true })).status).toBe(200);
+ expect(await serverListing("shop")).toMatchObject({ auth: "signed-in", enabled: true });
+ } finally {
+ await api("DELETE", "/api/mcp/servers/shop").catch(() => undefined);
+ await fake.close();
+ await oauth.close();
+ }
+ });
+
+ it("keeps a sign-in whose refresh failed on the network, and drops one whose token the server refuses", async () => {
+ const oauth = await startFakeOAuth({ refreshStatus: 503 });
+ const flaky = await startFakeHttpMcp({ guard: "tools/call", acceptBearer: oauth.isValid, wwwAuthenticate: oauth.challenge, wellKnown: protectedResourceOf(oauth), tools: [{ name: "buy" }] });
+ const refusing = await startFakeHttpMcp({ guard: "every-request", acceptBearer: () => false, wwwAuthenticate: oauth.challenge });
+ const oauthFile = join(home, ".openmausbot", "mcp-oauth.json");
+ const tokensOf = (name: string) => JSON.parse(readFileSync(oauthFile, "utf8")).servers[name]?.tokens;
+ const expire = (name: string) => {
+ const saved = JSON.parse(readFileSync(oauthFile, "utf8"));
+ saved.servers[name].tokens.expiresAt = Date.now() - 1_000;
+ writeFileSync(oauthFile, JSON.stringify(saved));
+ };
+ try {
+ expect((await api("POST", "/api/mcp/servers", { name: "flaky", url: flaky.url })).status).toBe(201);
+ expect((await api("POST", "/api/mcp/servers", { name: "refusing", url: refusing.url })).status).toBe(201);
+ await signInThroughBrowser("flaky");
+ await signInThroughBrowser("refusing");
+ expect(tokensOf("flaky").refresh).toEqual(expect.any(String));
+ expire("flaky");
+
+ expect((await api("POST", "/api/mcp/servers/flaky/test")).body).toMatchObject({ ok: false, auth: "required" });
+ expect(oauth.counts.refresh).toBeGreaterThan(0);
+ expect(await serverListing("flaky")).toMatchObject({ auth: "signed-in" });
+ expect(tokensOf("flaky").refresh).toEqual(expect.any(String));
+
+ expect((await api("POST", "/api/mcp/servers/refusing/test")).body).toMatchObject({ ok: false, auth: "required" });
+ expect(await serverListing("refusing")).toMatchObject({ auth: "needs-sign-in" });
+ expect(tokensOf("refusing")).toBeUndefined();
+ } finally {
+ await api("DELETE", "/api/mcp/servers/flaky").catch(() => undefined);
+ await api("DELETE", "/api/mcp/servers/refusing").catch(() => undefined);
+ await flaky.close();
+ await refusing.close();
+ await oauth.close();
+ }
+ });
+
it("signs in as a pre-registered app where self-registration is off, keeping its secret write-only", async () => {
const secret = "corp-app-secret-that-must-never-render";
const oauth = await startFakeOAuth({ noRegistration: true, preRegistered: { "corp-app": secret } });
diff --git a/server/mcp-oauth-discovery.test.ts b/server/mcp-oauth-discovery.test.ts
index 0896353104..3dc9d16d5a 100644
--- a/server/mcp-oauth-discovery.test.ts
+++ b/server/mcp-oauth-discovery.test.ts
@@ -48,6 +48,7 @@ describe("discoverMcpAuth", () => {
revocationEndpoint: "https://auth.example.com/revoke",
scopes: ["read", "write"],
resource: "https://mcp.example.com/mcp",
+ source: "protected-resource",
});
});
@@ -58,15 +59,38 @@ describe("discoverMcpAuth", () => {
});
const meta = await discoverMcpAuth("https://mcp.example.com/mcp", null, { fetch: impl });
expect(meta?.issuer).toBe("https://auth.example.com");
+ expect(meta?.source).toBe("protected-resource");
expect(asked[0]).toBe("https://mcp.example.com/.well-known/oauth-protected-resource/mcp");
});
+ it.each([
+ ["the path-specific address", "https://mcp.example.com/.well-known/oauth-protected-resource/mcp"],
+ ["the root address", "https://mcp.example.com/.well-known/oauth-protected-resource"],
+ ])("reports a protected-resource source when %s names the authorization server", async (_label, address) => {
+ const { impl } = stubFetch({
+ [address]: { authorization_servers: ["https://auth.example.com"] },
+ "https://auth.example.com/.well-known/oauth-authorization-server": AS,
+ });
+ expect((await discoverMcpAuth("https://mcp.example.com/mcp", null, { fetch: impl }))?.source).toBe("protected-resource");
+ });
+
it("treats the MCP origin as the authorization server when there is no resource metadata", async () => {
const { impl } = stubFetch({
"https://mcp.example.com/.well-known/openid-configuration": { ...AS, issuer: "https://mcp.example.com" },
});
const meta = await discoverMcpAuth("https://mcp.example.com/mcp", null, { fetch: impl });
expect(meta?.issuer).toBe("https://mcp.example.com");
+ expect(meta?.source).toBe("origin");
+ });
+
+ it("reports an origin source when the resource document names no authorization server", async () => {
+ const { impl } = stubFetch({
+ "https://mcp.example.com/.well-known/oauth-protected-resource/mcp": { resource: "https://mcp.example.com/mcp" },
+ "https://mcp.example.com/.well-known/openid-configuration": { ...AS, issuer: "https://mcp.example.com" },
+ });
+ const meta = await discoverMcpAuth("https://mcp.example.com/mcp", null, { fetch: impl });
+ expect(meta?.issuer).toBe("https://mcp.example.com");
+ expect(meta?.source).toBe("origin");
});
it("keeps the issuer from the authorization server metadata, not the listed spelling", async () => {
diff --git a/server/mcp-oauth-discovery.ts b/server/mcp-oauth-discovery.ts
index 65383af9e7..04ec0c0cbb 100644
--- a/server/mcp-oauth-discovery.ts
+++ b/server/mcp-oauth-discovery.ts
@@ -11,6 +11,10 @@ export interface McpAuthMetadata {
tokenEndpointAuthMethods?: string[];
/** The MCP URL, sent as the RFC 8707 `resource` so tokens are audience-bound. */
resource: string;
+ /** How the authorization server was found. `protected-resource`: an RFC 9728 document (the 401's `resource_metadata`
+ * hint, or a well-known address for this URL or its origin) named it. `origin`: none did, and the MCP server's own
+ * origin was assumed to be the issuer, as MCP 2025-03-26 clients do. */
+ source: "protected-resource" | "origin";
}
const FETCH_TIMEOUT_MS = 5_000;
@@ -107,7 +111,8 @@ export async function discoverMcpAuth(
}
const resource = await protectedResource(target, resourceMetadataUrl(wwwAuthenticate), options);
const servers = stringList(resource?.authorization_servers);
- const issuer = servers?.[0] ?? target.origin;
+ const named = servers?.[0];
+ const issuer = named ?? target.origin;
if (!isAllowedAuthUrl(issuer)) return null;
const metadata = await authorizationServer(issuer, options);
if (!metadata) return null;
@@ -136,5 +141,6 @@ export async function discoverMcpAuth(
...(scopes?.length ? { scopes } : {}),
...(tokenEndpointAuthMethods?.length ? { tokenEndpointAuthMethods } : {}),
resource: target.toString(),
+ source: named === undefined ? "origin" : "protected-resource",
};
}
diff --git a/server/mcp-oauth.test.ts b/server/mcp-oauth.test.ts
index 267e578a23..8ae2d65ef3 100644
--- a/server/mcp-oauth.test.ts
+++ b/server/mcp-oauth.test.ts
@@ -176,6 +176,30 @@ describe("McpOAuthManager tokens", () => {
manager.forget("docs");
expect(manager.authState("docs", mcp.url)).toBe("none");
});
+
+ it("records that a sign-in is required for a server with no record", async () => {
+ await setup();
+ manager.requireSignIn("docs", mcp.url);
+ expect(manager.authState("docs", mcp.url)).toBe("needs-sign-in");
+ });
+
+ it("leaves a signed-in server signed in and never revokes", async () => {
+ await signedIn();
+ const token = await manager.accessToken("docs", mcp.url);
+ manager.requireSignIn("docs", mcp.url);
+ manager.requireSignIn("docs", mcp.url);
+ expect(manager.authState("docs", mcp.url)).toBe("signed-in");
+ expect(await manager.accessToken("docs", mcp.url)).toBe(token);
+ expect(oauth.counts.revoke).toBe(0);
+ });
+
+ it("keeps a requirement it already recorded", async () => {
+ await setup();
+ manager.requireSignIn("docs", mcp.url);
+ manager.requireSignIn("docs", mcp.url);
+ expect(manager.authState("docs", mcp.url)).toBe("needs-sign-in");
+ expect(oauth.counts.revoke).toBe(0);
+ });
});
describe("turn servers", () => {
diff --git a/server/mcp-oauth.ts b/server/mcp-oauth.ts
index e06e7b5d3b..900c7bf314 100644
--- a/server/mcp-oauth.ts
+++ b/server/mcp-oauth.ts
@@ -246,6 +246,15 @@ export class McpOAuthManager {
this.store.put(name, { ...rest, url, state: "needs-sign-in" });
}
+ /** A probe that sent no credentials found that the server wants a sign-in this entry doesn't hold. Never touches a
+ * sign-in (one may have landed while the probe ran), so unlike markNeedsSignIn it has no tokens to drop. Idempotent. */
+ requireSignIn(name: string, url: string): void {
+ if (this.authState(name, url) === "signed-in") return;
+ const current = this.store.get(name, url);
+ if (current?.state === "needs-sign-in") return;
+ this.store.put(name, { ...current, url, state: "needs-sign-in" });
+ }
+
start(name: string, url: string, wwwAuthenticate?: string | null, owner = "loopback", browser: McpSignInBrowser = { remote: false }): Promise<McpSignInStatus> {
const current = this.flows.get(name);
if (current?.status.phase === "waiting" && !this.isOwnerLive(current.owner)) {
diff --git a/server/mcp-probe.test.ts b/server/mcp-probe.test.ts
index c84a3337fb..886950933b 100644
--- a/server/mcp-probe.test.ts
+++ b/server/mcp-probe.test.ts
@@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url";
import { afterEach, describe, expect, it, vi } from "vitest";
import { MAX_REMOTE_MCP_BYTES } from "./mcp-http.ts";
-import { probeMcpServer } from "./mcp-probe.ts";
+import { probeMcpServer, SIGN_IN_CHECK_TOOL } from "./mcp-probe.ts";
import { removeTempDir } from "./testing/cleanup.ts";
import { startFakeHttpMcp } from "./testing/fake-http-mcp-server.ts";
import { startFakeOAuth } from "./testing/fake-oauth-server.ts";
@@ -238,6 +238,175 @@ describe("remote MCP probe", () => {
}
});
+ describe("a server that lists tools before anyone signs in", () => {
+ const buy = { name: "buy", description: "Buy something" };
+ const anonymous = (url: string) => ({ type: "http" as const, url, headers: {}, enabled: false });
+ const protectedResource = (issuer: string) => ({ resource: "unused", authorization_servers: [issuer] });
+ const openidOnly = (origin: string) => ({
+ issuer: origin,
+ authorization_endpoint: `${origin}/authorize`,
+ token_endpoint: `${origin}/token`,
+ code_challenge_methods_supported: ["S256"],
+ });
+
+ it("needs a sign-in when it refuses tool calls behind a protected-resource document, and runs no real tool", async () => {
+ const oauth = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({ guard: "tools/call", acceptBearer: oauth.isValid, wwwAuthenticate: oauth.challenge, tools: [buy] });
+ try {
+ await expect(probeMcpServer(anonymous(fake.url), 8_000))
+ .resolves.toEqual({ ok: false, auth: "required", error: "This server needs you to sign in." });
+ expect(fake.refusedCalls).toEqual([{ name: SIGN_IN_CHECK_TOOL, arguments: {} }]);
+ expect(fake.calls).toEqual([]);
+ } finally {
+ await fake.close();
+ await oauth.close();
+ }
+ });
+
+ it("finds the protected-resource document without a www-authenticate hint", async () => {
+ const oauth = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({
+ guard: "tools/call", acceptBearer: oauth.isValid, tools: [buy],
+ wellKnown: { "/.well-known/oauth-protected-resource/mcp": protectedResource(oauth.issuer) },
+ });
+ try {
+ await expect(probeMcpServer(anonymous(fake.url), 8_000)).resolves.toMatchObject({ ok: false, auth: "required" });
+ } finally {
+ await fake.close();
+ await oauth.close();
+ }
+ });
+
+ it("is not flagged at the call stage by a host that only serves openid-configuration", async () => {
+ const fake = await startFakeHttpMcp({
+ guard: "tools/call", acceptBearer: () => false, tools: [buy],
+ wellKnown: { "/.well-known/openid-configuration": openidOnly },
+ });
+ try {
+ await expect(probeMcpServer(anonymous(fake.url), 8_000)).resolves.toEqual({ ok: true, tools: [buy] });
+ } finally {
+ await fake.close();
+ }
+ });
+
+ it("still asks for a sign-in when that same host refuses initialize", async () => {
+ const fake = await startFakeHttpMcp({
+ guard: "every-request", acceptBearer: () => false, tools: [buy],
+ wellKnown: { "/.well-known/openid-configuration": openidOnly },
+ });
+ try {
+ await expect(probeMcpServer(anonymous(fake.url), 8_000)).resolves.toMatchObject({ ok: false, auth: "required" });
+ } finally {
+ await fake.close();
+ }
+ });
+
+ it("stays connected when sign-in is optional and the unknown tool is a JSON-RPC error", async () => {
+ const oauth = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({
+ tools: [buy],
+ wellKnown: { "/.well-known/oauth-protected-resource/mcp": protectedResource(oauth.issuer) },
+ callError: () => ({ code: -32602, message: `Tool ${SIGN_IN_CHECK_TOOL} not found` }),
+ });
+ try {
+ await expect(probeMcpServer(anonymous(fake.url), 8_000)).resolves.toEqual({ ok: true, tools: [buy] });
+ } finally {
+ await fake.close();
+ await oauth.close();
+ }
+ });
+
+ it.each([
+ ["a Bearer", { Authorization: "Bearer valid" }],
+ ["an API key", { "X-Api-Key": "k" }],
+ ])("sends no check and looks up no sign-in when the probe carries %s", async (_label, headers) => {
+ const oauth = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({
+ guard: "tools/call", acceptBearer: (authorization) => authorization === "Bearer valid", wwwAuthenticate: oauth.challenge, tools: [buy],
+ });
+ try {
+ await expect(probeMcpServer({ type: "http", url: fake.url, headers, enabled: false }, 8_000)).resolves.toEqual({ ok: true, tools: [buy] });
+ expect(fake.refusedCalls).toEqual([]);
+ expect(fake.calls).toEqual([]);
+ expect(fake.seenPaths.filter((path) => path.startsWith("/.well-known/"))).toEqual([]);
+ } finally {
+ await fake.close();
+ await oauth.close();
+ }
+ });
+
+ it("counts an empty header value as no credentials", async () => {
+ const oauth = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({ guard: "tools/call", acceptBearer: oauth.isValid, wwwAuthenticate: oauth.challenge, tools: [buy] });
+ try {
+ await expect(probeMcpServer({ type: "http", url: fake.url, headers: { Authorization: "" }, enabled: false }, 8_000))
+ .resolves.toMatchObject({ ok: false, auth: "required" });
+ } finally {
+ await fake.close();
+ await oauth.close();
+ }
+ });
+
+ it("stays connected when the check is held past its bound", async () => {
+ const oauth = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({ tools: [buy], callDelayMs: 8_000, wwwAuthenticate: oauth.challenge });
+ try {
+ const started = Date.now();
+ await expect(probeMcpServer(anonymous(fake.url), 30_000)).resolves.toEqual({ ok: true, tools: [buy] });
+ expect(Date.now() - started).toBeLessThan(7_000);
+ } finally {
+ await fake.close();
+ await oauth.close();
+ }
+ }, 15_000);
+
+ it("stays connected when a gateway answers the check with 403", async () => {
+ const fake = await startFakeHttpMcp({ guard: "tools/call", requireHeaders: { "x-gate": "open" }, tools: [buy] });
+ try {
+ await expect(probeMcpServer(anonymous(fake.url), 8_000)).resolves.toEqual({ ok: true, tools: [buy] });
+ } finally {
+ await fake.close();
+ }
+ });
+
+ it("stays connected when the server answers the check with HTTP 400", async () => {
+ const server = createServer((req, res) => {
+ let body = "";
+ req.on("data", (chunk) => { body += chunk; }).on("end", () => {
+ const frame = JSON.parse(body || "{}") as { id?: unknown; method?: string };
+ if (frame.method === "tools/call") return void res.writeHead(400).end("bad request");
+ if (frame.method === undefined) return void res.writeHead(202).end();
+ const result = frame.method === "initialize"
+ ? { protocolVersion: "2025-06-18", capabilities: { tools: {} }, serverInfo: { name: "raw", version: "1" } }
+ : { tools: [buy] };
+ res.writeHead(200, { "content-type": "application/json" }).end(JSON.stringify({ jsonrpc: "2.0", id: frame.id, result }));
+ });
+ });
+ await new Promise<void>((resolve) => server.listen(0, "127.0.0.1", resolve));
+ try {
+ await expect(probeMcpServer(anonymous(`http://127.0.0.1:${(server.address() as AddressInfo).port}/mcp`), 8_000))
+ .resolves.toEqual({ ok: true, tools: [buy] });
+ } finally {
+ await new Promise((resolve) => server.close(resolve));
+ }
+ });
+
+ it("never calls a tool the server really lists under the check's name", async () => {
+ const oauth = await startFakeOAuth();
+ const fake = await startFakeHttpMcp({
+ guard: "tools/call", acceptBearer: oauth.isValid, wwwAuthenticate: oauth.challenge, tools: [buy, { name: SIGN_IN_CHECK_TOOL }],
+ });
+ try {
+ await expect(probeMcpServer(anonymous(fake.url), 8_000)).resolves.toMatchObject({ ok: true });
+ expect(fake.refusedCalls).toEqual([]);
+ expect(fake.calls).toEqual([]);
+ } finally {
+ await fake.close();
+ await oauth.close();
+ }
+ });
+ });
+
it("times out a server that never lists its tools", async () => {
const fake = await startFakeHttpMcp({ silentTools: true });
try {
diff --git a/server/mcp-probe.ts b/server/mcp-probe.ts
index 13e270a899..745bac6069 100644
--- a/server/mcp-probe.ts
+++ b/server/mcp-probe.ts
@@ -22,9 +22,18 @@ export type McpProbeFailure = "keys" | "unreachable" | "timeout";
export type McpProbeResult =
| { ok: true; tools: McpProbeTool[]; total?: number }
+ /** `auth: "required"`: the server wants a sign-in. Either it refused initialize or tools/list with HTTP 401 and offers
+ * OAuth, or it listed tools for a caller with no credentials and refused a tool call with HTTP 401 from behind an
+ * RFC 9728 protected-resource document. */
| { ok: false; error: string; auth?: "required"; reason?: McpProbeFailure; status?: number };
export const SIGN_IN_REQUIRED = "This server needs you to sign in.";
+/** A tool name no server defines, so calling it runs nothing and the answer says only whether tool calls need a sign-in.
+ * Observed 2026-10-31: mcp.agentcard.sh answers it HTTP 401 with `resource_metadata`; huggingface.co/mcp, whose sign-in is
+ * optional and which also serves an RFC 9728 document, answers JSON-RPC -32602 "not found". */
+export const SIGN_IN_CHECK_TOOL = "openmausbot.sign-in-check";
+const SIGN_IN_CHECK_MS = 5_000;
+const DISCOVERY_MS = 5_000;
/** How MCP servers word a refused key in a JSON-RPC error when they answer it with HTTP 200. */
const UNAUTHORIZED = /unauthori[sz]ed|forbidden|not authenticated|authentication (?:failed|required)|invalid (?:api[ _-]?)?(?:key|token|credentials)/i;
@@ -97,6 +106,40 @@ function observeProbe(options: McpProbeOptions, tools: unknown[], uiExtension: "
try { options.observe?.({ tools, uiExtension }); } catch {}
}
+/** True when the probe carries any header value. On the `via` path the broker adds exactly these headers. Personal entries
+ * store "" placeholders, so an empty value is no credential. */
+export function sendsCredentials(server: Pick<StoredRemoteMcpServer, "headers">): boolean {
+ return Object.values(server.headers).some((value) => value !== "");
+}
+
+/** Which request the server refused with HTTP 401. */
+type RefusedAt = "connect" | "call";
+
+/** Whether a 401 asks for a sign-in rather than for keys. `connect`: any OAuth metadata counts (a server that refuses
+ * initialize is unusable without a sign-in). `call`: only metadata an RFC 9728 protected-resource document led to, since
+ * discovery's origin fallback would flag any host that merely serves openid-configuration. `url` is the server's own
+ * address, never the broker's. */
+async function asksForSignIn(url: string, refusal: McpHttpError, at: RefusedAt, signal?: AbortSignal): Promise<boolean> {
+ const bound = AbortSignal.timeout(DISCOVERY_MS);
+ const meta = await discoverMcpAuth(url, refusal.wwwAuthenticate ?? null, { signal: signal ? AbortSignal.any([signal, bound]) : bound })
+ .catch(() => null);
+ return meta !== null && (at === "connect" || meta.source === "protected-resource");
+}
+
+/** After a tools/list that carried no credentials: do tool calls need a sign-in? One call of SIGN_IN_CHECK_TOOL through
+ * the same client. Only HTTP 401 behind a protected-resource document means yes. Any other answer, a timeout or a network
+ * failure keeps the verdict Connected. A server that really lists that name is never called. */
+async function callsNeedSignIn(client: RemoteMcpClient, url: string, listed: unknown[], signal: AbortSignal): Promise<boolean> {
+ if (listed.some((tool) => (tool as { name?: unknown } | null)?.name === SIGN_IN_CHECK_TOOL)) return false;
+ try {
+ await client.request("tools/call", { name: SIGN_IN_CHECK_TOOL, arguments: {} }, AbortSignal.any([signal, AbortSignal.timeout(SIGN_IN_CHECK_MS)]));
+ return false;
+ } catch (error) {
+ return error instanceof McpHttpError && error.kind === "status" && error.status === 401
+ && await asksForSignIn(url, error, "call", signal);
+ }
+}
+
async function probeRemoteMcpServer(
server: StoredRemoteMcpServer,
timeoutMs: number,
@@ -116,17 +159,16 @@ async function probeRemoteMcpServer(
const tools = result && typeof result === "object" ? (result as { tools?: unknown }).tools : undefined;
if (!Array.isArray(tools)) return { ok: false, error: "The server did not return a valid MCP tools list." };
observeProbe(options, tools, client.extensions ?? "unknown");
+ if (!sendsCredentials(server) && await callsNeedSignIn(client, server.url, tools, combined)) {
+ return { ok: false, auth: "required", error: SIGN_IN_REQUIRED };
+ }
const secrets = server.oauth?.clientSecret ? { ...server.headers, "oauth.clientSecret": server.oauth.clientSecret } : server.headers;
return { ok: true, ...publicTools(tools, secrets) };
} catch (error) {
if (signal?.aborted) return { ok: false, error: publicProbeError("cancelled") };
if (timeout.signal.aborted) return { ok: false, error: publicProbeError("timeout"), reason: "timeout" };
- if (error instanceof McpHttpError && error.status === 401) {
- const discovery = AbortSignal.timeout(5_000);
- const meta = await discoverMcpAuth(server.url, error.wwwAuthenticate ?? null, {
- signal: signal ? AbortSignal.any([signal, discovery]) : discovery,
- }).catch(() => null);
- if (meta) return { ok: false, auth: "required", error: SIGN_IN_REQUIRED };
+ if (error instanceof McpHttpError && error.status === 401 && await asksForSignIn(server.url, error, "connect", signal)) {
+ return { ok: false, auth: "required", error: SIGN_IN_REQUIRED };
}
if (error instanceof McpHttpError && error.kind === "status" && (error.status === 401 || error.status === 403)) {
return { ok: false, error: `The server didn't accept the keys (HTTP ${error.status}). Check the header values.`, reason: "keys", status: error.status };
diff --git a/server/postiz/service.test.ts b/server/postiz/service.test.ts
index 6cf4cef8a9..cece60fa7a 100644
--- a/server/postiz/service.test.ts
+++ b/server/postiz/service.test.ts
@@ -7,6 +7,7 @@ import type { AppConfig } from "../config.ts";
import { customMcpServers } from "../config.ts";
import { noteKeyAccepted } from "../key-rejections.ts";
import { McpOAuthManager } from "../mcp-oauth.ts";
+import { startFakeHttpMcp } from "../testing/fake-http-mcp-server.ts";
import { FAKE_POSTIZ_KEY, startFakePostiz, type FakePostiz } from "../testing/fake-postiz.ts";
import { createPostiz } from "./service.ts";
@@ -101,6 +102,23 @@ describe("the API key", () => {
expect(service.status()).toMatchObject({ state: "not-connected", how: null, keySaved: false });
});
+ it("checks and rechecks a key against a Postiz that lists tools to anyone and refuses calls, running no tool", async () => {
+ const key = "key-for-an-anonymous-lister";
+ const lister = await startFakeHttpMcp({ guard: "tools/call", acceptBearer: (authorization) => authorization === `Bearer ${key}`, tools: [{ name: "integrationList" }, { name: "postsListTool" }] });
+ try {
+ const address = new URL(lister.url).origin;
+ const service = postiz();
+ expect(await service.checkKey(address, key)).toEqual({ ok: true, tools: 2 });
+ expect(await save(service, { url: address, key })).toBeNull();
+ expect((await service.recheck()).tools).toBe(2);
+ expect(service.status()).toMatchObject({ state: "connected", how: "key" });
+ expect(lister.calls).toEqual([]);
+ expect(lister.refusedCalls).toEqual([]);
+ } finally {
+ await lister.close();
+ }
+ });
+
it("shows a revoked key as refused after the next check", async () => {
const service = postiz();
expect(await save(service, { url: fake.url, key: FAKE_POSTIZ_KEY })).toBeNull();
diff --git a/server/routes/mcp-servers.test.ts b/server/routes/mcp-servers.test.ts
index 066cfd1c8b..aed3049501 100644
--- a/server/routes/mcp-servers.test.ts
+++ b/server/routes/mcp-servers.test.ts
@@ -14,6 +14,7 @@ import type { TeamConnectionsHost } from "../host/team-connections-host.ts";
import { McpOAuthManager } from "../mcp-oauth.ts";
import { listMcpServers } from "../mcp-registry.ts";
import { startFakeHttpMcp, type FakeHttpMcp } from "../testing/fake-http-mcp-server.ts";
+import { startFakeOAuth } from "../testing/fake-oauth-server.ts";
import { createMcpConfig } from "../host/mcp-config.ts";
import { forgetToolBudgets, noteToolBudget } from "../tool-budgets.ts";
import { createMcpServerRoutes } from "./mcp-servers.ts";
@@ -221,6 +222,23 @@ describe.skipIf(process.platform === "win32")("Test, where bots reach URL server
expect(broker!.stats().forwarded).toBeGreaterThanOrEqual(2);
});
+ it("asks for a sign-in from a server that lists tools to anyone and refuses calls, with no 'fault is ours' fallback", async () => {
+ const issuer = await startFakeOAuth();
+ mcp = await startFakeHttpMcp({ exactPath: true, guard: "tools/call", acceptBearer: issuer.isValid, wwwAuthenticate: issuer.challenge, tools: [{ name: "buy" }] });
+ try {
+ const path = await brokerPath();
+ const route = await serve({ botsPath: () => path });
+ expect((await route.post("/api/mcp/servers", { name: "shop", type: "http", url: mcp.url, headers: {} })).status).toBe(201);
+ const result = await (await route.post("/api/mcp/servers/shop/test", {})).json();
+ expect(result).toEqual({ ok: false, auth: "required", error: "This server needs you to sign in." });
+ expect(mcp.refusedCalls).toHaveLength(1);
+ expect(mcp.calls).toEqual([]);
+ expect(broker!.stats().forwarded).toBeGreaterThanOrEqual(4);
+ } finally {
+ await issuer.close();
+ }
+ });
+
it("never says Connected when bots can't reach a server that answers directly, and says the fault is ours", async () => {
mcp = await startFakeHttpMcp({ exactPath: true, tools: [{ name: "lookup_order" }], requireHeaders: HEADERS });
const result = await tested(await brokerPath(true), mcp.url);
diff --git a/server/testing/fake-http-mcp-server.ts b/server/testing/fake-http-mcp-server.ts
index 3093c0ca71..14d31c2518 100644
--- a/server/testing/fake-http-mcp-server.ts
+++ b/server/testing/fake-http-mcp-server.ts
@@ -19,6 +19,12 @@ export interface FakeHttpMcpOptions {
acceptBearer?: (authorization: string | undefined) => boolean;
/** WWW-Authenticate value sent with a 401 */
wwwAuthenticate?: string;
+ /** which requests `requireHeader`, `requireHeaders` and `acceptBearer` guard: every request (default), or only tools/call,
+ * as mcp.agentcard.sh does (initialize and tools/list answer anyone) */
+ guard?: "every-request" | "tools/call";
+ /** JSON documents served to GET at these paths of this server's own origin; a function receives the origin, for documents
+ * that must name it */
+ wellKnown?: Record<string, unknown | ((origin: string) => unknown)>;
/** never answer tools/list (initialize still works) */
silentTools?: boolean;
/** answer tools/list only after this many milliseconds */
@@ -124,6 +130,8 @@ export interface FakeHttpMcp {
/** every request's path and query, as it arrived */
seenPaths: string[];
calls: unknown[];
+ /** the params of every tools/call the guard refused, so a test can tell a refused check from a tool that ran */
+ refusedCalls: unknown[];
/** tools/list requests now waiting out `toolsDelayMs` */
readonly delayedToolsLists: number;
/** tools/list requests answered so far */
@@ -154,6 +162,8 @@ export async function startFakeHttpMcp(options: FakeHttpMcpOptions = {}): Promis
const seenPaths: string[] = [];
const streams = new Set<ServerResponse>();
const calls: unknown[] = [];
+ const refusedCalls: unknown[] = [];
+ let origin = "";
let delayedToolsLists = 0;
let toolsLists = 0;
let tools = options.tools;
@@ -219,16 +229,27 @@ export async function startFakeHttpMcp(options: FakeHttpMcpOptions = {}): Promis
void (async () => {
seenHeaders.push({ ...req.headers });
seenPaths.push(req.url ?? "");
+ const wellKnown = req.method === "GET" ? options.wellKnown?.[(req.url ?? "").split("?")[0]!] : undefined;
+ if (wellKnown !== undefined) {
+ const document = typeof wellKnown === "function" ? wellKnown(origin) : wellKnown;
+ res.writeHead(200, { "content-type": "application/json" }).end(JSON.stringify(document));
+ return;
+ }
if (options.exactPath && !(transport === "sse" ? ["/sse", "/messages"] : ["/mcp"]).includes((req.url ?? "").split("?")[0]!)) {
res.writeHead(404, { "content-type": "text/plain" }).end("Not found");
return;
}
- if (options.requireHeaders && Object.entries(options.requireHeaders).some(([name, value]) => req.headers[name.toLowerCase()] !== value)) {
+ const guardsCallsOnly = options.guard === "tools/call";
+ const body = guardsCallsOnly && req.method === "POST" ? await readBody(req) : undefined;
+ const early = body === undefined ? undefined : JSON.parse(body || "{}") as { method?: unknown; params?: unknown };
+ const guarded = !guardsCallsOnly || early?.method === "tools/call";
+ if (guarded && options.requireHeaders && Object.entries(options.requireHeaders).some(([name, value]) => req.headers[name.toLowerCase()] !== value)) {
res.writeHead(403, { "content-type": "text/plain" }).end("Forbidden");
return;
}
- if ((options.requireHeader && req.headers[options.requireHeader.name.toLowerCase()] !== options.requireHeader.value)
- || (options.acceptBearer && !options.acceptBearer(req.headers.authorization))) {
+ if (guarded && ((options.requireHeader && req.headers[options.requireHeader.name.toLowerCase()] !== options.requireHeader.value)
+ || (options.acceptBearer && !options.acceptBearer(req.headers.authorization)))) {
+ if (guardsCallsOnly) refusedCalls.push(early?.params);
res.writeHead(401, {
"content-type": "application/json",
...(options.wwwAuthenticate ? { "www-authenticate": options.wwwAuthenticate } : {}),
@@ -246,7 +267,7 @@ export async function startFakeHttpMcp(options: FakeHttpMcpOptions = {}): Promis
res.writeHead(req.method === "DELETE" ? 405 : 404).end();
return;
}
- const frame = JSON.parse((await readBody(req)) || "{}") as { id?: unknown; method?: unknown; params?: unknown };
+ const frame = JSON.parse((body ?? await readBody(req)) || "{}") as { id?: unknown; method?: unknown; params?: unknown };
if (frame.method === undefined && frame.id !== undefined) {
replies.push(frame);
replied?.();
@@ -327,11 +348,13 @@ export async function startFakeHttpMcp(options: FakeHttpMcpOptions = {}): Promis
const host = options.host ?? "127.0.0.1";
await new Promise<void>((resolve, reject) => { server.once("error", reject); server.listen(0, host, () => { server.off("error", reject); resolve(); }); });
const { port } = server.address() as AddressInfo;
+ origin = `${options.tls ? "https" : "http"}://${host === "::1" ? "[::1]" : host}:${port}`;
return {
- url: `${options.tls ? "https" : "http"}://${host === "::1" ? "[::1]" : host}:${port}/${transport === "sse" ? "sse" : "mcp"}`,
+ url: `${origin}/${transport === "sse" ? "sse" : "mcp"}`,
seenHeaders,
seenPaths,
calls,
+ refusedCalls,
get delayedToolsLists() { return delayedToolsLists; },
get toolsLists() { return toolsLists; },
replies,
diff --git a/src/components/HostedMcpIcon.tsx b/src/components/HostedMcpIcon.tsx
new file mode 100644
index 0000000000..a477274d3c
--- /dev/null
+++ b/src/components/HostedMcpIcon.tsx
@@ -0,0 +1,8 @@
+import type { HostedMcpApp } from "@/lib/hosted-mcp-apps";
+
+/** The app's 40 px tile: its logo, or its glyph on a neutral tile. */
+export function HostedMcpIcon({ app }: { app: HostedMcpApp }) {
+ if ("image" in app.icon) return <img src={app.icon.image} alt="" className="size-10 shrink-0 rounded-xl object-contain" />;
+ const Glyph = app.icon.glyph;
+ return <span className="flex size-10 shrink-0 items-center justify-center rounded-xl bg-raised text-ink-secondary"><Glyph size={19} aria-hidden="true" /></span>;
+}
diff --git a/src/components/McpServersPanel.embedded.test.ts b/src/components/McpServersPanel.embedded.test.ts
index 679033d340..ad054cda57 100644
--- a/src/components/McpServersPanel.embedded.test.ts
+++ b/src/components/McpServersPanel.embedded.test.ts
@@ -22,13 +22,14 @@ vi.mock("@/state/store", () => ({
api: vi.fn(() => new Promise(() => {})),
useStore: () => ({ state: { config: null }, dispatch: vi.fn() }),
}));
+import { HOSTED_MCP_APPS } from "@/lib/hosted-mcp-apps";
import { McpServersPanel } from "./McpServersPanel";
-function render(embedded: boolean, whopCard = false) {
+function render(embedded: boolean, cards = false, hideHosted = false) {
function Capture() {
fixture.index = 0;
fixture.counting = true;
- try { return McpServersPanel({ embedded, whopCard }); } finally { fixture.counting = false; }
+ try { return McpServersPanel({ embedded, hideHosted, hostedCards: cards ? { shown: () => true, onConnections: () => {} } : undefined }); } finally { fixture.counting = false; }
}
return renderToStaticMarkup(createElement(Capture));
}
@@ -76,32 +77,48 @@ describe("Your MCP servers inside the Apps pop-up", () => {
expect(html).toContain("Add server");
});
- it("offers Whop setup with no API key form or forced installation", () => {
+ it.each(HOSTED_MCP_APPS)("offers $label setup with no API key form or forced installation", (app) => {
fixture.servers = [];
const html = render(true, true);
- expect(html).toContain('data-app-tile="whop"');
- expect(html).toContain('aria-label="Connect Whop"');
+ expect(html).toContain(`data-app-tile="${app.id}"`);
+ expect(html).toContain(`aria-label="Connect ${app.label}"`);
expect(html).toContain("No API key needed");
- expect(html).toContain("admin access across businesses");
expect(html).not.toContain("<textarea");
expect(html).not.toContain("Your MCP servers");
expect(html).not.toContain("Paste config");
});
- it("recognizes an existing Whop URL under any name and exposes access and disconnect", () => {
- fixture.servers = [{ name: "business", type: "http", url: "https://mcp.whop.com/mcp", headerKeys: [], enabled: true, auth: "signed-in" }];
+ it("explains Whop's admin access on its card", () => {
+ fixture.servers = [];
+ expect(render(true, true)).toContain("admin access across businesses");
+ });
+
+ it.each(HOSTED_MCP_APPS)("recognizes an existing $label URL under any name and exposes access and disconnect", (app) => {
+ fixture.servers = [{ name: "business", type: "http", url: app.url, headerKeys: [], enabled: true, auth: "signed-in" }];
const html = render(true);
- expect(html).toContain('data-whop-server="business"');
- expect(html).toContain("Disconnect Whop");
+ expect(html).toContain(`data-hosted-server="${app.id}"`);
+ expect(html).toContain(`Disconnect ${app.label}`);
expect(html).toContain("Bot access");
- expect(html).not.toContain("data-whop-setup");
});
- it("does not brand an unrelated endpoint just because its name is whop", () => {
- fixture.servers = [{ name: "whop", type: "http", url: "https://unrelated.example/mcp", headerKeys: [], enabled: false }];
+ it.each(HOSTED_MCP_APPS)("does not brand an unrelated endpoint just because its name is $id", (app) => {
+ fixture.servers = [{ name: app.id, type: "http", url: "https://unrelated.example/mcp", headerKeys: [], enabled: false }];
const html = render(true);
- expect(html).not.toContain("data-whop-setup");
- expect(html).not.toContain("data-whop-server");
+ expect(html).not.toContain("data-hosted-server");
+ expect(html).not.toContain(`Connect ${app.label}`);
+ });
+
+ it("hides every hosted app's server and Postiz from the All list, and shows them again under MCP", () => {
+ fixture.servers = [
+ ...HOSTED_MCP_APPS.map((app) => ({ name: app.id, type: "http", url: app.url, headerKeys: [], enabled: true, auth: "signed-in" })),
+ { name: "docs", type: "http", url: "https://mcp.example.com/mcp", headerKeys: [], enabled: false },
+ ];
+ const listed = render(true);
+ expect(listed).toContain('aria-label="Edit docs"');
+ for (const app of HOSTED_MCP_APPS) expect(listed).toContain(`data-hosted-server="${app.id}"`);
+ const hidden = render(true, false, true);
+ expect(hidden).toContain('aria-label="Edit docs"');
+ expect(hidden).not.toContain("data-hosted-server");
});
it.each([true, false])("shows the paste step openly only when the browser cannot come back (pasteBack %s)", (pasteBack) => {
diff --git a/src/components/McpServersPanel.hosted.test.ts b/src/components/McpServersPanel.hosted.test.ts
new file mode 100644
index 0000000000..d4cca20be6
--- /dev/null
+++ b/src/components/McpServersPanel.hosted.test.ts
@@ -0,0 +1,248 @@
+// @vitest-environment happy-dom
+import { act, createElement } from "react";
+import { createRoot, type Root } from "react-dom/client";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+import { HOSTED_MCP_APPS, type HostedApp } from "@/lib/hosted-mcp-apps";
+import { setLocale } from "@/lib/i18n";
+
+const fixture = vi.hoisted(() => ({
+ api: vi.fn(),
+ runMcpSignIn: vi.fn(),
+ openBotSettings: vi.fn(),
+ dispatch: vi.fn(),
+ store: { config: null as unknown, bots: [] as unknown[] },
+}));
+vi.mock("@/state/store", () => ({
+ api: fixture.api,
+ useStore: () => ({ state: fixture.store, dispatch: fixture.dispatch }),
+}));
+vi.mock("@/lib/mcp-sign-in", async (original) => ({
+ ...(await original<typeof import("@/lib/mcp-sign-in")>()),
+ runMcpSignIn: fixture.runMcpSignIn,
+}));
+vi.mock("@/lib/app-links", () => ({ openExternalLink: vi.fn(async () => {}) }));
+vi.mock("@/lib/mcp-servers", () => ({ updateMcpServers: vi.fn() }));
+vi.mock("./bot-panel/panel-link", () => ({ openBotSettings: fixture.openBotSettings }));
+
+import { McpServersPanel } from "./McpServersPanel";
+
+interface Listing { name: string; type: "http"; url: string; headerKeys: string[]; enabled: boolean; auth: "signed-in" | "needs-sign-in"; managedBy?: string }
+const listing = (app: HostedApp, extra: Partial<Listing> = {}): Listing => ({ name: app.id, type: "http", url: app.url, headerKeys: [], enabled: false, auth: "needs-sign-in", ...extra });
+
+let host: HTMLDivElement;
+let root: Root;
+let servers: Listing[];
+let testRequest: { resolve: (value: unknown) => void; signal?: AbortSignal } | null;
+let shown: (id: string) => boolean;
+
+const settle = () => act(async () => { for (let turn = 0; turn < 5; turn += 1) await Promise.resolve(); });
+const card = (app: HostedApp) => host.querySelector<HTMLElement>(`[data-app-tile="${app.id}"]`)!;
+const button = (app: HostedApp, label: string) => [...card(app).querySelectorAll("button")].find((element) => element.textContent?.trim() === label)!;
+const calls = (method: string) => fixture.api.mock.calls.filter(([, init]) => (init as RequestInit | undefined)?.method === method)
+ .map(([path, init]) => [path as string, (init as RequestInit).body ? JSON.parse((init as RequestInit).body as string) : undefined] as const);
+
+const added = () => calls("POST").filter(([path]) => path === "/api/mcp/servers").map(([, body]) => body);
+
+async function mount() {
+ host = document.createElement("div");
+ document.body.append(host);
+ root = createRoot(host);
+ const Cards = () => McpServersPanel({ hostedCards: { shown, onConnections: () => {} } });
+ await act(async () => root.render(createElement(Cards)));
+ await settle();
+}
+
+beforeEach(() => {
+ vi.clearAllMocks();
+ setLocale("en");
+ testRequest = null;
+ servers = [];
+ shown = () => true;
+ fixture.store = { config: null, bots: [{ id: "atlas", name: "Atlas", hidden: false }, { id: "ghost", name: "Ghost", hidden: true }] };
+ fixture.runMcpSignIn.mockResolvedValue({ phase: "succeeded", flowId: "00000000-0000-4000-8000-000000000000", authorizationUrl: null });
+ fixture.api.mockImplementation((path: string, init?: RequestInit) => {
+ const body = init?.body ? JSON.parse(init.body as string) : undefined;
+ if (path === "/api/mcp/servers" && !init?.method) return Promise.resolve({ servers });
+ if (path === "/api/mcp/servers" && init?.method === "POST") {
+ servers.push({ headerKeys: [], auth: "needs-sign-in", ...body });
+ return Promise.resolve({ servers });
+ }
+ const named = /^\/api\/mcp\/servers\/([^/]+)(\/sign-out|\/test)?$/.exec(path);
+ const server = named && servers.find((entry) => entry.name === named[1]);
+ if (server && named[2] === "/test") {
+ return new Promise((resolve, reject) => {
+ testRequest = { resolve, signal: init?.signal ?? undefined };
+ init?.signal?.addEventListener("abort", () => reject(new DOMException("aborted", "AbortError")));
+ });
+ }
+ if (server && named[2] === "/sign-out") { server.auth = "needs-sign-in"; return Promise.resolve({ servers }); }
+ if (server && init?.method === "PATCH") { server.enabled = body.enabled; return Promise.resolve({ servers }); }
+ return Promise.reject(new Error(`unexpected ${init?.method ?? "GET"} ${path}`));
+ });
+});
+afterEach(async () => {
+ await act(async () => root.unmount());
+ host.remove();
+});
+
+describe.each(HOSTED_MCP_APPS)("The $label card", (app) => {
+ async function connect() {
+ await act(async () => button(app, "Connect").click());
+ await settle();
+ }
+
+ describe("signing in", () => {
+ beforeEach(async () => {
+ servers = [listing(app)];
+ await mount();
+ });
+
+ it(`says it is loading ${app.label}'s tools while the test runs, then shows why it failed in one line`, async () => {
+ await connect();
+ expect(testRequest).not.toBeNull();
+ expect(card(app).querySelector('[role="status"]')?.textContent).toContain(`Signed in. Loading ${app.label}’s tools…`);
+ expect(card(app).textContent).not.toContain("Waiting");
+ expect(button(app, "Cancel")).toBeTruthy();
+
+ await act(async () => testRequest!.resolve({ ok: false, error: "The server did not answer in time." }));
+ await settle();
+
+ expect([...card(app).querySelectorAll('[role="alert"]')].map((element) => element.textContent)).toEqual([
+ `Signed in, but ${app.label}’s tools could not be loaded: The server did not answer in time. Please connect again to retry.`,
+ ]);
+ expect(calls("PATCH")).toEqual([]);
+ expect(button(app, "Connect")).toBeTruthy();
+ });
+
+ it("keeps the reason when the test request itself is refused", async () => {
+ await connect();
+ await act(async () => { testRequest!.resolve(Promise.reject(new Error("Two MCP connection tests are already running."))); });
+ await settle();
+ expect(card(app).querySelector('[role="alert"]')?.textContent)
+ .toBe(`Signed in, but ${app.label}’s tools could not be loaded: Two MCP connection tests are already running. Please connect again to retry.`);
+ });
+
+ it("ends a reason that has no period of its own, like a proxy's 504", async () => {
+ await connect();
+ await act(async () => { testRequest!.resolve(Promise.reject(new Error("504 Gateway Timeout"))); });
+ await settle();
+ expect(card(app).querySelector('[role="alert"]')?.textContent)
+ .toBe(`Signed in, but ${app.label}’s tools could not be loaded: 504 Gateway Timeout. Please connect again to retry.`);
+ });
+
+ it("closes the test request when the person cancels", async () => {
+ await connect();
+ expect(testRequest?.signal?.aborted).toBe(false);
+ await act(async () => button(app, "Cancel").click());
+ await settle();
+ expect(testRequest?.signal?.aborted).toBe(true);
+ expect(card(app).querySelector('[role="alert"]')).toBeNull();
+ });
+
+ it("turns the server on once its tools load", async () => {
+ await connect();
+ await act(async () => testRequest!.resolve({ ok: true, tools: [{ name: "any" }] }));
+ await settle();
+ expect(calls("PATCH")).toEqual([[`/api/mcp/servers/${app.id}`, { enabled: true }]]);
+ });
+
+ it("leaves the other hosted apps' buttons alone while this one signs in", async () => {
+ await connect();
+ for (const other of HOSTED_MCP_APPS.filter((candidate) => candidate !== app)) {
+ expect(button(other, "Cancel")).toBeUndefined();
+ expect(card(other).querySelector("button")!.disabled).toBe(true);
+ }
+ });
+ });
+
+ it("adds the server at its official address without testing it first, then signs in", async () => {
+ await mount();
+ await connect();
+ expect(added()).toEqual([{ name: app.id, type: "http", url: app.url, enabled: false }]);
+ expect(fixture.runMcpSignIn).toHaveBeenCalledWith(app.id, expect.anything());
+ const testCall = fixture.api.mock.calls.findIndex(([path]) => path === `/api/mcp/servers/${app.id}/test`);
+ expect(fixture.api.mock.invocationCallOrder[testCall]).toBeGreaterThan(fixture.runMcpSignIn.mock.invocationCallOrder[0]!);
+ });
+
+ it("shows a failed save on its own card only", async () => {
+ await mount();
+ const save = fixture.api.getMockImplementation()!;
+ fixture.api.mockImplementation((path: string, init?: RequestInit) => init?.method === "POST" && path === "/api/mcp/servers"
+ ? Promise.reject(new Error("Synthetic save failure"))
+ : save(path, init));
+ await connect();
+ expect([...card(app).querySelectorAll('[role="alert"]')].map((element) => element.textContent)).toEqual(["Synthetic save failure"]);
+ for (const other of HOSTED_MCP_APPS.filter((candidate) => candidate !== app)) expect(card(other).querySelector('[role="alert"]')).toBeNull();
+ });
+
+ it("signs in to the server it already has, under any name, instead of adding another", async () => {
+ servers = [listing(app, { name: "business" })];
+ await mount();
+ await connect();
+ expect(added()).toEqual([]);
+ expect(fixture.runMcpSignIn).toHaveBeenCalledWith("business", expect.anything());
+ });
+
+ it("turns the server off before signing out", async () => {
+ servers = [listing(app, { enabled: true, auth: "signed-in" })];
+ await mount();
+ expect(card(app).querySelector('[aria-label="Connected"]')).not.toBeNull();
+ await act(async () => button(app, "Disconnect").click());
+ await settle();
+ expect(fixture.api.mock.calls.map(([path]) => path).slice(-2)).toEqual([`/api/mcp/servers/${app.id}`, `/api/mcp/servers/${app.id}/sign-out`]);
+ expect(calls("PATCH")).toEqual([[`/api/mcp/servers/${app.id}`, { enabled: false }]]);
+ });
+
+ it("cannot connect a server the organization manages or a policy that allows no custom servers", async () => {
+ servers = [listing(app, { managedBy: "Acme" })];
+ await mount();
+ expect((button(app, "Connect") as HTMLButtonElement).disabled).toBe(true);
+ await act(async () => root.unmount());
+ host.remove();
+ servers = [];
+ fixture.store = { ...fixture.store, config: { managedPolicy: { organizationName: "Acme", mcp: { allowCustom: false, allowlist: [] } } } };
+ await mount();
+ expect((button(app, "Connect") as HTMLButtonElement).disabled).toBe(true);
+ });
+
+ it("opens each visible bot's Access settings on its MCP page from Bot access", async () => {
+ await mount();
+ const buttons = [...card(app).querySelectorAll("details button")];
+ expect(buttons.map((element) => element.textContent)).toEqual(["Manage Atlas’s access"]);
+ await act(async () => (buttons[0] as HTMLButtonElement).click());
+ expect(fixture.dispatch).toHaveBeenCalledWith({ type: "togglePlugins", open: false });
+ expect(fixture.openBotSettings).toHaveBeenCalledWith(fixture.dispatch, "access", { botId: "atlas", page: "mcp" });
+ });
+
+ it("shows its logo, or its glyph and no image when the service publishes no logo we may ship", async () => {
+ await mount();
+ expect(card(app).querySelector("img") !== null).toBe("image" in app.icon);
+ expect(card(app).querySelector("svg") !== null).toBe("glyph" in app.icon);
+ });
+});
+
+describe("the Agentcard tile", () => {
+ it("draws a glyph and never an Agentcard logo, and says Agentcard keeps the cards", async () => {
+ await mount();
+ const tile = card(HOSTED_MCP_APPS.find((app) => app.id === "agentcard")!);
+ expect(tile.querySelector("img")).toBeNull();
+ expect(tile.querySelector("svg")).not.toBeNull();
+ expect(tile.textContent).toContain("Shop and pay from your own Agentcard account.");
+ expect(tile.textContent).toContain("OpenMausBot stores no card details");
+ });
+});
+
+describe("hiding a hosted card", () => {
+ it("keeps it mounted and loads the servers once for every card", async () => {
+ const [kept, ...others] = HOSTED_MCP_APPS;
+ shown = (id) => id === kept.id;
+ await mount();
+ expect(card(kept).parentElement!.className).toBe("contents");
+ for (const other of others) {
+ expect(card(other)).not.toBeNull();
+ expect(card(other).parentElement!.className).toBe("hidden");
+ }
+ expect(fixture.api.mock.calls.filter(([path]) => path === "/api/mcp/servers")).toHaveLength(1);
+ });
+});
diff --git a/src/components/McpServersPanel.tsx b/src/components/McpServersPanel.tsx
index 9b76cb2358..999911224e 100644
--- a/src/components/McpServersPanel.tsx
+++ b/src/components/McpServersPanel.tsx
@@ -1,4 +1,4 @@
-import { useCallback, useEffect, useRef, useState } from "react";
+import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
Check,
CheckCircle2,
@@ -26,11 +26,11 @@ import { api, useStore } from "@/state/store";
import { McpAppsSwitch } from "./McpAppsSwitch";
import { Switch } from "./SettingsPrimitives";
import { ClaudeCodeSwitches } from "./ClaudeCodeSwitches";
-import { WhopIcon } from "./WhopIcon";
+import { HostedMcpIcon } from "./HostedMcpIcon";
import type { McpMessage } from "./McpResultBudgetField";
import { McpServerEditor, type McpServerSubmission } from "./McpServerEditor";
import { isRemoteMcpListing, type McpServerListing } from "./mcp-draft";
-import { WHOP_MCP_URL, isWhopServer, whopServerName } from "@/lib/whop-integration";
+import { HOSTED_MCP_APPS, hostedConnections, hostedMcpApp, hostedServerName, type HostedApp, type HostedConnections, type HostedMcpAppId } from "@/lib/hosted-mcp-apps";
import { POSTIZ_SERVER } from "../../shared/postiz";
import { CHAT_TOOL_LIMIT, chatToolBudgetFit } from "../../shared/tool-budget";
import { openBotSettings } from "./bot-panel/panel-link";
@@ -69,11 +69,12 @@ export async function signedInToolsCheck(
name: string,
request: (path: string, init?: RequestInit) => Promise<ProbeResult>,
signal: AbortSignal,
+ service: string,
): Promise<ProbeResult> {
const tested = await toolsCheck(name, request, signal);
if (tested.ok) return tested;
const reason = (tested.error ?? "").trim();
- return { ...tested, error: t("whop.testFailed", { reason: reason && !/[.!?]$/.test(reason) ? `${reason}.` : reason }) };
+ return { ...tested, error: t("hostedMcp.testFailed", { service, reason: reason && !/[.!?]$/.test(reason) ? `${reason}.` : reason }) };
}
/** Security: names the headers, never their values. */
@@ -93,12 +94,19 @@ export function connectedLabel(result: Pick<ProbeResult, "tools" | "total">): st
return fit === "fits" ? connected : `${connected}. ${t(fit === "exceeds" ? "mcp.check.overLimit" : "mcp.check.crowdsLimit", { count, limit: CHAT_TOOL_LIMIT })}`;
}
-export function McpServersPanel({ embedded = false, whopCard = false, hideWhop = false, refreshKey = 0, onWhopConnection }: {
+export interface HostedCardsProps {
+ /** Whether this app's card shows now (search, filter, category view). A hidden card stays mounted. */
+ shown(id: HostedMcpAppId): boolean;
+ onConnections(connected: HostedConnections): void;
+}
+
+/** `hostedCards`: render the one-click card of each hosted MCP app (one instance, one server load, one sign-in at a time)
+ * instead of the server list. `hideHosted`: leave hosted apps' servers (and Postiz's) out of the list, since their cards show them. */
+export function McpServersPanel({ embedded = false, hostedCards, hideHosted = false, refreshKey = 0 }: {
embedded?: boolean;
- whopCard?: boolean;
- hideWhop?: boolean;
+ hostedCards?: HostedCardsProps;
+ hideHosted?: boolean;
refreshKey?: number;
- onWhopConnection?: (connected: boolean) => void;
} = {}) {
const { state: store, dispatch } = useStore();
const botName = (id: string) => store.bots?.find((bot) => bot.id === id)?.name ?? id;
@@ -121,11 +129,14 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
/** Each server a passing test just switched on, and when; and the one being tested to switch it on. */
const switchedOn = useRef<Record<string, number>>({});
const [connecting, setConnecting] = useState<string | null>(null);
+ /** A failed card action belongs to that card alone: the cards share one instance, and `error` shows on every one. */
+ const [cardFailure, setCardFailure] = useState<{ id: HostedMcpAppId; message: string } | null>(null);
const loadGeneration = useRef(0);
const mounted = useRef(true);
- const whopServer = servers?.find((server) => isRemoteMcpListing(server) && isWhopServer(server));
- const whopConnected = Boolean(whopServer?.enabled && isRemoteMcpListing(whopServer) && whopServer.auth === "signed-in");
- useEffect(() => { if (servers !== null) onWhopConnection?.(whopConnected); }, [servers, whopConnected, onWhopConnection]);
+ const hostedOf = (server: McpServerListing) => isRemoteMcpListing(server) ? hostedMcpApp(server) : undefined;
+ const connections = useMemo(() => servers && hostedConnections(servers), [servers]);
+ const onConnections = hostedCards?.onConnections;
+ useEffect(() => { if (connections) onConnections?.(connections); }, [connections, onConnections]);
const listed = (next: McpServerListing[] | undefined) => {
setServers(next ?? []);
@@ -324,9 +335,10 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
setCallbackUrl("");
setCallbackError(null);
setError(null);
+ setCardFailure(null);
setNotice(null);
forgetProbe(server.name);
- const whop = isRemoteMcpListing(server) && isWhopServer(server);
+ const hosted = hostedOf(server);
try {
const result = await runMcpSignIn(server.name, { api, open: openExternalLink, signal: controller.signal, onStarted: (status, complete) => {
setSignInFlow(status);
@@ -335,14 +347,14 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
if (!mounted.current || controller.signal.aborted) return;
if (result.phase === "succeeded") {
setSignInFlow({ ...result, flowId: null, authorizationUrl: null });
- const tested = whop ? await signedInToolsCheck(server.name, api, controller.signal) : await toolsCheck(server.name, api, controller.signal);
+ const tested = hosted ? await signedInToolsCheck(server.name, api, controller.signal, hosted.label) : await toolsCheck(server.name, api, controller.signal);
if (controller.signal.aborted || !mounted.current) return;
setProbe((current) => ({ ...current, [server.name]: tested }));
if (!tested.ok) return;
const enabled = await api(`/api/mcp/servers/${server.name}`, { method: "PATCH", body: JSON.stringify({ enabled: true }) });
if (!mounted.current) return;
listed(enabled.servers);
- if (whop) setNotice({ key: "whop.connected" });
+ if (hosted) setNotice({ key: "hostedMcp.connected", params: { service: hosted.label } });
} else if (result.phase !== "cancelled") {
setProbe((current) => ({ ...current, [server.name]: { ok: false, error: result.message || t("mcp.auth.failed") } }));
}
@@ -362,23 +374,24 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
}
}
- const connectWhop = async () => {
+ const connectHosted = async (app: HostedApp) => {
if (!servers || busy !== null || signingIn !== null) return;
- const existing = servers.find((server) => isRemoteMcpListing(server) && isWhopServer(server));
+ const existing = servers.find((server) => hostedOf(server) === app);
if (existing) { await signIn(existing); return; }
- setBusy("whop");
+ setBusy(`hosted:${app.id}`);
loadGeneration.current += 1;
setError(null);
+ setCardFailure(null);
setNotice(null);
let added: McpServerListing | undefined;
try {
- const name = whopServerName(servers);
- const result = await api("/api/mcp/servers", { method: "POST", body: JSON.stringify({ name, type: "http", url: WHOP_MCP_URL, enabled: false }) });
+ const name = hostedServerName(app, servers);
+ const result = await api("/api/mcp/servers", { method: "POST", body: JSON.stringify({ name, type: "http", url: app.url, enabled: false }) });
if (!mounted.current) return;
- added = listed(result.servers).find((server: McpServerListing) => server.name === name && isRemoteMcpListing(server) && isWhopServer(server));
- if (!added) throw new Error(t("whop.setupFailed"));
+ added = listed(result.servers).find((server: McpServerListing) => server.name === name && hostedOf(server) === app);
+ if (!added) throw new Error(t("hostedMcp.setupFailed", { service: app.label }));
} catch (cause) {
- if (mounted.current) setError(cause instanceof Error ? cause.message : String(cause));
+ if (mounted.current) setCardFailure({ id: app.id, message: cause instanceof Error ? cause.message : String(cause) });
} finally { if (mounted.current) setBusy(null); }
if (added && mounted.current) await signIn(added);
};
@@ -398,19 +411,21 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
}
};
- const signOut = async (server: McpServerListing) => {
+ const signOut = async (server: McpServerListing, card?: HostedApp) => {
setBusy(`signout:${server.name}`);
loadGeneration.current += 1;
setError(null);
+ setCardFailure(null);
setNotice(null);
forgetProbe(server.name);
try {
- if (isRemoteMcpListing(server) && isWhopServer(server)) {
+ if (hostedOf(server)) {
listed((await api(`/api/mcp/servers/${server.name}`, { method: "PATCH", body: JSON.stringify({ enabled: false }) })).servers);
}
listed((await api(`/api/mcp/servers/${server.name}/sign-out`, { method: "POST" })).servers);
} catch (cause) {
- setError(cause instanceof Error ? cause.message : String(cause));
+ const message = cause instanceof Error ? cause.message : String(cause);
+ if (card) setCardFailure({ id: card.id, message }); else setError(message);
} finally {
setBusy(null);
}
@@ -453,10 +468,11 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
}
function renderSignIn(server: McpServerListing) {
+ const hosted = hostedOf(server);
return signingIn === server.name && (
<div className="mt-3 space-y-3 rounded-lg bg-raised px-3 py-3 text-[12px] text-ink-secondary">
<div role="status" className="flex items-center gap-2">
- <Loader2 size={13} className="animate-spin" /> {t(signInFlow?.phase !== "succeeded" ? "mcp.auth.waiting" : isRemoteMcpListing(server) && isWhopServer(server) ? "whop.loadingTools" : "mcp.auth.loadingTools")}
+ <Loader2 size={13} className="animate-spin" /> {signInFlow?.phase !== "succeeded" ? t("mcp.auth.waiting") : hosted ? t("hostedMcp.loadingTools", { service: hosted.label }) : t("mcp.auth.loadingTools")}
</div>
{signInFlow?.authorizationUrl && mcpSignInLink(signInFlow.authorizationUrl) && (
<button type="button" onClick={() => void openExternalLink(signInFlow.authorizationUrl!).catch(() => setCallbackError(t("mcp.auth.openFailed")))} className="text-accent hover:underline">
@@ -478,42 +494,49 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
);
}
- if (whopCard) {
- const result = whopServer && probe[whopServer.name];
- const failed = error || (result && !result.ok ? result.error : null);
+ function renderHostedCard(app: HostedApp) {
+ const server = servers?.find((listed) => hostedOf(listed) === app);
+ const connected = Boolean(connections?.[app.id]);
+ const result = server && probe[server.name];
+ const failed = error || (cardFailure?.id === app.id ? cardFailure.message : null) || (result && !result.ok ? result.error : null);
const pending = busy !== null || signingIn !== null;
- return <div data-app-tile="whop" className="flex min-w-0 flex-col rounded-xl px-2 py-2 transition-colors hover:bg-raised/40">
+ const mine = busy === `hosted:${app.id}` || (server !== undefined && (signingIn === server.name || busy === `signout:${server.name}`));
+ return <div data-app-tile={app.id} className="flex min-w-0 flex-col rounded-xl px-2 py-2 transition-colors hover:bg-raised/40">
<div className="flex items-center gap-3">
- <WhopIcon />
+ <HostedMcpIcon app={app} />
<div className="min-w-0 flex-1">
<div className="flex min-w-0 items-center gap-1.5">
- <span className="truncate text-[14px] font-semibold leading-5 text-ink">Whop</span>
- {whopConnected && <Check size={13} strokeWidth={2.5} className="shrink-0 text-success" aria-label={t("apps.connected")} />}
+ <span className="truncate text-[14px] font-semibold leading-5 text-ink">{app.label}</span>
+ {connected && <Check size={13} strokeWidth={2.5} className="shrink-0 text-success" aria-label={t("apps.connected")} />}
</div>
- <p className="truncate text-[13px] leading-[18px] text-ink-secondary" title={t("whop.description")}>{t("whop.description")}</p>
+ <p className="truncate text-[13px] leading-[18px] text-ink-secondary" title={t(app.description)}>{t(app.description)}</p>
</div>
- {signingIn ? <button type="button" onClick={() => signInAbort.current?.abort()} className="inline-flex h-7 shrink-0 items-center rounded-full bg-control/80 px-3 text-[13px] font-medium leading-5 text-ink">{t("mcp.auth.cancel")}</button> :
- <button type="button" aria-label={t(whopConnected ? "whop.disconnect" : "whop.connect")}
- disabled={pending || (servers !== null && !whopConnected && (Boolean(whopServer?.managedBy) || (restricted && !policy?.mcp.allowlist.length)))}
- onClick={() => void (servers === null ? load() : whopConnected && whopServer ? signOut(whopServer) : connectWhop())}
+ {server && signingIn === server.name ? <button type="button" onClick={() => signInAbort.current?.abort()} className="inline-flex h-7 shrink-0 items-center rounded-full bg-control/80 px-3 text-[13px] font-medium leading-5 text-ink">{t("mcp.auth.cancel")}</button> :
+ <button type="button" aria-label={t(connected ? "hostedMcp.disconnect" : "hostedMcp.connect", { service: app.label })}
+ disabled={pending || (servers !== null && !connected && (Boolean(server?.managedBy) || (restricted && !policy?.mcp.allowlist.length)))}
+ onClick={() => void (servers === null ? load() : connected && server ? signOut(server, app) : connectHosted(app))}
className="inline-flex h-7 min-w-[64px] shrink-0 items-center justify-center gap-2 rounded-full bg-control/80 px-3 text-[13px] font-medium leading-5 text-ink hover:bg-raised-hover disabled:opacity-40">
- {pending ? <Loader2 size={14} className="animate-spin" /> : servers === null ? t("connectors.action.retry") : t(whopConnected ? "connectors.disconnect" : "connectors.action.connect")}
+ {pending && (mine || busy === "load") ? <Loader2 size={14} className="animate-spin" /> : servers === null ? t("connectors.action.retry") : t(connected ? "connectors.disconnect" : "connectors.action.connect")}
</button>}
</div>
<div className="ps-[52px]">
{failed && <p role="alert" className="mt-1.5 text-[12px] text-danger">{typeof failed === "string" ? failed : t(failed.key, failed.params)}</p>}
- {whopServer && renderSignIn(whopServer)}
+ {server && renderSignIn(server)}
<details className="mt-1 text-[12px] text-ink-secondary">
- <summary className="cursor-pointer">{t("whop.access")}</summary>
- <p className="mt-2 leading-relaxed">{t("whop.notice")}</p>
- <p className="mt-2 leading-relaxed">{t("whop.accessHint")}</p>
- <div className="mt-2 flex flex-wrap gap-2">{(store.bots ?? []).filter((bot) => !bot.hidden).map((bot) => <button key={bot.id} type="button" onClick={() => { dispatch({ type: "togglePlugins", open: false }); openBotSettings(dispatch, "access", { botId: bot.id, page: "mcp" }); }} className="rounded-lg bg-control px-2.5 py-1.5 text-ink hover:bg-raised-hover">{t("whop.botSettings", { name: bot.name })}</button>)}</div>
+ <summary className="cursor-pointer">{t("hostedMcp.access")}</summary>
+ <p className="mt-2 leading-relaxed">{t(app.notice)}</p>
+ <p className="mt-2 leading-relaxed">{t("hostedMcp.accessHint")}</p>
+ <div className="mt-2 flex flex-wrap gap-2">{(store.bots ?? []).filter((bot) => !bot.hidden).map((bot) => <button key={bot.id} type="button" onClick={() => { dispatch({ type: "togglePlugins", open: false }); openBotSettings(dispatch, "access", { botId: bot.id, page: "mcp" }); }} className="rounded-lg bg-control px-2.5 py-1.5 text-ink hover:bg-raised-hover">{t("hostedMcp.botSettings", { name: bot.name })}</button>)}</div>
</details>
</div>
</div>;
}
- const visibleServers = servers?.filter((server) => !hideWhop || !isRemoteMcpListing(server) || !(isWhopServer(server) || server.name === POSTIZ_SERVER));
+ if (hostedCards) {
+ return <>{HOSTED_MCP_APPS.map((app) => <div key={app.id} className={hostedCards.shown(app.id) ? "contents" : "hidden"}>{renderHostedCard(app)}</div>)}</>;
+ }
+
+ const visibleServers = servers?.filter((server) => !hideHosted || !isRemoteMcpListing(server) || !(hostedMcpApp(server) || server.name === POSTIZ_SERVER));
return (
<section
@@ -578,20 +601,20 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
) : (
<div className="mt-5 space-y-3">
{visibleServers?.map((server) => {
- const whop = isRemoteMcpListing(server) && isWhopServer(server);
+ const hosted = hostedOf(server);
const result = probe[server.name];
const auth = isRemoteMcpListing(server) ? server.auth : undefined;
const canSignIn = isRemoteMcpListing(server) && !server.runsOn
- && (auth === "needs-sign-in" || result?.auth === "required" || ((whop || Boolean(server.oauth)) && auth !== "signed-in"));
+ && (auth === "needs-sign-in" || result?.auth === "required" || ((Boolean(hosted) || Boolean(server.oauth)) && auth !== "signed-in"));
return (
- <div key={server.name} data-whop-server={whop ? server.name : undefined} className="rounded-2xl border border-hairline/50 bg-card px-4 py-4 sm:px-5">
+ <div key={server.name} data-hosted-server={hosted?.id} className="rounded-2xl border border-hairline/50 bg-card px-4 py-4 sm:px-5">
<div data-mcp-row className="flex flex-wrap items-center gap-3">
<div className={cn("flex size-10 shrink-0 items-center justify-center rounded-xl", server.enabled ? "bg-success/10 text-success" : "bg-raised text-ink-secondary")}>
- {whop ? <WhopIcon /> : isRemoteMcpListing(server) ? <Globe size={19} /> : <ServerCog size={19} />}
+ {hosted ? <HostedMcpIcon app={hosted} /> : isRemoteMcpListing(server) ? <Globe size={19} /> : <ServerCog size={19} />}
</div>
<div className="min-w-0 flex-[1_1_220px]">
<div className="flex flex-wrap items-center gap-2">
- <span className="min-w-0 truncate text-[14px] font-medium text-ink">{whop ? "Whop" : server.name}</span>
+ <span className="min-w-0 truncate text-[14px] font-medium text-ink">{hosted ? hosted.label : server.name}</span>
<span className={cn("rounded-full px-2 py-0.5 text-[11px]", server.enabled ? "bg-success/10 text-success" : "bg-raised text-ink-secondary")}>{t(server.enabled ? "mcp.badge.on" : "mcp.badge.off")}</span>
{auth && <span className={cn("rounded-full px-2 py-0.5 text-[11px]", auth === "signed-in" ? "bg-success/10 text-success" : "bg-warning/10 text-warning")}>{t(auth === "signed-in" ? "mcp.auth.signedIn" : "mcp.auth.needsSignIn")}</span>}
{server.managedBy && <span className="rounded-full bg-raised px-2 py-0.5 text-[11px] text-ink-secondary">{t("policy.managedBy", { organization: server.managedBy })}</span>}
@@ -613,11 +636,11 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
</button>
) : canSignIn ? (
<button type="button" disabled={busy !== null || signingIn !== null || Boolean(server.managedBy)} onClick={() => void signIn(server)} className="flex items-center gap-1.5 rounded-lg bg-accent px-2.5 py-2 text-[12px] font-medium text-white hover:brightness-110 disabled:opacity-40">
- <LogIn size={14} /> {t(whop ? "whop.connect" : "mcp.auth.signIn")}
+ <LogIn size={14} /> {hosted ? t("hostedMcp.connect", { service: hosted.label }) : t("mcp.auth.signIn")}
</button>
) : auth === "signed-in" ? (
<button type="button" disabled={busy !== null || signingIn !== null} onClick={() => void signOut(server)} className="flex items-center gap-1.5 rounded-lg px-2.5 py-2 text-[12px] text-ink-secondary hover:bg-raised hover:text-ink disabled:opacity-40">
- {busy === `signout:${server.name}` ? <Loader2 size={14} className="animate-spin" /> : <LogOut size={14} />} {t(whop ? "whop.disconnect" : "mcp.auth.signOut")}
+ {busy === `signout:${server.name}` ? <Loader2 size={14} className="animate-spin" /> : <LogOut size={14} />} {hosted ? t("hostedMcp.disconnect", { service: hosted.label }) : t("mcp.auth.signOut")}
</button>
) : null}
<button type="button" disabled={busy !== null || signingIn !== null} onClick={() => void test(server)} className="flex items-center gap-1.5 rounded-lg px-2.5 py-2 text-[12px] text-ink-secondary hover:bg-raised hover:text-ink disabled:opacity-40">
@@ -640,12 +663,12 @@ export function McpServersPanel({ embedded = false, whopCard = false, hideWhop =
</span>
</div>
</div>
- {whop && <div className="mt-3 text-[12px] leading-relaxed text-ink-secondary">
- <p>{t("whop.notice")}</p>
+ {hosted && <div className="mt-3 text-[12px] leading-relaxed text-ink-secondary">
+ <p>{t(hosted.notice)}</p>
<details className="mt-2">
- <summary className="cursor-pointer font-medium text-ink">{t("whop.access")}</summary>
- <p className="mt-2">{t("whop.accessHint")}</p>
- <div className="mt-2 flex flex-wrap gap-2">{(store.bots ?? []).filter((bot) => !bot.hidden).map((bot) => <button key={bot.id} type="button" onClick={() => { dispatch({ type: "togglePlugins", open: false }); openBotSettings(dispatch, "access", { botId: bot.id, page: "mcp" }); }} className="rounded-lg bg-control px-2.5 py-1.5 text-ink hover:bg-raised-hover">{t("whop.botSettings", { name: bot.name })}</button>)}</div>
+ <summary className="cursor-pointer font-medium text-ink">{t("hostedMcp.access")}</summary>
+ <p className="mt-2">{t("hostedMcp.accessHint")}</p>
+ <div className="mt-2 flex flex-wrap gap-2">{(store.bots ?? []).filter((bot) => !bot.hidden).map((bot) => <button key={bot.id} type="button" onClick={() => { dispatch({ type: "togglePlugins", open: false }); openBotSettings(dispatch, "access", { botId: bot.id, page: "mcp" }); }} className="rounded-lg bg-control px-2.5 py-1.5 text-ink hover:bg-raised-hover">{t("hostedMcp.botSettings", { name: bot.name })}</button>)}</div>
</details>
</div>}
<McpAppsSwitch<McpServerListing> server={server} disabled={busy !== null || signingIn !== null} onSaved={(next) => { loadGeneration.current += 1; listed(next); }} />{renderSignIn(server)}
diff --git a/src/components/McpServersPanel.whop.test.ts b/src/components/McpServersPanel.whop.test.ts
deleted file mode 100644
index 10ac044329..0000000000
--- a/src/components/McpServersPanel.whop.test.ts
+++ /dev/null
@@ -1,111 +0,0 @@
-// @vitest-environment happy-dom
-import { act, createElement } from "react";
-import { createRoot, type Root } from "react-dom/client";
-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
-
-import { setLocale } from "@/lib/i18n";
-
-const fixture = vi.hoisted(() => ({
- api: vi.fn(),
- runMcpSignIn: vi.fn(),
-}));
-vi.mock("@/state/store", () => ({
- api: fixture.api,
- useStore: () => ({ state: { config: null, bots: [] }, dispatch: vi.fn() }),
-}));
-vi.mock("@/lib/mcp-sign-in", async (original) => ({
- ...(await original<typeof import("@/lib/mcp-sign-in")>()),
- runMcpSignIn: fixture.runMcpSignIn,
-}));
-vi.mock("@/lib/app-links", () => ({ openExternalLink: vi.fn(async () => {}) }));
-vi.mock("@/lib/mcp-servers", () => ({ updateMcpServers: vi.fn() }));
-
-import { McpServersPanel } from "./McpServersPanel";
-
-const whop = { name: "whop", type: "http", url: "https://mcp.whop.com/mcp", headerKeys: [], enabled: false, auth: "needs-sign-in" };
-
-function WhopCard() { return McpServersPanel({ whopCard: true }); }
-
-let host: HTMLDivElement;
-let root: Root;
-let testRequest: { resolve: (value: unknown) => void; signal?: AbortSignal } | null;
-
-const settle = () => act(async () => { for (let turn = 0; turn < 5; turn += 1) await Promise.resolve(); });
-const card = () => host.querySelector<HTMLElement>('[data-app-tile="whop"]')!;
-const button = (label: string) => [...card().querySelectorAll("button")].find((element) => element.textContent?.trim() === label)!;
-
-beforeEach(async () => {
- vi.clearAllMocks();
- setLocale("en");
- testRequest = null;
- fixture.runMcpSignIn.mockResolvedValue({ phase: "succeeded", flowId: "00000000-0000-4000-8000-000000000000", authorizationUrl: null });
- fixture.api.mockImplementation((path: string, init?: RequestInit) => {
- if (path === "/api/mcp/servers") return Promise.resolve({ servers: [whop] });
- if (path === "/api/mcp/servers/whop/test") {
- return new Promise((resolve, reject) => {
- testRequest = { resolve, signal: init?.signal ?? undefined };
- init?.signal?.addEventListener("abort", () => reject(new DOMException("aborted", "AbortError")));
- });
- }
- return Promise.reject(new Error(`unexpected ${init?.method ?? "GET"} ${path}`));
- });
- host = document.createElement("div");
- document.body.append(host);
- root = createRoot(host);
- await act(async () => root.render(createElement(WhopCard)));
- await settle();
-});
-afterEach(async () => {
- await act(async () => root.unmount());
- host.remove();
-});
-
-async function connect() {
- await act(async () => button("Connect").click());
- await settle();
-}
-
-describe("Connecting Whop from its card", () => {
- it("says it is loading Whop's tools while the test runs, then shows why it failed in one line", async () => {
- await connect();
- expect(testRequest).not.toBeNull();
- expect(card().querySelector('[role="status"]')?.textContent).toContain("Signed in. Loading Whop’s tools…");
- expect(card().textContent).not.toContain("Waiting");
- expect(button("Cancel")).toBeTruthy();
-
- await act(async () => testRequest!.resolve({ ok: false, error: "The server did not answer in time." }));
- await settle();
-
- const alerts = [...card().querySelectorAll('[role="alert"]')].map((element) => element.textContent);
- expect(alerts).toEqual([
- "Signed in, but Whop’s tools could not be loaded: The server did not answer in time. Please connect again to retry.",
- ]);
- expect(fixture.api.mock.calls.some(([, init]) => (init as RequestInit | undefined)?.method === "PATCH")).toBe(false);
- expect(button("Connect")).toBeTruthy();
- });
-
- it("keeps the reason when the test request itself is refused", async () => {
- await connect();
- await act(async () => { testRequest!.resolve(Promise.reject(new Error("Two MCP connection tests are already running."))); });
- await settle();
- expect(card().querySelector('[role="alert"]')?.textContent)
- .toBe("Signed in, but Whop’s tools could not be loaded: Two MCP connection tests are already running. Please connect again to retry.");
- });
-
- it("ends a reason that has no period of its own, like a proxy's 504", async () => {
- await connect();
- await act(async () => { testRequest!.resolve(Promise.reject(new Error("504 Gateway Timeout"))); });
- await settle();
- expect(card().querySelector('[role="alert"]')?.textContent)
- .toBe("Signed in, but Whop’s tools could not be loaded: 504 Gateway Timeout. Please connect again to retry.");
- });
-
- it("closes the test request when the person cancels", async () => {
- await connect();
- expect(testRequest?.signal?.aborted).toBe(false);
- await act(async () => button("Cancel").click());
- await settle();
- expect(testRequest?.signal?.aborted).toBe(true);
- expect(card().querySelector('[role="alert"]')).toBeNull();
- });
-});
diff --git a/src/components/PluginsPanel.i18n.test.ts b/src/components/PluginsPanel.i18n.test.ts
index b52d934973..85c76a98ef 100644
--- a/src/components/PluginsPanel.i18n.test.ts
+++ b/src/components/PluginsPanel.i18n.test.ts
@@ -1,6 +1,6 @@
import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
-import { afterEach, describe, expect, it } from "vitest";
+import { afterEach, describe, expect, it, vi } from "vitest";
import { setLocale, t } from "@/lib/i18n";
import { locales } from "@/locales";
@@ -8,6 +8,12 @@ import { connectedInventoryCopy, connectorActionLabel } from "@/lib/connector-st
import { disconnectAccountConfirmation } from "./PluginsPanel";
import { rowsBody, secretRow } from "./mcp-draft";
import { ConnectorCard } from "./ConnectorCard";
+import { McpServersPanel } from "./McpServersPanel";
+
+vi.mock("@/state/store", async (original) => ({
+ ...(await original<typeof import("@/state/store")>()),
+ useStore: () => ({ state: { config: null, bots: [] }, dispatch: vi.fn() }),
+}));
afterEach(() => {
setLocale("en");
@@ -47,6 +53,16 @@ describe("plugins modal translation", () => {
});
});
+ it("translates the Agentcard card's generic strings and leaves its untranslated copy in English", () => {
+ setLocale("ja");
+ const html = renderToStaticMarkup(createElement(() => McpServersPanel({ hostedCards: { shown: () => true, onConnections: () => {} } })));
+ expect(html).toContain(`aria-label="${locales.ja!["hostedMcp.connect"]!.replace("{service}", "Agentcard")}"`);
+ expect(html).toContain(locales.ja!["hostedMcp.access"]);
+ expect(html).not.toContain("Connect Agentcard");
+ expect(locales.ja).not.toHaveProperty("agentcard.description");
+ expect(html).toContain("Shop and pay from your own Agentcard account.");
+ });
+
it("translates the in-chat connector card", () => {
setLocale("ja");
const html = renderToStaticMarkup(createElement(ConnectorCard, {
diff --git a/src/components/PluginsPanel.navigation.test.ts b/src/components/PluginsPanel.navigation.test.ts
index 7d2aedcc39..32a12f9ac4 100644
--- a/src/components/PluginsPanel.navigation.test.ts
+++ b/src/components/PluginsPanel.navigation.test.ts
@@ -40,11 +40,14 @@ vi.mock("@/state/store", () => ({
dispatch: fixture.dispatch,
}),
}));
-vi.mock("./McpServersPanel", () => ({
- McpServersPanel: ({ embedded, whopCard }: { embedded?: boolean; whopCard?: boolean }) => whopCard
- ? createElement("div", { "data-whop-card": true }, "Connect Whop")
- : createElement("div", { "data-embedded": String(Boolean(embedded)) }, "MCP inventory"),
-}));
+vi.mock("./McpServersPanel", async () => {
+ const { HOSTED_MCP_APPS } = await import("@/lib/hosted-mcp-apps");
+ return {
+ McpServersPanel: ({ embedded, hostedCards }: { embedded?: boolean; hostedCards?: { shown(id: string): boolean } }) => hostedCards
+ ? createElement("div", { "data-hosted-cards": true }, HOSTED_MCP_APPS.filter((app) => hostedCards.shown(app.id)).map((app) => createElement("div", { key: app.id, "data-hosted-app": app.id }, `Connect ${app.label}`)))
+ : createElement("div", { "data-embedded": String(Boolean(embedded)) }, "MCP inventory"),
+ };
+});
vi.mock("@/lib/analytics", () => ({ track: fixture.track }));
vi.mock("./Avatar", () => ({ BotAvatar: ({ bot }: { bot: Bot }) => createElement("span", { "data-avatar": bot.id }) }));
// The native HighLevel card has its own DOM suite; here it is a marker so tile counts stay the catalog's.
@@ -58,6 +61,7 @@ vi.mock("./XCard", () => ({
vi.mock("./PostizCard", () => ({
PostizCard: () => createElement("div", { "data-postiz-card": true }, "Postiz"),
}));
+import { HOSTED_MCP_APPS } from "@/lib/hosted-mcp-apps";
import { APPS_PREVIEW_COUNT, PluginsPanel, USED_BY_AVATAR_SIZE, botsUsingService } from "./PluginsPanel";
import { FACE_BOX } from "./cursor-face-data";
import { MASCOT_BODIES } from "../../shared/mascot-bodies";
@@ -72,6 +76,7 @@ const CATEGORY = 20;
const POSTIZ_CONNECTED = 23;
const MODE = 4;
const SEARCH = 15;
+const HOSTED_CONNECTED = 18;
const TAB = 16;
type Node = ReactElement<{ children?: ReactNode; "aria-pressed"?: boolean; "data-apps-filter"?: string; onClick?: () => void; [key: string]: unknown }>;
@@ -116,19 +121,57 @@ beforeEach(() => {
afterEach(() => vi.unstubAllGlobals());
describe("Apps pop-up", () => {
- it("connects Whop inside the apps grid without a Composio key or MCP detour", () => {
+ it("connects each hosted app inside the apps grid without a Composio key or MCP detour", () => {
fixture.overrides.set(CONFIGURED, false);
const { html, nodes: tree } = render();
- expect(html).toContain("Connect Whop");
- expect(html).not.toContain("Set up Whop");
const grid = tree.find((node) => node.props["data-apps-grid"] !== undefined)!;
- expect(nodes(grid).some((node) => node.props.whopCard === true)).toBe(true);
+ expect(nodes(grid).some((node) => node.props.hostedCards !== undefined)).toBe(true);
+ for (const app of HOSTED_MCP_APPS) {
+ expect(html).toContain(`Connect ${app.label}`);
+ expect(html).not.toContain(`Set up ${app.label}`);
+ }
expect(fixture.dispatch).not.toHaveBeenCalled();
});
- it("counts Whop among connected apps", () => {
- fixture.overrides.set(18, true);
- const { html } = render();
- expect(html).toContain("2 connected");
+ it("counts every connected hosted app among connected apps", () => {
+ const everyApp = (connected: boolean) => Object.fromEntries(HOSTED_MCP_APPS.map((app) => [app.id, connected]));
+ fixture.overrides.set(HOSTED_CONNECTED, everyApp(true));
+ expect(render().html).toContain(`${1 + HOSTED_MCP_APPS.length} connected`);
+ fixture.overrides.set(HOSTED_CONNECTED, { ...everyApp(false), [HOSTED_MCP_APPS[0].id]: true });
+ expect(render().html).toContain("2 connected");
+ });
+ it.each(HOSTED_MCP_APPS)("finds $label by its own name and shows no other hosted card", (app) => {
+ fixture.overrides.set(SEARCH, app.label.toLowerCase());
+ const html = render().html;
+ expect(html).toContain(`data-hosted-app="${app.id}"`);
+ expect(html.match(/data-hosted-app="/g)).toHaveLength(1);
+ });
+ it("shows a hosted card under Connected only while it is not known to be disconnected", () => {
+ fixture.overrides.set(TAB, "connected");
+ expect(render().html).toContain(`data-hosted-app="${HOSTED_MCP_APPS[0].id}"`);
+ fixture.overrides.set(HOSTED_CONNECTED, Object.fromEntries(HOSTED_MCP_APPS.map((app) => [app.id, app === HOSTED_MCP_APPS[0]])));
+ const html = render().html;
+ expect(html).toContain(`data-hosted-app="${HOSTED_MCP_APPS[0].id}"`);
+ for (const other of HOSTED_MCP_APPS.slice(1)) expect(html).not.toContain(`data-hosted-app="${other.id}"`);
+ });
+ it.each(["agentcard", "opencommerce"])("finds Agentcard by %s and shows no other hosted card", (word) => {
+ fixture.overrides.set(SEARCH, word);
+ const html = render().html;
+ expect(html).toContain('data-hosted-app="agentcard"');
+ expect(html.match(/data-hosted-app="/g)).toHaveLength(1);
+ });
+ it("counts Whop and Agentcard both under Connected", () => {
+ fixture.overrides.set(HOSTED_CONNECTED, { whop: true, agentcard: true });
+ expect(render().html).toContain("3 connected");
+ fixture.overrides.set(TAB, "connected");
+ const html = render().html;
+ expect(html).toContain('data-hosted-app="whop"');
+ expect(html).toContain('data-hosted-app="agentcard"');
+ });
+ it("names the connected hosted apps in the setup notice", () => {
+ fixture.overrides.set(CONFIGURED, false);
+ fixture.overrides.set(HOSTED_CONNECTED, Object.fromEntries(HOSTED_MCP_APPS.map((app) => [app.id, true])));
+ const html = render().html;
+ expect(html).toContain(`Connected: ${new Intl.ListFormat("en", { style: "long", type: "conjunction" }).format(HOSTED_MCP_APPS.map((app) => app.label))}.`);
});
it("shows the native HighLevel card in the grid and counts it once connected", () => {
const { html, nodes: tree } = render();
diff --git a/src/components/PluginsPanel.tsx b/src/components/PluginsPanel.tsx
index 9b83a8dd80..660227883d 100644
--- a/src/components/PluginsPanel.tsx
+++ b/src/components/PluginsPanel.tsx
@@ -3,7 +3,7 @@ import { Check, ChevronDown, ChevronRight, Loader2, RefreshCw, Search, Server, T
import { api, useStore, type Bot, type InstanceInfo } from "@/state/store";
import { cn } from "@/lib/cn";
import { glassPopupFrameStyle } from "@/lib/glass-popup";
-import { t } from "@/lib/i18n";
+import { activeLocale, t } from "@/lib/i18n";
import type { LocaleKey } from "@/locales";
import { readCachedInventory } from "@/lib/connected-apps-cache";
import { connectorStatusMemory, preloadConnectedApps, rememberConnectorStatus } from "@/lib/connected-apps";
@@ -29,6 +29,7 @@ import { BotAvatar } from "./Avatar";
import { SidebarPopoverMenu } from "./SidebarPopoverMenu";
import { appCategoryLabel, CATEGORY_SECTION_SIZE, catalogSections, connectorDescription, inCategory, rankCategories } from "@/lib/app-catalog";
import { McpServersPanel } from "./McpServersPanel";
+import { HOSTED_MCP_APPS, type HostedApp, type HostedConnections } from "@/lib/hosted-mcp-apps";
import { HighLevelCard } from "./HighLevelCard";
import { PostizCard } from "./PostizCard";
import { POSTIZ_CATALOG_CARD, POSTIZ_SEARCH } from "@/lib/postiz";
@@ -75,6 +76,13 @@ export function hasUsableConnectedApps(configured: boolean, phase: ConnectorInve
return configured && phase === "ready" && !stale && Object.values(status).some((service) => service.connected);
}
+/** Whether a hosted app's card shows: it matches the search, and the filter is All, or Connected and it isn't known to be
+ * disconnected (unknown while its servers load). */
+export function hostedShown(app: HostedApp, search: string, filter: AppsFilter, connected: HostedConnections | null): boolean {
+ const matches = !search || `${app.label} ${app.keywords} ${t(app.description)}`.toLowerCase().includes(search.toLowerCase().trim());
+ return matches && (filter === "all" || (filter === "connected" && connected?.[app.id] !== false));
+}
+
export type ConnectorSetup = "ready" | "needs-setup" | "service-unavailable";
export function connectorSetupNotice(state: {
@@ -141,8 +149,8 @@ export function PluginsPanel() {
const [search, setSearch] = useState("");
const [tab, setTab] = useState<"marketplace" | "connected">("marketplace");
const [showAllApps, setShowAllApps] = useState(false);
- const [whopConnected, setWhopConnected] = useState<boolean | null>(null);
- const [whopRefresh, setWhopRefresh] = useState(0);
+ const [hostedConnected, setHostedConnected] = useState<HostedConnections | null>(null);
+ const [cardsRefresh, setCardsRefresh] = useState(0);
const [category, setCategory] = useState<string | null>(null);
// Appended after the older state so tests that seed state by call order keep their indices.
const [highLevelConnected, setHighLevelConnected] = useState<boolean | null>(null);
@@ -393,8 +401,7 @@ export function PluginsPanel() {
&& (!search || `${c.label} ${c.slug} ${connectorDescription(c)}`.toLowerCase().includes(search.toLowerCase())));
const isConnected = (slug: string) => Boolean(status[slug]?.connected || status[slug]?.accounts?.length);
const filter: AppsFilter = surface === "mcp" ? "mcp" : tab === "connected" ? "connected" : "all";
- const whopMatches = !search || `whop ${t("whop.description")}`.toLowerCase().includes(search.toLowerCase().trim());
- const showWhop = whopMatches && (filter === "all" || (filter === "connected" && whopConnected !== false));
+ const shownHosted = new Set(HOSTED_MCP_APPS.filter((app) => hostedShown(app, search, filter, hostedConnected)).map((app) => app.id));
const highLevelMatches = !search || `highlevel high level growably crm ${t("highlevel.description")}`.toLowerCase().includes(search.toLowerCase().trim());
const showHighLevel = highLevelMatches && (filter === "all" || (filter === "connected" && highLevelConnected !== false));
const showX = (!search || `${X_CARD_SEARCH} ${t("apps.x.description")}`.toLowerCase().includes(search.toLowerCase().trim())) && (filter === "all" || (filter === "connected" && xConnected !== false));
@@ -403,7 +410,8 @@ export function PluginsPanel() {
.map((card, index) => ({ card, index }))
.sort((a, b) => Number(isConnected(b.card.slug)) - Number(isConnected(a.card.slug)) || a.index - b.index)
.map(({ card }) => card);
- const connectedCount = Object.values(status).filter(hasActiveConnection).length + Number(whopConnected === true) + Number(highLevelConnected === true) + Number(xConnected === true) + Number(postizConnected === true);
+ const connectedHosted = HOSTED_MCP_APPS.filter((app) => hostedConnected?.[app.id]);
+ const connectedCount = Object.values(status).filter(hasActiveConnection).length + connectedHosted.length + Number(highLevelConnected === true) + Number(xConnected === true) + Number(postizConnected === true);
const connectedEmptyCopy = connectedInventoryCopy(inventoryPhase);
const close = () => dispatch({ type: "togglePlugins", open: false });
const setupNotice = connectorSetupNotice({ configured, stale, setup, remoteClient });
@@ -425,7 +433,7 @@ export function PluginsPanel() {
const categoryInMore = category !== null && moreCategories.includes(category);
const inCategoryView = filter === "all" && category !== null;
const postizHere = showPostiz && (!inCategoryView || inCategory(POSTIZ_CATALOG_CARD, category));
- const nativeCardsShown = (!inCategoryView && (showWhop || showHighLevel || showX)) || postizHere;
+ const nativeCardsShown = (!inCategoryView && (shownHosted.size > 0 || showHighLevel || showX)) || postizHere;
const categoryCards = inCategoryView ? visible.filter((card) => inCategory(card, category)) : visible;
const sectioned = filter === "all" && !search && category === null;
const sections = sectioned ? catalogSections(visible, isConnected, ranked.inline) : [];
@@ -496,7 +504,7 @@ export function PluginsPanel() {
<ChevronRight size={14} aria-hidden="true" className="shrink-0 rtl:-scale-x-100" />
</button>
<button
- onClick={() => { setWhopRefresh((value) => value + 1); void loadConnectionInventory(true); }}
+ onClick={() => { setCardsRefresh((value) => value + 1); void loadConnectionInventory(true); }}
disabled={refreshing}
className="flex size-8 items-center justify-center rounded-full text-ink-secondary hover:bg-raised hover:text-ink disabled:opacity-50"
title={t("connectors.refreshTitle")}
@@ -591,7 +599,9 @@ export function PluginsPanel() {
setupNotice.tone === "warning" ? "bg-warning/10 text-warning" : "bg-control/50 text-ink-secondary",
)}
>
- {t(whopConnected ? "whop.otherAppsSetup" : setupNotice.key)}{" "}
+ {connectedHosted.length > 0
+ ? t("hostedMcp.otherAppsSetup", { services: new Intl.ListFormat(activeLocale(), { style: "long", type: "conjunction" }).format(connectedHosted.map((app) => app.label)) })
+ : t(setupNotice.key)}{" "}
<button
className={cn(
"font-medium underline underline-offset-2",
@@ -717,14 +727,12 @@ export function PluginsPanel() {
</>
)}
>
- <div className={showWhop && !inCategoryView ? "contents" : "hidden"}>
- <McpServersPanel whopCard refreshKey={whopRefresh} onWhopConnection={setWhopConnected} />
- </div>
- <div data-native-card="x" className={showX && !inCategoryView ? "contents" : "hidden"}><XCard refreshKey={whopRefresh} onConnection={setXConnected} /></div>
+ <McpServersPanel hostedCards={{ shown: (id) => !inCategoryView && shownHosted.has(id), onConnections: setHostedConnected }} refreshKey={cardsRefresh} />
+ <div data-native-card="x" className={showX && !inCategoryView ? "contents" : "hidden"}><XCard refreshKey={cardsRefresh} onConnection={setXConnected} /></div>
<div data-native-card="highlevel" className={showHighLevel && !inCategoryView ? "contents" : "hidden"}>
- <HighLevelCard refreshKey={whopRefresh} onConnection={setHighLevelConnected} />
+ <HighLevelCard refreshKey={cardsRefresh} onConnection={setHighLevelConnected} />
</div>
- <div data-native-card="postiz" className={postizHere ? "contents" : "hidden"}><PostizCard refreshKey={whopRefresh} onConnection={setPostizConnected} /></div>
+ <div data-native-card="postiz" className={postizHere ? "contents" : "hidden"}><PostizCard refreshKey={cardsRefresh} onConnection={setPostizConnected} /></div>
{allShown.map((card) => renderTile(card))}
</AppsSection>
</div>
@@ -732,7 +740,7 @@ export function PluginsPanel() {
{filter !== "connected" && category === null && (
<div className={cn(filter === "all" && "mt-8 border-t border-hairline/30 pt-6", filter === "mcp" && "pt-1")}>
- <McpServersPanel embedded hideWhop={filter === "all"} />
+ <McpServersPanel embedded hideHosted={filter === "all"} />
</div>
)}
</div>
diff --git a/src/components/WhopIcon.tsx b/src/components/WhopIcon.tsx
deleted file mode 100644
index 7534433f68..0000000000
--- a/src/components/WhopIcon.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import logo from "@/assets/whop/logo.png";
-
-export function WhopIcon() {
- return <img src={logo} alt="" className="size-10 shrink-0 rounded-xl object-contain" />;
-}
diff --git a/src/lib/hosted-mcp-apps.test.ts b/src/lib/hosted-mcp-apps.test.ts
new file mode 100644
index 0000000000..5c93eb853f
--- /dev/null
+++ b/src/lib/hosted-mcp-apps.test.ts
@@ -0,0 +1,52 @@
+import { describe, expect, it } from "vitest";
+import { HOSTED_MCP_APPS, hostedConnections, hostedMcpApp, hostedServerName } from "./hosted-mcp-apps";
+
+describe("hosted MCP apps", () => {
+ it("has unique ids that are valid server names and unique https endpoints", () => {
+ const ids = HOSTED_MCP_APPS.map((app) => app.id);
+ expect(new Set(ids).size).toBe(ids.length);
+ for (const id of ids) expect(id).toMatch(/^[a-z][a-z0-9_-]{0,31}$/);
+ const urls = HOSTED_MCP_APPS.map((app) => app.url);
+ expect(new Set(urls).size).toBe(urls.length);
+ for (const url of urls) expect(url).toMatch(/^https:\/\//);
+ });
+
+ describe.each(HOSTED_MCP_APPS.map((app) => [app.id, app] as const))("%s", (_id, app) => {
+ const { host } = new URL(app.url);
+ it("is recognized at its official endpoint, with or without a trailing slash, under any local name", () => {
+ expect(hostedMcpApp({ type: "http", url: app.url })).toBe(app);
+ expect(hostedMcpApp({ type: "http", url: `${app.url}/` })).toBe(app);
+ });
+ it("does not brand other servers, transports or modified URLs", () => {
+ const bare = host.split(".").slice(-2).join(".");
+ for (const url of [app.url.replace("https:", "http:"), `https://${host}.evil.test/mcp`, `https://${bare}/mcp`, `${app.url}?key=secret`, `${app.url}#hash`, `https://key@${host}${new URL(app.url).pathname}`, `https://${host}/docs`, "invalid"]) {
+ expect(hostedMcpApp({ type: "http", url }), url).toBeUndefined();
+ }
+ expect(hostedMcpApp({ type: "sse", url: app.url })).toBeUndefined();
+ expect(hostedMcpApp({})).toBeUndefined();
+ });
+ it("is named after itself and never takes an existing server's name", () => {
+ expect(hostedServerName(app, [])).toBe(app.id);
+ expect(hostedServerName(app, [{ name: app.id }])).toBe(`${app.id}-2`);
+ expect(hostedServerName(app, [{ name: app.id }, { name: `${app.id}-2` }])).toBe(`${app.id}-3`);
+ expect(hostedServerName(app, [{ name: `${app.id}-2` }])).toBe(app.id);
+ });
+ it("is connected only while its server is on and signed in", () => {
+ const server = { type: "http", url: app.url };
+ const connected = (extra: { enabled: boolean; auth?: "signed-in" | "needs-sign-in" }) => hostedConnections([{ ...server, ...extra }])[app.id];
+ expect(connected({ enabled: true, auth: "signed-in" })).toBe(true);
+ expect(connected({ enabled: true })).toBe(false);
+ expect(connected({ enabled: true, auth: "needs-sign-in" })).toBe(false);
+ expect(connected({ enabled: false, auth: "signed-in" })).toBe(false);
+ });
+ });
+
+ it("counts each app on its own server", () => {
+ const [first] = HOSTED_MCP_APPS;
+ const connections = hostedConnections([
+ { type: "http", url: first.url, enabled: true, auth: "signed-in" },
+ { type: "http", url: "https://unrelated.example/mcp", enabled: true, auth: "signed-in" },
+ ]);
+ expect(Object.entries(connections).filter(([, on]) => on).map(([id]) => id)).toEqual([first.id]);
+ });
+});
diff --git a/src/lib/hosted-mcp-apps.ts b/src/lib/hosted-mcp-apps.ts
new file mode 100644
index 0000000000..27e5a81045
--- /dev/null
+++ b/src/lib/hosted-mcp-apps.ts
@@ -0,0 +1,83 @@
+import { CreditCard, type LucideIcon } from "lucide-react";
+
+import whopLogo from "@/assets/whop/logo.png";
+import type { LocaleKey } from "@/locales";
+
+export interface HostedMcpApp {
+ /** The card's id (`data-app-tile`) and the name the server is added under (then `-2`, `-3`…): a valid server name. */
+ readonly id: string;
+ /** The service's own name, never translated. */
+ readonly label: string;
+ /** Its official hosted MCP endpoint, which signs in with browser OAuth instead of a pasted key. A server is this app only at exactly this address, over streamable HTTP. */
+ readonly url: string;
+ /** Its licensed logo, or a neutral lucide glyph when the service publishes none we may ship. */
+ readonly icon: { readonly image: string } | { readonly glyph: LucideIcon };
+ readonly description: LocaleKey;
+ /** What signing in grants, and who owns the service's own approvals. Shown on the card and on the server's row. */
+ readonly notice: LocaleKey;
+ /** Search words besides the label and the description. */
+ readonly keywords: string;
+}
+
+/** The hosted MCP apps with a one-click card in Plugins. Adding one is adding a row: its card, Connect, Disconnect and
+ * Bot access, its row in the MCP list, search, the Connected filter and the count all derive from this table. */
+export const HOSTED_MCP_APPS = [
+ {
+ id: "whop",
+ label: "Whop",
+ url: "https://mcp.whop.com/mcp",
+ icon: { image: whopLogo },
+ description: "whop.description",
+ notice: "whop.notice",
+ keywords: "whop checkout memberships",
+ },
+ {
+ id: "agentcard",
+ label: "Agentcard",
+ url: "https://mcp.agentcard.sh/mcp",
+ // Agentcard's packages are "SEE LICENSE IN LICENSE" and it publishes no logo licence, so a neutral glyph stands in.
+ icon: { glyph: CreditCard },
+ description: "agentcard.description",
+ notice: "agentcard.notice",
+ keywords: "agentcard agent card opencommerce shopping payments buy virtual debit card",
+ },
+] as const satisfies readonly HostedMcpApp[];
+
+/** A row of the table, with its own literal id. */
+export type HostedApp = (typeof HOSTED_MCP_APPS)[number];
+export type HostedMcpAppId = HostedApp["id"];
+
+export type HostedConnections = Readonly<Record<HostedMcpAppId, boolean>>;
+
+interface ServerAddress { type?: string; url?: string }
+
+/** The hosted app this server is, by exact address: type "http", https, the app's origin, its path with or without a
+ * trailing slash, no query, hash or userinfo. A look-alike host or a URL carrying a key is never branded. */
+export function hostedMcpApp(server: ServerAddress): HostedApp | undefined {
+ if (server.type !== "http" || !server.url) return undefined;
+ let address: URL;
+ try { address = new URL(server.url); } catch { return undefined; }
+ if (address.search || address.hash || address.username || address.password) return undefined;
+ return HOSTED_MCP_APPS.find((app) => {
+ const own = new URL(app.url);
+ return address.origin === own.origin && (address.pathname === own.pathname || address.pathname === `${own.pathname}/`);
+ });
+}
+
+/** `whop`, then `whop-2`, `whop-3`…: never an existing server's name. */
+export function hostedServerName(app: HostedMcpApp, servers: ReadonlyArray<{ name: string }>): string {
+ const names = new Set(servers.map((server) => server.name));
+ let name: string = app.id;
+ for (let suffix = 2; names.has(name); suffix++) name = `${app.id}-${suffix}`;
+ return name;
+}
+
+/** The one rule for "connected", shared by the cards, the Connected filter and the count: the server is on and signed in. */
+export function hostedConnections(
+ servers: ReadonlyArray<ServerAddress & { enabled: boolean; auth?: "signed-in" | "needs-sign-in" }>,
+): HostedConnections {
+ return Object.fromEntries(HOSTED_MCP_APPS.map((app) => [
+ app.id,
+ servers.some((server) => hostedMcpApp(server) === app && server.enabled && server.auth === "signed-in"),
+ ])) as HostedConnections;
+}
diff --git a/src/lib/whop-integration.test.ts b/src/lib/whop-integration.test.ts
deleted file mode 100644
index 03e3f70937..0000000000
--- a/src/lib/whop-integration.test.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { describe, expect, it } from "vitest";
-import { isWhopServer, WHOP_MCP_URL, whopServerName } from "./whop-integration";
-
-describe("Whop integration", () => {
- it("recognizes the official HTTP endpoint independently of its local name", () => {
- expect(isWhopServer({ type: "http", url: WHOP_MCP_URL })).toBe(true);
- expect(isWhopServer({ type: "http", url: `${WHOP_MCP_URL}/` })).toBe(true);
- });
- it("does not brand other servers, transports or modified URLs as Whop", () => {
- for (const url of ["http://mcp.whop.com/mcp", "https://mcp.whop.com.evil.test/mcp", "https://whop.com/mcp", `${WHOP_MCP_URL}?key=secret`, `${WHOP_MCP_URL}#hash`, "https://[email protected]/mcp", "https://mcp.whop.com/docs", "invalid"]) {
- expect(isWhopServer({ type: "http", url }), url).toBe(false);
- }
- expect(isWhopServer({ type: "sse", url: WHOP_MCP_URL })).toBe(false);
- expect(isWhopServer({})).toBe(false);
- });
- it("does not replace an existing server with the same name", () => {
- expect(whopServerName([])).toBe("whop");
- expect(whopServerName([{ name: "whop" }, { name: "whop-2" }])).toBe("whop-3");
- expect(whopServerName([{ name: "whop-2" }])).toBe("whop");
- });
-});
diff --git a/src/lib/whop-integration.ts b/src/lib/whop-integration.ts
deleted file mode 100644
index 142f26eb54..0000000000
--- a/src/lib/whop-integration.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/** Whop's official hosted MCP uses browser OAuth, not a pasted API key. */
-export const WHOP_MCP_URL = "https://mcp.whop.com/mcp";
-
-export function isWhopServer(server: { url?: string; type?: string }): boolean {
- if (server.type !== "http" || !server.url) return false;
- try {
- const url = new URL(server.url);
- return url.origin === "https://mcp.whop.com" && /^\/mcp\/?$/.test(url.pathname)
- && !url.search && !url.hash && !url.username && !url.password;
- } catch { return false; }
-}
-
-export function whopServerName(servers: Array<{ name: string }>): string {
- const names = new Set(servers.map((server) => server.name));
- let name = "whop";
- for (let suffix = 2; names.has(name); suffix++) name = `whop-${suffix}`;
- return name;
-}
diff --git a/src/locales/en.json b/src/locales/en.json
index 2a41e2d6a9..822ae6c5d3 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -21,17 +21,19 @@
"connectedWorkspaces.forgetError": "Couldn't forget the environment. Try again.",
"connectedWorkspaces.createError": "Couldn't create the environment. Check the data folder, then try again.",
"whop.description": "Products, checkout links, memberships and payments through Whop’s official integration.",
- "whop.otherAppsSetup": "Whop is connected. Set up or restore the connection service to use the other apps.",
- "whop.connect": "Connect Whop",
- "whop.disconnect": "Disconnect Whop",
+ "hostedMcp.otherAppsSetup": "Connected: {services}. Set up or restore the connection service to use the other apps.",
+ "hostedMcp.connect": "Connect {service}",
+ "hostedMcp.disconnect": "Disconnect {service}",
"whop.notice": "Sign in with Whop. No API key needed. Whop requests admin access across businesses you manage, and requires confirmation for consequential financial or destructive actions.",
- "whop.connected": "Whop is connected and enabled. Bot access follows each bot’s MCP server selection.",
- "whop.access": "Bot access",
- "whop.accessHint": "Bots using every enabled MCP server inherit this connection. Open a bot’s Access settings to choose its servers. Changes apply to its next task.",
- "whop.botSettings": "Manage {name}’s access",
- "whop.setupFailed": "Whop could not be added. Refresh and try again.",
- "whop.testFailed": "Signed in, but Whop’s tools could not be loaded: {reason} Please connect again to retry.",
- "whop.loadingTools": "Signed in. Loading Whop’s tools…",
+ "hostedMcp.connected": "{service} is connected and enabled. Bot access follows each bot’s MCP server selection.",
+ "hostedMcp.access": "Bot access",
+ "hostedMcp.accessHint": "Bots using every enabled MCP server inherit this connection. Open a bot’s Access settings to choose its servers. Changes apply to its next task.",
+ "hostedMcp.botSettings": "Manage {name}’s access",
+ "hostedMcp.setupFailed": "{service} could not be added. Refresh and try again.",
+ "hostedMcp.testFailed": "Signed in, but {service}’s tools could not be loaded: {reason} Please connect again to retry.",
+ "hostedMcp.loadingTools": "Signed in. Loading {service}’s tools…",
+ "agentcard.description": "Shop and pay from your own Agentcard account.",
+ "agentcard.notice": "Sign in with your Agentcard account. No API key needed. Agentcard keeps your cards and handles purchase approvals; OpenMausBot stores no card details. A bot that can use Agentcard can call all of its tools, including buying and showing card details, so choose which bots get it under Bot access.",
"highlevel.title": "HighLevel",
"highlevel.description": "Also Growably and other HighLevel-based CRMs.",
"highlevel.connect": "Connect HighLevel",
diff --git a/src/locales/es.json b/src/locales/es.json
index c78a349edd..486e357b58 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -1,16 +1,15 @@
{
"whop.description": "Productos, enlaces de pago, membresías y pagos mediante la integración oficial de Whop.",
- "whop.otherAppsSetup": "Whop está conectado. Configura o restablece el servicio de conexión para usar las demás apps.",
- "whop.connect": "Conectar Whop",
- "whop.disconnect": "Desconectar Whop",
+ "hostedMcp.connect": "Conectar {service}",
+ "hostedMcp.disconnect": "Desconectar {service}",
"whop.notice": "Inicia sesión con Whop: no necesitas clave de API. Whop pide acceso de administrador a los negocios que gestionas y exige confirmación para acciones financieras importantes o destructivas.",
- "whop.connected": "Whop está conectado y activado. El acceso de los bots sigue la selección de servidores MCP de cada bot.",
- "whop.access": "Acceso de los bots",
- "whop.accessHint": "Los bots que usan todos los servidores MCP activados heredan esta conexión. Abre la configuración de «Acceso» de un bot para elegir sus servidores. Los cambios se aplican a su próxima tarea.",
- "whop.botSettings": "Gestionar el acceso de {name}",
- "whop.setupFailed": "No se pudo añadir Whop. Actualiza e inténtalo de nuevo.",
- "whop.testFailed": "Sesión iniciada, pero no se pudieron cargar las herramientas de Whop: {reason} Vuelve a conectar para reintentarlo.",
- "whop.loadingTools": "Sesión iniciada. Cargando las herramientas de Whop…",
+ "hostedMcp.connected": "{service} está conectado y activado. El acceso de los bots sigue la selección de servidores MCP de cada bot.",
+ "hostedMcp.access": "Acceso de los bots",
+ "hostedMcp.accessHint": "Los bots que usan todos los servidores MCP activados heredan esta conexión. Abre la configuración de «Acceso» de un bot para elegir sus servidores. Los cambios se aplican a su próxima tarea.",
+ "hostedMcp.botSettings": "Gestionar el acceso de {name}",
+ "hostedMcp.setupFailed": "No se pudo añadir {service}. Actualiza e inténtalo de nuevo.",
+ "hostedMcp.testFailed": "Sesión iniciada, pero no se pudieron cargar las herramientas de {service}: {reason} Vuelve a conectar para reintentarlo.",
+ "hostedMcp.loadingTools": "Sesión iniciada. Cargando las herramientas de {service}…",
"highlevel.title": "HighLevel",
"highlevel.description": "También Growably y otros CRM basados en HighLevel.",
"highlevel.connect": "Conectar HighLevel",
diff --git a/src/locales/it.json b/src/locales/it.json
index 745c3fec93..6e8d499384 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -1,16 +1,15 @@
{
"whop.description": "Prodotti, link di pagamento, abbonamenti e pagamenti tramite l’integrazione ufficiale di Whop.",
- "whop.otherAppsSetup": "Whop è collegato. Configura o ripristina il servizio di connessione per usare le altre app.",
- "whop.connect": "Collega Whop",
- "whop.disconnect": "Scollega Whop",
+ "hostedMcp.connect": "Collega {service}",
+ "hostedMcp.disconnect": "Scollega {service}",
"whop.notice": "Accedi con Whop: non serve una chiave API. Whop chiede l’accesso da amministratore sulle aziende che gestisci e una conferma per le azioni finanziarie importanti o distruttive.",
- "whop.connected": "Whop è collegato e attivo. L’accesso dei bot segue i server MCP scelti per ogni bot.",
- "whop.access": "Accesso dei bot",
- "whop.accessHint": "I bot impostati su tutti i server MCP attivi ereditano questa connessione. Apri le impostazioni Accesso di un bot per scegliere i suoi server. Le modifiche valgono dal prossimo compito.",
- "whop.botSettings": "Gestisci l’accesso di {name}",
- "whop.setupFailed": "Non è stato possibile aggiungere Whop. Aggiorna e riprova.",
- "whop.testFailed": "Accesso fatto, ma gli strumenti di Whop non si sono caricati: {reason} Collegati di nuovo per riprovare.",
- "whop.loadingTools": "Accesso fatto. Caricamento degli strumenti di Whop…",
+ "hostedMcp.connected": "{service} è collegato e attivo. L’accesso dei bot segue i server MCP scelti per ogni bot.",
+ "hostedMcp.access": "Accesso dei bot",
+ "hostedMcp.accessHint": "I bot impostati su tutti i server MCP attivi ereditano questa connessione. Apri le impostazioni Accesso di un bot per scegliere i suoi server. Le modifiche valgono dal prossimo compito.",
+ "hostedMcp.botSettings": "Gestisci l’accesso di {name}",
+ "hostedMcp.setupFailed": "Non è stato possibile aggiungere {service}. Aggiorna e riprova.",
+ "hostedMcp.testFailed": "Accesso fatto, ma gli strumenti di {service} non si sono caricati: {reason} Collegati di nuovo per riprovare.",
+ "hostedMcp.loadingTools": "Accesso fatto. Caricamento degli strumenti di {service}…",
"highlevel.description": "Anche Growably e gli altri CRM basati su HighLevel.",
"highlevel.connect": "Collega HighLevel",
"highlevel.reconnect": "Ricollega HighLevel",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index eb7952655a..1a317f93db 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -1,16 +1,15 @@
{
"whop.description": "Whop の公式連携で、商品、支払いリンク、会員登録、決済を扱えます。",
- "whop.otherAppsSetup": "Whop は接続済みです。他のアプリを使うには、接続サービスを設定または復旧してください。",
- "whop.connect": "Whop に接続",
- "whop.disconnect": "Whop を切断",
+ "hostedMcp.connect": "{service} に接続",
+ "hostedMcp.disconnect": "{service} を切断",
"whop.notice": "Whop でサインインします。API キーは不要です。Whop は管理中の各事業への管理者アクセスを要求し、重大な金銭的操作や破壊的な操作には確認が必要です。",
- "whop.connected": "Whop は接続され、有効になっています。ボットのアクセスは、各ボットが選択した MCP サーバーに従います。",
- "whop.access": "ボットのアクセス",
- "whop.accessHint": "有効なすべての MCP サーバーを使うボットは、この接続も利用できます。ボットの「アクセス」設定でサーバーを選べます。変更は次のタスクから適用されます。",
- "whop.botSettings": "{name} のアクセスを管理",
- "whop.setupFailed": "Whop を追加できませんでした。再読み込みして、もう一度お試しください。",
- "whop.testFailed": "サインインしましたが、Whop のツールを読み込めませんでした: {reason} もう一度接続してお試しください。",
- "whop.loadingTools": "サインインしました。Whop のツールを読み込んでいます…",
+ "hostedMcp.connected": "{service} は接続され、有効になっています。ボットのアクセスは、各ボットが選択した MCP サーバーに従います。",
+ "hostedMcp.access": "ボットのアクセス",
+ "hostedMcp.accessHint": "有効なすべての MCP サーバーを使うボットは、この接続も利用できます。ボットの「アクセス」設定でサーバーを選べます。変更は次のタスクから適用されます。",
+ "hostedMcp.botSettings": "{name} のアクセスを管理",
+ "hostedMcp.setupFailed": "{service} を追加できませんでした。再読み込みして、もう一度お試しください。",
+ "hostedMcp.testFailed": "サインインしましたが、{service} のツールを読み込めませんでした: {reason} もう一度接続してお試しください。",
+ "hostedMcp.loadingTools": "サインインしました。{service} のツールを読み込んでいます…",
"highlevel.title": "HighLevel",
"highlevel.description": "Growablyなど、HighLevelベースのCRMにも対応しています。",
"highlevel.connect": "HighLevelを接続",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index c87c4ed706..b2a03d0150 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -21,17 +21,16 @@
"connectedWorkspaces.forgetError": "환경을 목록에서 제거하지 못했어요.",
"connectedWorkspaces.createError": "환경을 만들지 못했어요.",
"whop.description": "Whop 공식 연동으로 상품, 결제 링크, 멤버십, 결제를 다뤄요.",
- "whop.otherAppsSetup": "Whop이 연결됐어요. 다른 앱을 쓰려면 연결 서비스를 설정하거나 복구하세요.",
- "whop.connect": "Whop 연결",
- "whop.disconnect": "Whop 연결 해제",
+ "hostedMcp.connect": "{service} 연결",
+ "hostedMcp.disconnect": "{service} 연결 해제",
"whop.notice": "Whop으로 로그인하세요. API 키는 필요 없어요. Whop은 관리 중인 모든 비즈니스에 대한 관리자 권한을 요청하며, 금전이 오가거나 되돌릴 수 없는 작업에는 확인을 요구해요.",
- "whop.connected": "Whop이 연결되어 사용 중이에요. 봇 접근 권한은 각 봇의 MCP 서버 선택을 따라요.",
- "whop.access": "봇 접근 권한",
- "whop.accessHint": "사용 가능한 모든 MCP 서버를 쓰는 봇은 이 연결을 물려받아요. 봇의 접근 설정을 열어 서버를 고르세요. 변경 사항은 다음 작업부터 적용돼요.",
- "whop.botSettings": "{name}의 접근 권한 관리",
- "whop.setupFailed": "Whop을 추가하지 못했어요. 새로고침한 뒤 다시 시도하세요.",
- "whop.testFailed": "로그인은 됐지만 Whop 도구를 불러오지 못했어요: {reason} 다시 연결해 재시도하세요.",
- "whop.loadingTools": "로그인했어요. Whop 도구를 불러오는 중…",
+ "hostedMcp.connected": "{service}이 연결되어 사용 중이에요. 봇 접근 권한은 각 봇의 MCP 서버 선택을 따라요.",
+ "hostedMcp.access": "봇 접근 권한",
+ "hostedMcp.accessHint": "사용 가능한 모든 MCP 서버를 쓰는 봇은 이 연결을 물려받아요. 봇의 접근 설정을 열어 서버를 고르세요. 변경 사항은 다음 작업부터 적용돼요.",
+ "hostedMcp.botSettings": "{name}의 접근 권한 관리",
+ "hostedMcp.setupFailed": "{service}을 추가하지 못했어요. 새로고침한 뒤 다시 시도하세요.",
+ "hostedMcp.testFailed": "로그인은 됐지만 {service} 도구를 불러오지 못했어요: {reason} 다시 연결해 재시도하세요.",
+ "hostedMcp.loadingTools": "로그인했어요. {service} 도구를 불러오는 중…",
"highlevel.title": "HighLevel",
"highlevel.description": "Growably 등 HighLevel 기반 CRM도 지원해요.",
"highlevel.connect": "HighLevel 연결",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 1f3df04028..ddd6119c86 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -1,16 +1,15 @@
{
"whop.description": "Produkty, linki do zamówień, członkostwa i płatności dzięki oficjalnej integracji Whop.",
- "whop.otherAppsSetup": "Whop jest połączony. Skonfiguruj lub przywróć usługę połączenia, aby korzystać z pozostałych aplikacji.",
- "whop.connect": "Połącz Whop",
- "whop.disconnect": "Rozłącz Whop",
+ "hostedMcp.connect": "Połącz {service}",
+ "hostedMcp.disconnect": "Rozłącz {service}",
"whop.notice": "Zaloguj się przez Whop — klucz API nie jest potrzebny. Whop prosi o dostęp administratora do firm, którymi zarządzasz, i wymaga potwierdzenia w przypadku istotnych działań finansowych lub destrukcyjnych.",
- "whop.connected": "Whop jest połączony i włączony. Dostęp botów wynika z wyboru serwerów MCP dla każdego bota.",
- "whop.access": "Dostęp botów",
- "whop.accessHint": "Boty korzystające z wszystkich włączonych serwerów MCP dziedziczą to połączenie. Otwórz ustawienia dostępu bota, aby wybrać jego serwery. Zmiany zaczną obowiązywać przy następnym zadaniu.",
- "whop.botSettings": "Zarządzaj dostępem bota {name}",
- "whop.setupFailed": "Nie udało się dodać Whop. Odśwież i spróbuj ponownie.",
- "whop.testFailed": "Zalogowano, ale nie udało się wczytać narzędzi Whop: {reason} Połącz ponownie, aby spróbować jeszcze raz.",
- "whop.loadingTools": "Zalogowano. Wczytywanie narzędzi Whop…",
+ "hostedMcp.connected": "{service} jest połączony i włączony. Dostęp botów wynika z wyboru serwerów MCP dla każdego bota.",
+ "hostedMcp.access": "Dostęp botów",
+ "hostedMcp.accessHint": "Boty korzystające z wszystkich włączonych serwerów MCP dziedziczą to połączenie. Otwórz ustawienia dostępu bota, aby wybrać jego serwery. Zmiany zaczną obowiązywać przy następnym zadaniu.",
+ "hostedMcp.botSettings": "Zarządzaj dostępem bota {name}",
+ "hostedMcp.setupFailed": "Nie udało się dodać {service}. Odśwież i spróbuj ponownie.",
+ "hostedMcp.testFailed": "Zalogowano, ale nie udało się wczytać narzędzi {service}: {reason} Połącz ponownie, aby spróbować jeszcze raz.",
+ "hostedMcp.loadingTools": "Zalogowano. Wczytywanie narzędzi {service}…",
"highlevel.title": "HighLevel",
"highlevel.description": "Także Growably i inne CRM-y oparte na HighLevel.",
"highlevel.connect": "Połącz HighLevel",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index bdeeb9b5cf..52f57e885a 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -1,16 +1,15 @@
{
"whop.description": "Produtos, links de pagamento, assinaturas e pagamentos pela integração oficial do Whop.",
- "whop.otherAppsSetup": "O Whop está conectado. Configure ou restaure o serviço de conexão para usar os outros apps.",
- "whop.connect": "Conectar o Whop",
- "whop.disconnect": "Desconectar o Whop",
+ "hostedMcp.connect": "Conectar o {service}",
+ "hostedMcp.disconnect": "Desconectar o {service}",
"whop.notice": "Entre com o Whop — sem precisar de chave de API. O Whop pede acesso de administrador a todos os negócios que você gerencia e exige confirmação para ações financeiras importantes ou destrutivas.",
- "whop.connected": "O Whop está conectado e ativado. O acesso dos bots segue a seleção de servidores MCP de cada bot.",
- "whop.access": "Acesso dos bots",
- "whop.accessHint": "Bots que usam todos os servidores MCP ativados herdam esta conexão. Abra as configurações “Access” de um bot para escolher os servidores dele. As alterações valem a partir da próxima tarefa.",
- "whop.botSettings": "Gerenciar o acesso de {name}",
- "whop.setupFailed": "Não foi possível adicionar o Whop. Atualize e tente novamente.",
- "whop.testFailed": "Você entrou, mas não foi possível carregar as ferramentas do Whop: {reason} Conecte de novo para tentar outra vez.",
- "whop.loadingTools": "Você entrou. Carregando as ferramentas do Whop…",
+ "hostedMcp.connected": "O {service} está conectado e ativado. O acesso dos bots segue a seleção de servidores MCP de cada bot.",
+ "hostedMcp.access": "Acesso dos bots",
+ "hostedMcp.accessHint": "Bots que usam todos os servidores MCP ativados herdam esta conexão. Abra as configurações “Access” de um bot para escolher os servidores dele. As alterações valem a partir da próxima tarefa.",
+ "hostedMcp.botSettings": "Gerenciar o acesso de {name}",
+ "hostedMcp.setupFailed": "Não foi possível adicionar o {service}. Atualize e tente novamente.",
+ "hostedMcp.testFailed": "Você entrou, mas não foi possível carregar as ferramentas do {service}: {reason} Conecte de novo para tentar outra vez.",
+ "hostedMcp.loadingTools": "Você entrou. Carregando as ferramentas do {service}…",
"highlevel.title": "HighLevel",
"highlevel.description": "Também para o Growably e outros CRMs baseados no HighLevel.",
"highlevel.connect": "Conectar o HighLevel",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 622c573513..0e8fa365ae 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -1,16 +1,15 @@
{
"whop.description": "Продукты, ссылки на оплату, подписки и платежи через официальную интеграцию Whop.",
- "whop.otherAppsSetup": "Whop подключён. Настройте или восстановите службу подключения, чтобы использовать остальные приложения.",
- "whop.connect": "Подключить Whop",
- "whop.disconnect": "Отключить Whop",
+ "hostedMcp.connect": "Подключить {service}",
+ "hostedMcp.disconnect": "Отключить {service}",
"whop.notice": "Вход через Whop — API-ключ не нужен. Whop запрашивает права администратора во всех компаниях, которыми вы управляете, и требует подтверждения значимых финансовых или деструктивных действий.",
- "whop.connected": "Whop подключён и включён. Доступ ботов определяется выбором серверов MCP для каждого бота.",
- "whop.access": "Доступ ботов",
- "whop.accessHint": "Боты, использующие все включённые серверы MCP, наследуют это подключение. Откройте настройки доступа бота, чтобы выбрать его серверы. Изменения применятся к его следующей задаче.",
- "whop.botSettings": "Управлять доступом {name}",
- "whop.setupFailed": "Не удалось добавить Whop. Обновите и попробуйте снова.",
- "whop.testFailed": "Выполнен вход, но не удалось загрузить инструменты Whop: {reason} Подключитесь ещё раз, чтобы повторить попытку.",
- "whop.loadingTools": "Выполнен вход. Загружаем инструменты Whop…",
+ "hostedMcp.connected": "{service} подключён и включён. Доступ ботов определяется выбором серверов MCP для каждого бота.",
+ "hostedMcp.access": "Доступ ботов",
+ "hostedMcp.accessHint": "Боты, использующие все включённые серверы MCP, наследуют это подключение. Откройте настройки доступа бота, чтобы выбрать его серверы. Изменения применятся к его следующей задаче.",
+ "hostedMcp.botSettings": "Управлять доступом {name}",
+ "hostedMcp.setupFailed": "Не удалось добавить {service}. Обновите и попробуйте снова.",
+ "hostedMcp.testFailed": "Выполнен вход, но не удалось загрузить инструменты {service}: {reason} Подключитесь ещё раз, чтобы повторить попытку.",
+ "hostedMcp.loadingTools": "Выполнен вход. Загружаем инструменты {service}…",
"highlevel.title": "HighLevel",
"highlevel.description": "Также Growably и другие CRM на базе HighLevel.",
"highlevel.connect": "Подключить HighLevel",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 8fece1fba5..67da1d49c8 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -2844,17 +2844,16 @@
},
"es": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.title": "abfc6272b5ad06927cfe2eebc1717892428919e15ed940abb0a5e14b2ac4189f",
"highlevel.description": "e35a43c1cd65e769d7df9e9c17ad70acae2a653f9013570679ddbc30e54c1407",
"highlevel.connect": "1121d30e31fcfe4dc9448c6c77062db8295fdc85b994035e54b829cafd0d0c9c",
@@ -14154,17 +14153,16 @@
},
"ja": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.title": "abfc6272b5ad06927cfe2eebc1717892428919e15ed940abb0a5e14b2ac4189f",
"highlevel.description": "e35a43c1cd65e769d7df9e9c17ad70acae2a653f9013570679ddbc30e54c1407",
"highlevel.connect": "1121d30e31fcfe4dc9448c6c77062db8295fdc85b994035e54b829cafd0d0c9c",
@@ -20813,17 +20811,16 @@
},
"pt-br": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.title": "abfc6272b5ad06927cfe2eebc1717892428919e15ed940abb0a5e14b2ac4189f",
"highlevel.description": "e35a43c1cd65e769d7df9e9c17ad70acae2a653f9013570679ddbc30e54c1407",
"highlevel.connect": "1121d30e31fcfe4dc9448c6c77062db8295fdc85b994035e54b829cafd0d0c9c",
@@ -30795,17 +30792,16 @@
"botAccess.overview.cell": "50a24934d9aa69b9dc2cedc67b7c0836f8725fafebb75dd644611e5b7e0a9c88",
"botAccess.overview.toastPerson": "dff637324c0c60c5c24ef975849268f154d80ec82b56592a2125b272087c9763",
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.title": "abfc6272b5ad06927cfe2eebc1717892428919e15ed940abb0a5e14b2ac4189f",
"highlevel.description": "e35a43c1cd65e769d7df9e9c17ad70acae2a653f9013570679ddbc30e54c1407",
"highlevel.connect": "1121d30e31fcfe4dc9448c6c77062db8295fdc85b994035e54b829cafd0d0c9c",
@@ -34591,16 +34587,15 @@
},
"zh-tw": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",
"table.title": "16d1c9050a0b32e83764a81d801a880773abedfd7f8b0b08a1cd87ca0e404f12",
"table.search": "ae031c7268677cb7ecba0b8e17233ed705f2ba16d654c5ed61f7dc722ef77bd4",
@@ -42439,17 +42434,16 @@
},
"vi": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",
"table.title": "16d1c9050a0b32e83764a81d801a880773abedfd7f8b0b08a1cd87ca0e404f12",
"table.search": "ae031c7268677cb7ecba0b8e17233ed705f2ba16d654c5ed61f7dc722ef77bd4",
@@ -47666,17 +47660,16 @@
},
"tr": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.unavailable": "87b8ac7f7610e6dd69f520bc59058fd92f307b9f4bcf804075f25d08bcaa7533",
"table.title": "16d1c9050a0b32e83764a81d801a880773abedfd7f8b0b08a1cd87ca0e404f12",
"table.search": "ae031c7268677cb7ecba0b8e17233ed705f2ba16d654c5ed61f7dc722ef77bd4",
@@ -52893,17 +52886,16 @@
},
"pl": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.title": "abfc6272b5ad06927cfe2eebc1717892428919e15ed940abb0a5e14b2ac4189f",
"highlevel.description": "e35a43c1cd65e769d7df9e9c17ad70acae2a653f9013570679ddbc30e54c1407",
"highlevel.connect": "1121d30e31fcfe4dc9448c6c77062db8295fdc85b994035e54b829cafd0d0c9c",
@@ -59449,17 +59441,16 @@
},
"ru": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.title": "abfc6272b5ad06927cfe2eebc1717892428919e15ed940abb0a5e14b2ac4189f",
"highlevel.description": "e35a43c1cd65e769d7df9e9c17ad70acae2a653f9013570679ddbc30e54c1407",
"highlevel.connect": "1121d30e31fcfe4dc9448c6c77062db8295fdc85b994035e54b829cafd0d0c9c",
@@ -66086,17 +66077,16 @@
},
"it": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.description": "e35a43c1cd65e769d7df9e9c17ad70acae2a653f9013570679ddbc30e54c1407",
"highlevel.connect": "1121d30e31fcfe4dc9448c6c77062db8295fdc85b994035e54b829cafd0d0c9c",
"highlevel.reconnect": "50adabb9188c94e5255a8f9d19da3de46f91dde419edb25147242c83e5e1f7ce",
@@ -72540,17 +72530,16 @@
"connectedWorkspaces.forgetError": "6426192c4c32258117650b57029d6bb95102ab0eede1967d962a750817df5f85",
"connectedWorkspaces.createError": "d6393fe1d84bccf5308d15cec7b87cba70c84c7cc098403c58067ad540709763",
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
- "whop.otherAppsSetup": "954f6c559920754aec13a4ffa8718b9df18715a49e9a583c87d2b615fe4563b4",
- "whop.connect": "29e15066fae2fc952318f2a39cdcb32ec68067916eb92c8ba5d4a9fce569055f",
- "whop.disconnect": "1e683a88b3f5e3b33845fde6e9aac902ec8c4e160c09b3e19776a64ee836947a",
+ "hostedMcp.connect": "90af8c699b876e65cb575aecfa9b4001ab9476dccd259b0b40d0512bf18747d7",
+ "hostedMcp.disconnect": "d2ac39b755863cc4d98303430df47f8b030d817595d2f72cbd586d06a86d54ab",
"whop.notice": "411c14eeab03b9e2392384144468a20db980a68b136f60f98d41d77ccb8077a7",
- "whop.connected": "679fba67aa3e266445c71f59aa0e95c43968723f282a8eff3f830e04955156a7",
- "whop.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
- "whop.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
- "whop.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
- "whop.setupFailed": "4971a45db1b63f3db0a61d03c99b7631bf77c733821a3483b51f914c23d9538a",
- "whop.testFailed": "e7e821c51bc6cc77e099a9e806e042d5d81384a6361785c4dceeac536d1fd3c9",
- "whop.loadingTools": "9e5cd33e6b81d96b0f7f807f018730387c51105bb9fe07e43b7813a08b8ca8bc",
+ "hostedMcp.connected": "1d518aca6e81a04848e812bde0bd605a8bdc00d29b9a456925eda07cf1b35257",
+ "hostedMcp.access": "e8d4d816e5f65f5a29d25088833680df92ebcf46f48ffefa90f99a6cf89c990e",
+ "hostedMcp.accessHint": "3e43a8606fe86e409e26e568171fec4843957422458a7ebfa427303a8d8d94f1",
+ "hostedMcp.botSettings": "a70b6aa99fd4be1504fc68df31ef433aa5e44a24379b9643e0e8d1b8cb3ffe19",
+ "hostedMcp.setupFailed": "b4ef46d1fa1f788380010693a9df980916c45563eb6fa162e9f38a0bf2cda13b",
+ "hostedMcp.testFailed": "48cf00db2f575d9eaf8fce51a25b2a654c283e4daa078d3e85b3211e7ab4ecf0",
+ "hostedMcp.loadingTools": "a0fc717ac4c8c8caa59532400c2a487edb94ad9709eed8aa7f5edcf2e6ee9015",
"highlevel.title": "abfc6272b5ad06927cfe2eebc1717892428919e15ed940abb0a5e14b2ac4189f",
"highlevel.description": "e35a43c1cd65e769d7df9e9c17ad70acae2a653f9013570679ddbc30e54c1407",
"highlevel.connect": "1121d30e31fcfe4dc9448c6c77062db8295fdc85b994035e54b829cafd0d0c9c",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 7a0ef401bd..c950139cb0 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -1,16 +1,15 @@
{
"whop.description": "Whop'un resmi entegrasyonu üzerinden ürünler, ödeme bağlantıları, üyelikler ve ödemeler.",
- "whop.otherAppsSetup": "Whop bağlı. Diğer uygulamaları kullanmak için bağlantı hizmetini kurun veya geri yükleyin.",
- "whop.connect": "Whop'u bağla",
- "whop.disconnect": "Whop bağlantısını kes",
+ "hostedMcp.connect": "{service}'u bağla",
+ "hostedMcp.disconnect": "{service} bağlantısını kes",
"whop.notice": "Whop ile giriş yapın — API anahtarı gerekmez. Whop, yönettiğiniz tüm işletmelerde yönetici erişimi ister ve önemli sonuçları olan finansal ya da yıkıcı işlemler için onay gerektirir.",
- "whop.connected": "Whop bağlı ve etkin. Bot erişimi, her botun MCP sunucusu seçimine göre belirlenir.",
- "whop.access": "Bot erişimi",
- "whop.accessHint": "Etkin MCP sunucularının tümünü kullanan botlar bu bağlantıyı devralır. Sunucularını seçmek için bir botun Erişim ayarlarını açın. Değişiklikler botun bir sonraki görevinde geçerli olur.",
- "whop.botSettings": "{name} adlı botun erişimini yönet",
- "whop.setupFailed": "Whop eklenemedi. Sayfayı yenileyip tekrar deneyin.",
- "whop.testFailed": "Giriş yapıldı, ancak Whop araçları yüklenemedi: {reason} Yeniden denemek için lütfen tekrar bağlanın.",
- "whop.loadingTools": "Giriş yapıldı. Whop araçları yükleniyor…",
+ "hostedMcp.connected": "{service} bağlı ve etkin. Bot erişimi, her botun MCP sunucusu seçimine göre belirlenir.",
+ "hostedMcp.access": "Bot erişimi",
+ "hostedMcp.accessHint": "Etkin MCP sunucularının tümünü kullanan botlar bu bağlantıyı devralır. Sunucularını seçmek için bir botun Erişim ayarlarını açın. Değişiklikler botun bir sonraki görevinde geçerli olur.",
+ "hostedMcp.botSettings": "{name} adlı botun erişimini yönet",
+ "hostedMcp.setupFailed": "{service} eklenemedi. Sayfayı yenileyip tekrar deneyin.",
+ "hostedMcp.testFailed": "Giriş yapıldı, ancak {service} araçları yüklenemedi: {reason} Yeniden denemek için lütfen tekrar bağlanın.",
+ "hostedMcp.loadingTools": "Giriş yapıldı. {service} araçları yükleniyor…",
"highlevel.unavailable": "Burada kullanılamıyor.",
"postiz.description": "Postiz ile sosyal medya gönderilerini taslak olarak hazırlayın, zamanlayın ve yayınlayın.",
"postiz.connect": "Postiz’i bağla",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index de6026ae29..c4075fd19a 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -1,16 +1,15 @@
{
"whop.description": "Sản phẩm, liên kết thanh toán, tư cách thành viên và thanh toán thông qua tích hợp chính thức của Whop.",
- "whop.otherAppsSetup": "Whop đã được kết nối. Hãy thiết lập hoặc khôi phục dịch vụ kết nối để sử dụng các ứng dụng khác.",
- "whop.connect": "Kết nối Whop",
- "whop.disconnect": "Ngắt kết nối Whop",
+ "hostedMcp.connect": "Kết nối {service}",
+ "hostedMcp.disconnect": "Ngắt kết nối {service}",
"whop.notice": "Đăng nhập bằng Whop — không cần khóa API. Whop yêu cầu quyền quản trị trên các doanh nghiệp bạn quản lý, và cần xác nhận cho các hành động tài chính quan trọng hoặc có tính phá hủy.",
- "whop.connected": "Whop đã được kết nối và bật. Quyền truy cập của bot tuân theo lựa chọn máy chủ MCP của từng bot.",
- "whop.access": "Quyền truy cập của bot",
- "whop.accessHint": "Các bot sử dụng mọi máy chủ MCP được bật sẽ kế thừa kết nối này. Mở cài đặt Quyền truy cập của bot để chọn máy chủ của bot đó. Thay đổi sẽ áp dụng cho nhiệm vụ tiếp theo.",
- "whop.botSettings": "Quản lý quyền truy cập của {name}",
- "whop.setupFailed": "Không thể thêm Whop. Hãy làm mới và thử lại.",
- "whop.testFailed": "Đã đăng nhập, nhưng không thể tải các công cụ của Whop: {reason} Vui lòng kết nối lại để thử lại.",
- "whop.loadingTools": "Đã đăng nhập. Đang tải công cụ của Whop…",
+ "hostedMcp.connected": "{service} đã được kết nối và bật. Quyền truy cập của bot tuân theo lựa chọn máy chủ MCP của từng bot.",
+ "hostedMcp.access": "Quyền truy cập của bot",
+ "hostedMcp.accessHint": "Các bot sử dụng mọi máy chủ MCP được bật sẽ kế thừa kết nối này. Mở cài đặt Quyền truy cập của bot để chọn máy chủ của bot đó. Thay đổi sẽ áp dụng cho nhiệm vụ tiếp theo.",
+ "hostedMcp.botSettings": "Quản lý quyền truy cập của {name}",
+ "hostedMcp.setupFailed": "Không thể thêm {service}. Hãy làm mới và thử lại.",
+ "hostedMcp.testFailed": "Đã đăng nhập, nhưng không thể tải các công cụ của {service}: {reason} Vui lòng kết nối lại để thử lại.",
+ "hostedMcp.loadingTools": "Đã đăng nhập. Đang tải công cụ của {service}…",
"highlevel.unavailable": "Không khả dụng ở đây.",
"postiz.description": "Soạn nháp, lên lịch và đăng bài mạng xã hội bằng Postiz.",
"postiz.connect": "Kết nối Postiz",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 81a44b104b..be68f08960 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -1,15 +1,14 @@
{
"whop.description": "透過 Whop 官方整合管理商品、結帳連結、會員資格與付款。",
- "whop.otherAppsSetup": "Whop 已連線。請設定或還原連線服務,以使用其他應用程式。",
- "whop.connect": "連線 Whop",
- "whop.disconnect": "中斷 Whop 連線",
+ "hostedMcp.connect": "連線 {service}",
+ "hostedMcp.disconnect": "中斷 {service} 連線",
"whop.notice": "Whop 會要求你所管理之所有商家的管理員權限,並會在執行重大財務操作或破壞性操作前要求確認。",
- "whop.connected": "Whop 已連線並啟用。機器人的存取權依各機器人的 MCP 伺服器選擇而定。",
- "whop.access": "機器人存取權",
- "whop.accessHint": "使用所有已啟用 MCP 伺服器的機器人都會使用此連線。開啟機器人的存取權設定即可選擇其伺服器。變更會套用於它的下一個任務。",
- "whop.botSettings": "管理 {name} 的存取權",
- "whop.setupFailed": "無法新增 Whop。請重新整理後再試一次。",
- "whop.testFailed": "已登入,但無法載入 Whop 的工具:{reason} 請重新連線以重試。",
+ "hostedMcp.connected": "{service} 已連線並啟用。機器人的存取權依各機器人的 MCP 伺服器選擇而定。",
+ "hostedMcp.access": "機器人存取權",
+ "hostedMcp.accessHint": "使用所有已啟用 MCP 伺服器的機器人都會使用此連線。開啟機器人的存取權設定即可選擇其伺服器。變更會套用於它的下一個任務。",
+ "hostedMcp.botSettings": "管理 {name} 的存取權",
+ "hostedMcp.setupFailed": "無法新增 {service}。請重新整理後再試一次。",
+ "hostedMcp.testFailed": "已登入,但無法載入 {service} 的工具:{reason} 請重新連線以重試。",
"highlevel.unavailable": "這裡無法使用。",
"postiz.description": "用 Postiz 撰寫草稿、排程並發布社群貼文。",
"postiz.connect": "連結 Postiz",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 807c8eb7fb..4fc83dc9b7 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -21,17 +21,16 @@
"connectedWorkspaces.forgetError": "无法移除该环境。请重试。",
"connectedWorkspaces.createError": "无法创建环境。请检查数据文件夹,然后重试。",
"whop.description": "通过 Whop 官方集成管理商品、结账链接、会员资格和付款。",
- "whop.otherAppsSetup": "Whop 已连接。请设置或恢复连接服务,以便使用其他应用。",
- "whop.connect": "连接 Whop",
- "whop.disconnect": "断开 Whop 连接",
+ "hostedMcp.connect": "连接 {service}",
+ "hostedMcp.disconnect": "断开 {service} 连接",
"whop.notice": "使用 Whop 登录,无需 API 密钥。Whop 会请求你所管理所有商家的管理员权限,并在执行重大财务操作或破坏性操作前要求确认。",
- "whop.connected": "Whop 已连接并启用。机器人的访问权限取决于各机器人所选的 MCP 服务器。",
- "whop.access": "机器人访问权限",
- "whop.accessHint": "使用所有已启用 MCP 服务器的机器人会共用此连接。打开机器人的「访问」设置即可选择它能用的服务器。更改会在它的下一个任务中生效。",
- "whop.botSettings": "管理 {name} 的访问权限",
- "whop.setupFailed": "无法添加 Whop。请刷新后重试。",
- "whop.testFailed": "已登录,但无法加载 Whop 的工具:{reason} 请重新连接后再试。",
- "whop.loadingTools": "已登录。正在加载 Whop 的工具…",
+ "hostedMcp.connected": "{service} 已连接并启用。机器人的访问权限取决于各机器人所选的 MCP 服务器。",
+ "hostedMcp.access": "机器人访问权限",
+ "hostedMcp.accessHint": "使用所有已启用 MCP 服务器的机器人会共用此连接。打开机器人的「访问」设置即可选择它能用的服务器。更改会在它的下一个任务中生效。",
+ "hostedMcp.botSettings": "管理 {name} 的访问权限",
+ "hostedMcp.setupFailed": "无法添加 {service}。请刷新后重试。",
+ "hostedMcp.testFailed": "已登录,但无法加载 {service} 的工具:{reason} 请重新连接后再试。",
+ "hostedMcp.loadingTools": "已登录。正在加载 {service} 的工具…",
"highlevel.title": "HighLevel",
"highlevel.description": "也支持 Growably 等其他基于 HighLevel 的 CRM。",
"highlevel.connect": "连接 HighLevel",