feat(web): copy an environment's MCP URL for outside agents #15222
t3code/mcp-oauth/sign-in fromt3code/mcp-oauth/copy-urlopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
juliusmarminge added labelsmacroscope-review
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/web/src/components/settings/ConnectionsSettings.tsx lines 1578 to 1581Resolvedby juliusmarminge@@ -1533,3 +1552,8 @@15331552 if (discoveredDescriptor !== undefined && discoveredDescriptor !== lastDescriptor) {15341553 setLastDescriptor(discoveredDescriptor);15351554 }1555+ const mcpUrl = environmentMcpUrl({1556+ entry: environment.entry,1557+ relayHttpBaseUrl:1558+ relayDiscovery.environments.get(environmentId)?.environment.endpoint.httpBaseUrl,1559+ });
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- docs/user/remote-access.md lines 192 to 196Resolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -145,0 +147,21 @@147+148+An agent T3 Code did not start, such as Claude Code in your own terminal, can149+drive threads on an environment through its MCP server. In **Settings →150+Connections**, open a saved environment's menu and choose **Copy MCP URL**, then151+add it to the agent. For example:152+153+```sh154+claude mcp add --transport http t3 https://<environment-address>/mcp155+```156+157+The first time the agent connects, it opens a sign-in page on the environment.158+Enter a pairing code from **Settings → Connections** on a device that can manage159+access, or from `t3 auth pairing create` on the host, and choose what the agent160+may do. A browser already signed in to that environment as an administrator can161+approve without a code.162+163+**Read only** lets the agent read projects and threads in every project, and164+ nothing else.165+**Supervised** through **Full access** also let it start, message and stop166+ threads in every project, but it cannot start or steer a thread with more167+ permissions than the mode you chose.
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -1526,3 +1527,10 @@15261527 },15271528 [copyTraceIdToClipboard],15281529 );1530+ const { copyToClipboard: copyMcpUrl } = useCopyToClipboard<{ url: string }>({1531+ target: "MCP URL",1532+ onCopy: ({ url }) => {1533+ toastManager.add({1534+ type: "success",1535+ title: "MCP URL copied",1536+ description: `Add it to an agent, e.g. claude mcp add --transport http t3 ${url}`,
juliusmarminge closed this
Sign in to join this conversation.



Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result:
6d125eb· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.