workspace

This commit is contained in:
Claude Agent
2026-02-09 07:13:38 +00:00
parent efe18b368e
commit a601b6200c
8 changed files with 231 additions and 30 deletions

54
docs/playwright-mcp.md Normal file
View File

@@ -0,0 +1,54 @@
# Playwright MCP în LXC Container
Plugin-ul Playwright MCP permite automatizarea browser-ului în Claude Code. Necesită configurație specială pentru a rula în container LXC unprivileged.
## Configurație Claude Code
Adaugă în `~/.claude/settings.json`:
```json
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest", "--headless", "--no-sandbox", "--browser", "chromium"]
}
}
}
```
## Configurație LXC (Proxmox)
În `/etc/pve/lxc/<CTID>.conf` adaugă:
```
lxc.apparmor.profile: unconfined
lxc.cap.drop:
lxc.mount.entry: /dev/shm dev/shm none bind,optional,create=dir 0 0
```
**Important:** După modificare, restartează containerul:
```bash
pct stop <CTID> && pct start <CTID>
```
## Instalare Chromium
```bash
npx playwright install chromium
```
## Verificare
Pentru a testa că Playwright funcționează:
```bash
npx playwright open --headless about:blank
```
## Troubleshooting
### Eroare: "No usable sandbox"
Asigură-te că `--no-sandbox` este în args și configurația LXC este aplicată.
### Eroare: "Browser not found"
Rulează `npx playwright install chromium` pentru a instala browser-ul.