From 3f7e2d1b45d6e9a6685a7330512d925cbee6f939 Mon Sep 17 00:00:00 2001 From: "AJ (@techfren)" Date: Fri, 21 Nov 2025 11:28:37 -0800 Subject: [PATCH] docs: add authentication token instructions to extension README (#1207) --- extension/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/extension/README.md b/extension/README.md index 6421798..9c411a4 100644 --- a/extension/README.md +++ b/extension/README.md @@ -45,4 +45,33 @@ Configure Playwright MCP server to connect to the browser using the extension by When the LLM interacts with the browser for the first time, it will load a page where you can select which browser tab the LLM will connect to. This allows you to control which specific page the AI assistant will interact with during the session. +### Bypassing the Connection Approval Dialog + +By default, you'll need to approve each connection when the MCP server tries to connect to your browser. To bypass this approval dialog and allow automatic connections, you can use an authentication token. + +#### Using Your Unique Authentication Token + +1. After installing the extension, click on the extension icon or navigate to the extension's status page +2. Copy the `PLAYWRIGHT_MCP_EXTENSION_TOKEN` value displayed in the extension UI +3. Add it to your MCP server configuration: + +```json +{ + "mcpServers": { + "playwright-extension": { + "command": "npx", + "args": [ + "@playwright/mcp@latest", + "--extension" + ], + "env": { + "PLAYWRIGHT_MCP_EXTENSION_TOKEN": "your-token-here" + } + } + } +} +``` + +This token is unique to your browser profile and provides secure authentication between the MCP server and the extension. Once configured, you won't need to manually approve connections each time. +