Pular para conteúdo

Perfil de login persistente

Um perfil persistente mantém o estado de login entre sessões do navegador.

npm

mkdir -p .profiles/default

PLAYWRIGHT_MCP_USER_DATA_DIR="$PWD/.profiles/default" \
  npx -y cloakbrowser-mcp@latest

Configure o cliente MCP com o mesmo comando. Não compartilhe um diretório de perfil entre servidores ativos.

Docker

docker run --rm --init -i \
  -e PLAYWRIGHT_MCP_USER_DATA_DIR=/data/profiles/default \
  -v "$PWD/artifacts:/data" \
  swimmwatch/cloakbrowser-mcp:latest

Use caminhos do contêiner nas variáveis de ambiente; o caminho do host aparece apenas no volume mount.

Verificar

  1. Sign in once.
  2. Restart with the same PLAYWRIGHT_MCP_USER_DATA_DIR.
  3. Confirm the session remains active.

Relacionado