chore(extension): use react for connect dialog (#777)

This commit is contained in:
Yury Semikhatsky
2025-07-28 15:23:33 -07:00
committed by GitHub
parent 04988d8fac
commit 9b5f97b076
11 changed files with 2496 additions and 191 deletions

View File

@@ -103,7 +103,7 @@ export class CDPRelayServer {
private async _connectBrowser(clientInfo: { name: string, version: string }) {
const mcpRelayEndpoint = `${this._wsHost}${this._extensionPath}`;
// Need to specify "key" in the manifest.json to make the id stable when loading from file.
const url = new URL('chrome-extension://jakfalbnbhgkpmoaakfflhflbfpkailf/connect.html');
const url = new URL('chrome-extension://jakfalbnbhgkpmoaakfflhflbfpkailf/lib/ui/connect.html');
url.searchParams.set('mcpRelayUrl', mcpRelayEndpoint);
url.searchParams.set('client', JSON.stringify(clientInfo));
const href = url.toString();