Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web (the desktop app shows it; the same rule lives in the mobile relay page)
Steps to reproduce
- On Windows, run AdGuard for Windows with its default extensions (AdGuard Extra and AdGuard Popup Blocker).
- Open the T3 Code desktop app on its local environment.
- In a thread, have the agent call an MCP tool that carries an app. I used the claude.ai Atlassian connector (
getJiraIssue,searchJiraIssuesUsingJql).
Expected behavior
The app renders inline under the tool call.
Actual behavior
Every app is replaced by this line:
The claude.ai Atlassian MCP app needs a newer T3 Code server on this environment. Update the server to use it.
The server is current: client and server are the same build, and the server serves the app with the document bootstrap in it.
What I found:
- AdGuard's local proxy rewrites the HTML that the T3 Code server serves at
http://127.0.0.1:3773/api/assets/.... It does this for every process,T3 Code (Nightly).exeincluded. It adds two<script src="//local.adguard.org?...">tags right after the CSP<meta>, ahead of the document bootstrap. - AdGuard Popup Blocker then posts the string
"pb_handshake"with aMessagePorttowindow.parent. That message reaches the host before the bootstrap's{ t3: "t3-mcp-app-document" }handover. attachMcpAppDocumentLink(apps/web/src/components/chat/mcpAppDocumentLink.ts) takes a frame's first message that is not the handover as proof that the bootstrap is missing, setslink = falseand callsonMissing. The notice above follows. The rule came with fix(web): MCP apps run only when their document hands over its bridge #42504.- The web client served over HTTP does not show it. AdGuard injects into that top page too, and its script there swallows
pb_handshakebefore T3 Code's listener runs. The desktop renderer loads fromt3code://, which the proxy cannot rewrite, so nothing swallows the message.
Messages from one app frame to the top window, in order, captured with a listener installed before any page script:
1. "pb_handshake" ports: 1
2. {"t3":"t3-mcp-app-document"} ports: 1
3. {"jsonrpc":"2.0","id":0,"method":"ui/initialize",...}
Impact
Major degradation or frequent failure. No MCP app renders on the desktop app while AdGuard is running. The tool call's input and result stay readable.
Version or commit
Seen on the desktop app at 0.1.13-nightly.20261125.5258. Diagnosed against the server of 0.1.13-nightly.20261126.5305. mcpAppDocumentLink.ts is the same on main @ b6a054a.
Environment
Windows 11 Pro (10.0.28120), T3 Code desktop nightly (Electron 44.10.1, Chrome 152), AdGuard for Windows 8.0.4, Claude provider.
Logs or stack traces
Start of the app page as the proxy hands it to the frame (policy, timestamps and the asset token cut):
<!doctype html><meta http-equiv="Content-Security-Policy" content="..."/>
<script type="text/javascript" nonce="..." src="//local.adguard.org?ts=...&type=content-script&dmn=127.0.0.1:3773&url=...&app=chrome.exe&css=2&js=1&rel=1&rji=1&sbe=1&stealth=1&st-dnt"></script>
<script type="text/javascript" nonce="..." src="//local.adguard.org?ts=...&name=AdGuard%20Extra&name=AdGuard%20Popup%20Blocker&type=user-script"></script>
<script>(function(){var host=window.parent,port=new MessageChannel(),own=port.port1; ... host.postMessage({t3:"t3-mcp-app-document"},"*",[port.port2]);})();</script>Repro outside the desktop app, with the real page: a top page that the proxy does not rewrite (fulfilled by Playwright, Chrome started with --disable-features=LocalNetworkAccessChecks as the desktop app does) embeds the app from http://127.0.0.1:3773/api/assets/... and attaches main's attachMcpAppDocumentLink:
{
"firstFrameMessage": "pb_handshake",
"bridgeMissing": true,
"delivered": []
}Workaround
Open the same thread in the web client at http://127.0.0.1:3773 in a browser: the apps render there. I did not test excluding T3 Code from AdGuard's filtering or turning off its Popup Blocker extension; either should avoid the first message.
A fix is in the linked PR.
Activity