विषय पर बढ़ें

Chrome एक्सटेंशन लोड करें

Chrome extensions के लिए unpacked directory और persistent profile चाहिए।

यह recipe CloakBrowser के unpacked extension launch का उपयोग करती है। अलग से installed आधिकारिक Playwright Extension connection mode में PLAYWRIGHT_MCP_EXTENSION=true, process-level PLAYWRIGHT_MCP_EXTENSION_TOKEN और dedicated persistent profile चाहिए। दोनों mechanisms को न मिलाएँ।

npm

PLAYWRIGHT_MCP_USER_DATA_DIR="$PWD/.profiles/default" \
  CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS='["/absolute/path/to/my-extension"]' \
  npx -y cloakbrowser-mcp@latest

Multiple paths, commas या Windows drive-letter paths के लिए JSON array उपयोग करें।

Docker

docker run --rm -i \
  -e PLAYWRIGHT_MCP_USER_DATA_DIR=/data/profiles/default \
  -e CLOAK_PLAYWRIGHT_MCP_EXTENSION_PATHS=/extensions/my-extension \
  -v "$PWD/artifacts:/data" \
  -v "$PWD/extensions/my-extension:/extensions/my-extension:ro" \
  swimmwatch/cloakbrowser-mcp:latest

Extension files या paths बदलने के बाद server restart करें।

सत्यापन

Use the MCP client to open a page where the extension should be active, then inspect behavior or capture a screenshot.

संबंधित