विषय पर बढ़ें

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

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

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 --init -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.

संबंधित