Skip to content

Commit 622cee8

Browse files
cainantCainan Travizanutto E Silva
authored andcommitted
fix(web): show tunnel reachability beside the MCP URL
A connector can keep its hostname after losing its connections, so the row now reports the latest reachability instead of treating the address as proof the tunnel works. The URL stays available for when it recovers.
1 parent 692b0fd commit 622cee8

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎apps/web/src/components/settings/SavedEnvironmentRows.tsx‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,16 +451,21 @@ export function LocalEnvironmentMcpUrlRow({ entry }: { readonly entry: Connectio
451451
});
452452
if (mcpUrl === null) return null;
453453
const tunnelAvailable = cloudLink.data?.managedTunnelHttpBaseUrl != null;
454+
const tunnelReachability = tunnelAvailable ? cloudLink.data?.reachability : undefined;
454455
const loopback = isLoopbackHostname(new URL(mcpUrl).hostname);
455456
return (
456457
<SettingsRow
457458
{...searchableSetting("mcp-url")}
458459
description={
459-
tunnelAvailable
460-
? `Give this URL to a hosted agent, such as ChatGPT: ${mcpUrl}`
461-
: loopback
462-
? `Give this URL to an agent running on this machine: ${mcpUrl}`
463-
: `Give this URL to an agent that can reach this environment: ${mcpUrl}`
460+
tunnelReachability?.status === "reachable"
461+
? `Tunnel connected. Give this URL to a hosted agent, such as ChatGPT: ${mcpUrl}`
462+
: tunnelReachability?.status === "unreachable"
463+
? `T3 Connect is unreachable right now, so a hosted agent can use this URL after the tunnel recovers: ${mcpUrl}`
464+
: tunnelAvailable
465+
? `Give this URL to a hosted agent, such as ChatGPT: ${mcpUrl}`
466+
: loopback
467+
? `Give this URL to an agent running on this machine: ${mcpUrl}`
468+
: `Give this URL to an agent that can reach this environment: ${mcpUrl}`
464469
}
465470
control={
466471
<Button size="sm" variant="outline" onClick={() => copyMcpUrl(mcpUrl, { url: mcpUrl })}>

0 commit comments

Comments
 (0)