P

Playguard

by ZenyaDAR · io.github.ZenyaDAR/playguard

Enables users to access and coordinate Playwright, Figma, Chrome DevTools, Shopify Dev, and Context7 tools through a single MCP connection, with response optimization, caching, and automatic session recovery.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-zenyadar-playguard": {
      "command": "npx",
      "args": [
        "-y",
        "playguard"
      ],
      "env": {
        "FIGMA_MCP_CMD": "<VALUE>",
        "FIGMA_MCP_URL": "<VALUE>",
        "DEVTOOLS_MCP_CMD": "<VALUE>",
        "SHOPIFY_DEV_MCP_CMD": "<VALUE>",
        "CONTEXT7_MCP_CMD": "<VALUE>",
        "FIGMA_API_KEY": "<VALUE>",
        "OUTPUT_FORMAT": "json",
        "FIGMA_MCP_ARGS": "<VALUE>",
        "FIGMA_SVG_REFS": "true",
        "FIGMA_CACHE_TTL": "0",
        "PLAYGUARD_DELTA": "true",
        "PLAYGUARD_HINTS": "true",
        "CONTEXT7_API_KEY": "<VALUE>",
        "CONTEXT7_MCP_ARGS": "<VALUE>",
        "DEVTOOLS_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_CODEGEN": "<VALUE>",
        "PLAYGUARD_COMPACT": "true",
        "PLAYGUARD_LOG_DIR": "logs/",
        "FIGMA_TEXT_COMPACT": "10000",
        "PLAYWRIGHT_MCP_CMD": "<VALUE>",
        "PLAYWRIGHT_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_OUTPUT_DIR": ".playguard/",
        "PLAYGUARD_SMART_WAIT": "false",
        "SHOPIFY_DEV_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_SCREENSHOTS": "warn",
        "PLAYGUARD_EVAL_COMPACT": "10000",
        "PLAYGUARD_LIST_WAIT_MS": "6000",
        "PLAYGUARD_PROJECT_ROOT": "<VALUE>",
        "PLAYGUARD_TOKEN_BUDGET": "0",
        "PLAYGUARD_UPDATE_CHECK": "true",
        "PLAYGUARD_DOCS_OPTIMIZE": "true",
        "PLAYGUARD_SMART_WAIT_MS": "1000",
        "PLAYGUARD_DOCS_CACHE_TTL": "86400",
        "PLAYGUARD_EVAL_CACHE_TTL": "500",
        "PLAYGUARD_HINT_THRESHOLD": "4",
        "PLAYGUARD_DELTA_THRESHOLD": "0.4",
        "PLAYGUARD_DEVTOOLS_BODY_MAX": "3000",
        "PLAYGUARD_DEVTOOLS_DEFAULTS": "true",
        "PLAYGUARD_DEVTOOLS_OPTIMIZE": "true",
        "PLAYGUARD_PREFETCH_SNAPSHOT": "false",
        "PLAYGUARD_SMART_WAIT_MIN_REFS": "5",
        "PLAYGUARD_DEVTOOLS_NETWORK_MAX": "30",
        "PLAYGUARD_SMART_WAIT_MAX_RETRIES": "3",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_PX": "2",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_COLOR": "5"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-zenyadar-playguard": {
      "command": "npx",
      "args": [
        "-y",
        "playguard"
      ],
      "env": {
        "FIGMA_MCP_CMD": "<VALUE>",
        "FIGMA_MCP_URL": "<VALUE>",
        "DEVTOOLS_MCP_CMD": "<VALUE>",
        "SHOPIFY_DEV_MCP_CMD": "<VALUE>",
        "CONTEXT7_MCP_CMD": "<VALUE>",
        "FIGMA_API_KEY": "<VALUE>",
        "OUTPUT_FORMAT": "json",
        "FIGMA_MCP_ARGS": "<VALUE>",
        "FIGMA_SVG_REFS": "true",
        "FIGMA_CACHE_TTL": "0",
        "PLAYGUARD_DELTA": "true",
        "PLAYGUARD_HINTS": "true",
        "CONTEXT7_API_KEY": "<VALUE>",
        "CONTEXT7_MCP_ARGS": "<VALUE>",
        "DEVTOOLS_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_CODEGEN": "<VALUE>",
        "PLAYGUARD_COMPACT": "true",
        "PLAYGUARD_LOG_DIR": "logs/",
        "FIGMA_TEXT_COMPACT": "10000",
        "PLAYWRIGHT_MCP_CMD": "<VALUE>",
        "PLAYWRIGHT_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_OUTPUT_DIR": ".playguard/",
        "PLAYGUARD_SMART_WAIT": "false",
        "SHOPIFY_DEV_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_SCREENSHOTS": "warn",
        "PLAYGUARD_EVAL_COMPACT": "10000",
        "PLAYGUARD_LIST_WAIT_MS": "6000",
        "PLAYGUARD_PROJECT_ROOT": "<VALUE>",
        "PLAYGUARD_TOKEN_BUDGET": "0",
        "PLAYGUARD_UPDATE_CHECK": "true",
        "PLAYGUARD_DOCS_OPTIMIZE": "true",
        "PLAYGUARD_SMART_WAIT_MS": "1000",
        "PLAYGUARD_DOCS_CACHE_TTL": "86400",
        "PLAYGUARD_EVAL_CACHE_TTL": "500",
        "PLAYGUARD_HINT_THRESHOLD": "4",
        "PLAYGUARD_DELTA_THRESHOLD": "0.4",
        "PLAYGUARD_DEVTOOLS_BODY_MAX": "3000",
        "PLAYGUARD_DEVTOOLS_DEFAULTS": "true",
        "PLAYGUARD_DEVTOOLS_OPTIMIZE": "true",
        "PLAYGUARD_PREFETCH_SNAPSHOT": "false",
        "PLAYGUARD_SMART_WAIT_MIN_REFS": "5",
        "PLAYGUARD_DEVTOOLS_NETWORK_MAX": "30",
        "PLAYGUARD_SMART_WAIT_MAX_RETRIES": "3",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_PX": "2",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_COLOR": "5"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-zenyadar-playguard": {
      "command": "npx",
      "args": [
        "-y",
        "playguard"
      ],
      "env": {
        "FIGMA_MCP_CMD": "<VALUE>",
        "FIGMA_MCP_URL": "<VALUE>",
        "DEVTOOLS_MCP_CMD": "<VALUE>",
        "SHOPIFY_DEV_MCP_CMD": "<VALUE>",
        "CONTEXT7_MCP_CMD": "<VALUE>",
        "FIGMA_API_KEY": "<VALUE>",
        "OUTPUT_FORMAT": "json",
        "FIGMA_MCP_ARGS": "<VALUE>",
        "FIGMA_SVG_REFS": "true",
        "FIGMA_CACHE_TTL": "0",
        "PLAYGUARD_DELTA": "true",
        "PLAYGUARD_HINTS": "true",
        "CONTEXT7_API_KEY": "<VALUE>",
        "CONTEXT7_MCP_ARGS": "<VALUE>",
        "DEVTOOLS_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_CODEGEN": "<VALUE>",
        "PLAYGUARD_COMPACT": "true",
        "PLAYGUARD_LOG_DIR": "logs/",
        "FIGMA_TEXT_COMPACT": "10000",
        "PLAYWRIGHT_MCP_CMD": "<VALUE>",
        "PLAYWRIGHT_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_OUTPUT_DIR": ".playguard/",
        "PLAYGUARD_SMART_WAIT": "false",
        "SHOPIFY_DEV_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_SCREENSHOTS": "warn",
        "PLAYGUARD_EVAL_COMPACT": "10000",
        "PLAYGUARD_LIST_WAIT_MS": "6000",
        "PLAYGUARD_PROJECT_ROOT": "<VALUE>",
        "PLAYGUARD_TOKEN_BUDGET": "0",
        "PLAYGUARD_UPDATE_CHECK": "true",
        "PLAYGUARD_DOCS_OPTIMIZE": "true",
        "PLAYGUARD_SMART_WAIT_MS": "1000",
        "PLAYGUARD_DOCS_CACHE_TTL": "86400",
        "PLAYGUARD_EVAL_CACHE_TTL": "500",
        "PLAYGUARD_HINT_THRESHOLD": "4",
        "PLAYGUARD_DELTA_THRESHOLD": "0.4",
        "PLAYGUARD_DEVTOOLS_BODY_MAX": "3000",
        "PLAYGUARD_DEVTOOLS_DEFAULTS": "true",
        "PLAYGUARD_DEVTOOLS_OPTIMIZE": "true",
        "PLAYGUARD_PREFETCH_SNAPSHOT": "false",
        "PLAYGUARD_SMART_WAIT_MIN_REFS": "5",
        "PLAYGUARD_DEVTOOLS_NETWORK_MAX": "30",
        "PLAYGUARD_SMART_WAIT_MAX_RETRIES": "3",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_PX": "2",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_COLOR": "5"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-zenyadar-playguard": {
      "command": "npx",
      "args": [
        "-y",
        "playguard"
      ],
      "env": {
        "FIGMA_MCP_CMD": "<VALUE>",
        "FIGMA_MCP_URL": "<VALUE>",
        "DEVTOOLS_MCP_CMD": "<VALUE>",
        "SHOPIFY_DEV_MCP_CMD": "<VALUE>",
        "CONTEXT7_MCP_CMD": "<VALUE>",
        "FIGMA_API_KEY": "<VALUE>",
        "OUTPUT_FORMAT": "json",
        "FIGMA_MCP_ARGS": "<VALUE>",
        "FIGMA_SVG_REFS": "true",
        "FIGMA_CACHE_TTL": "0",
        "PLAYGUARD_DELTA": "true",
        "PLAYGUARD_HINTS": "true",
        "CONTEXT7_API_KEY": "<VALUE>",
        "CONTEXT7_MCP_ARGS": "<VALUE>",
        "DEVTOOLS_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_CODEGEN": "<VALUE>",
        "PLAYGUARD_COMPACT": "true",
        "PLAYGUARD_LOG_DIR": "logs/",
        "FIGMA_TEXT_COMPACT": "10000",
        "PLAYWRIGHT_MCP_CMD": "<VALUE>",
        "PLAYWRIGHT_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_OUTPUT_DIR": ".playguard/",
        "PLAYGUARD_SMART_WAIT": "false",
        "SHOPIFY_DEV_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_SCREENSHOTS": "warn",
        "PLAYGUARD_EVAL_COMPACT": "10000",
        "PLAYGUARD_LIST_WAIT_MS": "6000",
        "PLAYGUARD_PROJECT_ROOT": "<VALUE>",
        "PLAYGUARD_TOKEN_BUDGET": "0",
        "PLAYGUARD_UPDATE_CHECK": "true",
        "PLAYGUARD_DOCS_OPTIMIZE": "true",
        "PLAYGUARD_SMART_WAIT_MS": "1000",
        "PLAYGUARD_DOCS_CACHE_TTL": "86400",
        "PLAYGUARD_EVAL_CACHE_TTL": "500",
        "PLAYGUARD_HINT_THRESHOLD": "4",
        "PLAYGUARD_DELTA_THRESHOLD": "0.4",
        "PLAYGUARD_DEVTOOLS_BODY_MAX": "3000",
        "PLAYGUARD_DEVTOOLS_DEFAULTS": "true",
        "PLAYGUARD_DEVTOOLS_OPTIMIZE": "true",
        "PLAYGUARD_PREFETCH_SNAPSHOT": "false",
        "PLAYGUARD_SMART_WAIT_MIN_REFS": "5",
        "PLAYGUARD_DEVTOOLS_NETWORK_MAX": "30",
        "PLAYGUARD_SMART_WAIT_MAX_RETRIES": "3",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_PX": "2",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_COLOR": "5"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-zenyadar-playguard": {
      "command": "npx",
      "args": [
        "-y",
        "playguard"
      ],
      "env": {
        "FIGMA_MCP_CMD": "<VALUE>",
        "FIGMA_MCP_URL": "<VALUE>",
        "DEVTOOLS_MCP_CMD": "<VALUE>",
        "SHOPIFY_DEV_MCP_CMD": "<VALUE>",
        "CONTEXT7_MCP_CMD": "<VALUE>",
        "FIGMA_API_KEY": "<VALUE>",
        "OUTPUT_FORMAT": "json",
        "FIGMA_MCP_ARGS": "<VALUE>",
        "FIGMA_SVG_REFS": "true",
        "FIGMA_CACHE_TTL": "0",
        "PLAYGUARD_DELTA": "true",
        "PLAYGUARD_HINTS": "true",
        "CONTEXT7_API_KEY": "<VALUE>",
        "CONTEXT7_MCP_ARGS": "<VALUE>",
        "DEVTOOLS_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_CODEGEN": "<VALUE>",
        "PLAYGUARD_COMPACT": "true",
        "PLAYGUARD_LOG_DIR": "logs/",
        "FIGMA_TEXT_COMPACT": "10000",
        "PLAYWRIGHT_MCP_CMD": "<VALUE>",
        "PLAYWRIGHT_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_OUTPUT_DIR": ".playguard/",
        "PLAYGUARD_SMART_WAIT": "false",
        "SHOPIFY_DEV_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_SCREENSHOTS": "warn",
        "PLAYGUARD_EVAL_COMPACT": "10000",
        "PLAYGUARD_LIST_WAIT_MS": "6000",
        "PLAYGUARD_PROJECT_ROOT": "<VALUE>",
        "PLAYGUARD_TOKEN_BUDGET": "0",
        "PLAYGUARD_UPDATE_CHECK": "true",
        "PLAYGUARD_DOCS_OPTIMIZE": "true",
        "PLAYGUARD_SMART_WAIT_MS": "1000",
        "PLAYGUARD_DOCS_CACHE_TTL": "86400",
        "PLAYGUARD_EVAL_CACHE_TTL": "500",
        "PLAYGUARD_HINT_THRESHOLD": "4",
        "PLAYGUARD_DELTA_THRESHOLD": "0.4",
        "PLAYGUARD_DEVTOOLS_BODY_MAX": "3000",
        "PLAYGUARD_DEVTOOLS_DEFAULTS": "true",
        "PLAYGUARD_DEVTOOLS_OPTIMIZE": "true",
        "PLAYGUARD_PREFETCH_SNAPSHOT": "false",
        "PLAYGUARD_SMART_WAIT_MIN_REFS": "5",
        "PLAYGUARD_DEVTOOLS_NETWORK_MAX": "30",
        "PLAYGUARD_SMART_WAIT_MAX_RETRIES": "3",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_PX": "2",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_COLOR": "5"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-zenyadar-playguard": {
      "command": "npx",
      "args": [
        "-y",
        "playguard"
      ],
      "env": {
        "FIGMA_MCP_CMD": "<VALUE>",
        "FIGMA_MCP_URL": "<VALUE>",
        "DEVTOOLS_MCP_CMD": "<VALUE>",
        "SHOPIFY_DEV_MCP_CMD": "<VALUE>",
        "CONTEXT7_MCP_CMD": "<VALUE>",
        "FIGMA_API_KEY": "<VALUE>",
        "OUTPUT_FORMAT": "json",
        "FIGMA_MCP_ARGS": "<VALUE>",
        "FIGMA_SVG_REFS": "true",
        "FIGMA_CACHE_TTL": "0",
        "PLAYGUARD_DELTA": "true",
        "PLAYGUARD_HINTS": "true",
        "CONTEXT7_API_KEY": "<VALUE>",
        "CONTEXT7_MCP_ARGS": "<VALUE>",
        "DEVTOOLS_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_CODEGEN": "<VALUE>",
        "PLAYGUARD_COMPACT": "true",
        "PLAYGUARD_LOG_DIR": "logs/",
        "FIGMA_TEXT_COMPACT": "10000",
        "PLAYWRIGHT_MCP_CMD": "<VALUE>",
        "PLAYWRIGHT_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_OUTPUT_DIR": ".playguard/",
        "PLAYGUARD_SMART_WAIT": "false",
        "SHOPIFY_DEV_MCP_ARGS": "<VALUE>",
        "PLAYGUARD_SCREENSHOTS": "warn",
        "PLAYGUARD_EVAL_COMPACT": "10000",
        "PLAYGUARD_LIST_WAIT_MS": "6000",
        "PLAYGUARD_PROJECT_ROOT": "<VALUE>",
        "PLAYGUARD_TOKEN_BUDGET": "0",
        "PLAYGUARD_UPDATE_CHECK": "true",
        "PLAYGUARD_DOCS_OPTIMIZE": "true",
        "PLAYGUARD_SMART_WAIT_MS": "1000",
        "PLAYGUARD_DOCS_CACHE_TTL": "86400",
        "PLAYGUARD_EVAL_CACHE_TTL": "500",
        "PLAYGUARD_HINT_THRESHOLD": "4",
        "PLAYGUARD_DELTA_THRESHOLD": "0.4",
        "PLAYGUARD_DEVTOOLS_BODY_MAX": "3000",
        "PLAYGUARD_DEVTOOLS_DEFAULTS": "true",
        "PLAYGUARD_DEVTOOLS_OPTIMIZE": "true",
        "PLAYGUARD_PREFETCH_SNAPSHOT": "false",
        "PLAYGUARD_SMART_WAIT_MIN_REFS": "5",
        "PLAYGUARD_DEVTOOLS_NETWORK_MAX": "30",
        "PLAYGUARD_SMART_WAIT_MAX_RETRIES": "3",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_PX": "2",
        "PLAYGUARD_DESIGN_DIFF_TOLERANCE_COLOR": "5"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
FIGMA_MCP_CMD No Figma MCP launch command (Framelink), e.g. `npx` paired with FIGMA_MCP_ARGS. Unset (and no FIGMA_MCP_URL) = Figma disabled.
FIGMA_MCP_URL No Official Figma desktop MCP server URL, e.g. `http://127.0.0.1:3845/mcp`. No key needed; wins over FIGMA_MCP_CMD. `mcp.figma.com` is refused (catalog-only).
DEVTOOLS_MCP_CMD No Chrome DevTools MCP launch command, e.g. `npx -y chrome-devtools-mcp@latest`. Unset = DevTools disabled.
SHOPIFY_DEV_MCP_CMD No Shopify Dev MCP launch command, e.g. `npx -y @shopify/dev-mcp@latest`. Unset = disabled.
CONTEXT7_MCP_CMD No Context7 MCP launch command, e.g. `npx -y @upstash/context7-mcp@latest` (Node.js ≥ 20.18.1). Unset = disabled.
FIGMA_API_KEY No Figma API key forwarded to the Figma MCP child process (Framelink).
OUTPUT_FORMAT No Output format requested from Framelink (`figma-developer-mcp`). Must be `json` or `yaml` for the optimizer and Design Diff to parse it. Default: json
FIGMA_MCP_ARGS No Extra arguments for Figma MCP (space-separated; wrap an argument in quotes if it contains a space), e.g. `-y figma-developer-mcp --stdio`.
FIGMA_SVG_REFS No Set `false` to keep SVG geometry inline. Default: true
FIGMA_CACHE_TTL No Figma response cache TTL in ms. `0` = off. Framelink only. Default: 0
PLAYGUARD_DELTA No Set `false` to disable delta snapshots. Default: true
PLAYGUARD_HINTS No Set `false` to stop appending batching hints to tool descriptions. Default: true
CONTEXT7_API_KEY No Forwarded to Context7 only; raises the anonymous ~200 calls/day limit.
CONTEXT7_MCP_ARGS No Extra arguments for the Context7 MCP (space-separated; wrap an argument in quotes if it contains a space).
DEVTOOLS_MCP_ARGS No Extra arguments for chrome-devtools-mcp (space-separated; wrap an argument in quotes if it contains a space), e.g. `--headless --isolated`.
PLAYGUARD_CODEGEN No Set `keep` to stop PlayGuard adding `--codegen none` to the bundled Playwright MCP.
PLAYGUARD_COMPACT No Set `false` to disable compact snapshots and receive the raw accessibility tree. Default: true
PLAYGUARD_LOG_DIR No Override the NDJSON analytics log directory. Default: logs/
FIGMA_TEXT_COMPACT No Max characters for the Figma text response. Over-budget responses are trimmed structurally; `0` = off. Default: 10000
PLAYWRIGHT_MCP_CMD No Override the Playwright MCP command (defaults to the bundled binary).
PLAYWRIGHT_MCP_ARGS No Extra arguments passed to Playwright MCP (space-separated; wrap an argument in quotes if it contains a space). Passing `--output-dir` here takes precedence over PLAYGUARD_OUTPUT_DIR.
PLAYGUARD_OUTPUT_DIR No Where all on-disk artifacts go, split by origin: `.playguard/.qa/` for everything from the site under test and `.playguard/.figma/` for Figma image exports. Default: .playguard/
PLAYGUARD_SMART_WAIT No Set `1`/`true` to retry a snapshot that looks mid-load (few refs + a loading/spinner indicator) instead of returning it as-is. Default: false
SHOPIFY_DEV_MCP_ARGS No Extra arguments for the Shopify Dev MCP (space-separated; wrap an argument in quotes if it contains a space).
PLAYGUARD_SCREENSHOTS No Screenshot policy: `allow` / `warn` / `block` / `redirect`. In `warn` the screenshot executes with a warning; `redirect` replaces it with browser_snapshot unless visual:true or filename/element/ref/target/fullPage is given; `block` errors; `allow` has no restriction. Default: warn
PLAYGUARD_EVAL_COMPACT No Max characters for eval output. `0` = off. Default: 10000
PLAYGUARD_LIST_WAIT_MS No How long `tools/list` waits for an optional upstream (Figma, DevTools, Shopify Dev, Context7) before listing without it; its tools follow via `tools/list_changed`. Default: 6000
PLAYGUARD_PROJECT_ROOT No The root `.playguard/` is created in. Defaults to the nearest `.git`/`package.json` above `cwd`; set this to pin the location outright.
PLAYGUARD_TOKEN_BUDGET No Max tokens per snapshot; truncates on a line boundary so `[ref=]` tags are never split. `0` = off. Default: 0
PLAYGUARD_UPDATE_CHECK No Set `false` to skip the startup check for a newer version on npm (offline, CI). Default: true
PLAYGUARD_DOCS_OPTIMIZE No Set `false` for a pure passthrough of Shopify Dev and Context7: no response rewriting, no repeat notes, no `tools/list` compaction. Default: true
PLAYGUARD_SMART_WAIT_MS No Delay between smart-wait retries, in ms. Default: 1000
PLAYGUARD_DOCS_CACHE_TTL No Seconds a doc lookup stays in `.playguard/.cache/docs/` (7× for a version-pinned Context7 id). `0` = off. Default: 86400
PLAYGUARD_EVAL_CACHE_TTL No `browser_evaluate` cache TTL in ms. `0` = off. Default: 500
PLAYGUARD_HINT_THRESHOLD No After N consecutive snapshots without any action, inject a hint listing available interactive refs. Default: 4
PLAYGUARD_DELTA_THRESHOLD No Fraction of lines that must change to trigger a full snapshot instead of a delta (0–1). Default: 0.4
PLAYGUARD_DEVTOOLS_BODY_MAX No Max characters of a non-JSON request/response body in `get_network_request`. `0` = off. Default: 3000
PLAYGUARD_DEVTOOLS_DEFAULTS No Set `false` to stop appending `--no-usage-statistics`, `--no-performance-crux`, `--no-page-id-routing` and `--workspace` to the upstream argv. Default: true
PLAYGUARD_DEVTOOLS_OPTIMIZE No Set `false` for a pure passthrough: no response rewriting, no `tools/list` compaction, no error hints. Default: true
PLAYGUARD_PREFETCH_SNAPSHOT No Set `true` to prefetch a snapshot in the background after `browser_navigate`. Default: false
PLAYGUARD_SMART_WAIT_MIN_REFS No A snapshot with at least this many `[ref=]` elements is never considered "still loading". Default: 5
PLAYGUARD_DEVTOOLS_NETWORK_MAX No `list_network_requests` with more rows than this (and no paging/filter params) is summarized. `0` = off. Default: 30
PLAYGUARD_SMART_WAIT_MAX_RETRIES No Max smart-wait retries before giving up and returning the snapshot with a warning. Default: 3
PLAYGUARD_DESIGN_DIFF_TOLERANCE_PX No Size difference, in px, still counted as a match in design diff. Default: 2
PLAYGUARD_DESIGN_DIFF_TOLERANCE_COLOR No Per-channel RGB difference still counted as a match in design diff. Default: 5

Similar servers