Complete list of all dependencies, CLI tools, and environment variables required for this plugin.
Required for: MCP servers, npm packages
# Check if installed
node --version # Required: v18+ or v20+
npm --version # Required: v9+
npx --version # Required: v9+
# Or pnpm
pnpm --version # Alternative to npmInstall:
# macOS
brew install node
# Ubuntu/Debian
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
# Windows
# Download from nodejs.orgRequired for: tester agent, browser-debugger skill
Why: Browser-based UI testing via Chrome DevTools
# Check if installed
which google-chrome || which chrome
# macOS
brew install --cask google-chrome
# Ubuntu/Debian
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
# Windows
# Download from google.com/chromeRequired for: All agents, project management
# Check if installed
git --version
# macOS
brew install git
# Ubuntu/Debian
sudo apt install gitRequired for: codex-reviewer agent
What it does: AI-powered code review using Codex
# Check if installed
codex --version
# Install (if using Codex)
# Visit: https://github.com/anthropics/codex-cli
# Or install via npm:
npm install -g @anthropic-ai/codex-cliNote: If Codex CLI is not installed, codex-reviewer agent will gracefully degrade to using reviewer instead.
The plugin includes four MCP servers that auto-load when enabled. Configuration is done via environment variables in .claude/settings.json.
Personal secrets → .claude/settings.local.json (gitignored)
Project values → .claude/settings.json (committed)
Required:
APIDOG_API_TOKEN(secret, personal) - Your Apidog API tokenAPIDOG_PROJECT_ID(project-specific, shared) - Team's project ID
Get your token: https://apidog.com/settings/tokens
Setup:
Personal .claude/settings.local.json:
{
"env": {
"APIDOG_API_TOKEN": "your-personal-apidog-token"
}
}Project .claude/settings.json:
{
"env": {
"APIDOG_PROJECT_ID": "your-team-project-id"
}
}Required:
FIGMA_ACCESS_TOKEN(secret, personal) - Your Figma access token
Get your token: https://www.figma.com/developers/api#access-tokens
Setup:
Personal .claude/settings.local.json:
{
"env": {
"FIGMA_ACCESS_TOKEN": "your-personal-figma-token"
}
}No configuration required - Works out of the box!
What it provides:
- Launch and control Chrome browser
- Inspect DOM and CSS
- Debug responsive layouts
- Capture screenshots
- Analyze performance
Used by: ui-manual-tester agent, browser-debugger skill, /implement and /validate-ui commands
Install:
npm install -g claudishRequired:
- Claudish installed:
claudish --version OPENROUTER_API_KEY(secret, personal) - Your OpenRouter API key
Get your key: https://openrouter.ai/keys
What it provides:
- Call external AI models (Codex, Grok, GPT-5, MiniMax, Qwen)
- Expert code reviews
- UI/UX design validation
- Technical analysis
Setup:
Add to your shell profile (~/.zshrc or ~/.bashrc):
export OPENROUTER_API_KEY="sk-or-v1-your-key-here"Usage modes:
- Interactive mode (default):
claudish- Shows model selector, starts persistent session - Single-shot mode (agents use this):
claudish --model <model> --stdin- One task, returns result, exits
Note: Agents automatically use single-shot mode with --model flag for automation.
Documentation: https://github.com/MadAppGang/claudish
Variable: CHROME_EXECUTABLE_PATH
Purpose: Custom Chrome installation path
Default: Auto-detected
# Only needed if Chrome is in non-standard location
export CHROME_EXECUTABLE_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"Variable: CODEX_API_KEY
Purpose: API key for Codex CLI (if using paid tier)
Default: Not required for basic usage
export CODEX_API_KEY="your-codex-api-key"Recommended: Personal tokens + Project configuration
Project .claude/settings.json (committed to git):
{
"env": {
"APIDOG_PROJECT_ID": "your-team-project-id"
},
"enabledPlugins": {
"frontend@mag-claude-plugins": true
}
}Personal .claude/settings.local.json (gitignored):
{
"env": {
"APIDOG_API_TOKEN": "your-personal-token",
"FIGMA_ACCESS_TOKEN": "your-figma-token",
"OPENROUTER_API_KEY": "sk-or-v1-your-key"
}
}That's it! MCP servers auto-load from the plugin when you have the required environment variables set.
These MCP servers are included with the plugin and automatically start when you enable the plugin:
| MCP Server | Required By | Env Vars Required |
|---|---|---|
| apidog | api-analyst, /api-docs | APIDOG_API_TOKEN, APIDOG_PROJECT_ID |
| figma | /import-figma | FIGMA_ACCESS_TOKEN |
No manual installation needed! The plugin handles MCP server configuration automatically.
Setup: Add environment variables to .claude/settings.json or .claude/settings.local.json (see Quick Setup Example above).
Note: MCP servers are installed on-demand by npx when first used. No pre-installation required.
-
Install system dependencies:
# macOS brew install node git brew install --cask google-chrome # Ubuntu/Debian sudo apt install nodejs git google-chrome-stable
-
Clone project:
git clone your-project-repo cd your-project-repo -
Copy environment template:
cp .env.example .env
-
Get personal tokens:
- Apidog: https://app.apidog.com/settings/tokens
- Figma: https://www.figma.com/settings → Personal Access Tokens
- GitHub: https://github.com/settings/tokens
-
Edit .env with your tokens:
nano .env # Add your personal tokens -
Load environment:
source .env -
Verify setup:
/configure-mcp apidog # Should show: ✅ Configuration valid
# Add to ~/.zshrc or ~/.bashrc
echo 'export APIDOG_API_TOKEN="your-token"' >> ~/.zshrc
echo 'export FIGMA_ACCESS_TOKEN="your-token"' >> ~/.zshrc
source ~/.zshrcPros: Permanent, works across all terminals Cons: Tokens in plaintext in RC file
# Create .env in project root (add to .gitignore!)
cat > .env <<EOF
APIDOG_API_TOKEN=your-token
FIGMA_ACCESS_TOKEN=your-token
GITHUB_PERSONAL_ACCESS_TOKEN=your-token
EOF
# Load when needed
source .envPros: Project-specific, easy to manage Cons: Must source .env in each new terminal
# Install direnv
brew install direnv # macOS
sudo apt install direnv # Ubuntu
# Add to ~/.zshrc
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
# Create .envrc in project (add to .gitignore!)
cat > .envrc <<EOF
export APIDOG_API_TOKEN=your-token
export FIGMA_ACCESS_TOKEN=your-token
EOF
# Allow direnv
direnv allowPros: Automatic loading when entering directory Cons: Requires direnv installation
# macOS Keychain
security add-generic-password \
-s "APIDOG_API_TOKEN" \
-a "$USER" \
-w "your-token"
# Retrieve in script
export APIDOG_API_TOKEN=$(security find-generic-password \
-s "APIDOG_API_TOKEN" -a "$USER" -w)Pros: Encrypted storage Cons: Platform-specific
# Check Node.js
node --version # Should be v18+ or v20+
npm --version # Should be v9+
npx --version # Should be v9+
# Check Git
git --version # Any recent version
# Check Chrome
which google-chrome || which chrome # Should find Chrome
# Check Codex (optional)
codex --version # Only if using codex agent# Check required vars
echo $APIDOG_API_TOKEN # Should show your token
echo $FIGMA_ACCESS_TOKEN # Should show your token
# Check optional vars
echo $GITHUB_PERSONAL_ACCESS_TOKEN # If using GitHub# Test Apidog
npx -y @apidog/mcp-server \
--project-id 2847593 \
--token $APIDOG_API_TOKEN \
--test-connection
# Test Figma
npx -y @modelcontextprotocol/server-figma \
--token $FIGMA_ACCESS_TOKEN \
--test
# Test Chrome DevTools
npx -y @modelcontextprotocol/server-chrome-devtools \
--version# Verify plugin installed
/plugin list
# Should show:
# ✅ frontend@mag-claude-pluginsSolution: Install Node.js
brew install node # macOS
sudo apt install nodejs # UbuntuSolution: Ensure Chrome is installed and accessible
# macOS
brew install --cask google-chrome
# Check Chrome path
which google-chrome
# Set custom path if needed
export CHROME_EXECUTABLE_PATH="/path/to/chrome"Solution: Check token is valid
# Verify token is set
echo $APIDOG_API_TOKEN
# Regenerate token at:
# https://app.apidog.com/settings/tokensSolution: Verify Figma token
# Check token
echo $FIGMA_ACCESS_TOKEN
# Test manually
curl -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" \
https://api.figma.com/v1/meSolution: Install Codex CLI (optional)
npm install -g @anthropic-ai/codex-cli
codex --versionAlternative: Use regular code reviewer instead:
- The plugin will automatically fall back to
reviewerif Codex is not available
Create this file in your project root and commit it:
# .env.example - Template for required environment variables
# Copy to .env and fill in your personal tokens
# IMPORTANT: Add .env to .gitignore!
# Required for Apidog MCP server
# Get from: https://app.apidog.com/settings/tokens
APIDOG_API_TOKEN=your-personal-apidog-token-here
# Required for Figma MCP server
# Get from: https://www.figma.com/settings (Personal Access Tokens)
FIGMA_ACCESS_TOKEN=your-personal-figma-token-here
# Optional: GitHub MCP server
# Get from: https://github.com/settings/tokens
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your-github-token-here
# Optional: Custom Chrome path (usually auto-detected)
# CHROME_EXECUTABLE_PATH=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
# Optional: Codex API key (if using paid tier)
# CODEX_API_KEY=your-codex-api-key-hereEnsure these are in your .gitignore:
# Environment variables (NEVER commit!)
.env
.env.local
.envrc
# Claude Code local settings (NEVER commit!)
.claude/settings.local.json
# Secrets (NEVER commit!)
**/*.secret.json
**/*.credentials.jsonMinimum Required:
- ✅ Node.js v18+ with npm/npx
- ✅ Git
- ✅ Chrome browser
- ✅
APIDOG_API_TOKENenvironment variable - ✅
FIGMA_ACCESS_TOKENenvironment variable
Optional but Recommended:
- Codex CLI (for codex-powered code review)
GITHUB_PERSONAL_ACCESS_TOKEN(for GitHub operations)
Time to set up: 10-15 minutes for new developers ✅