Claude Desktop (MCP)

Claude Desktop users can run the full pipeline through a natural language prompt. @specwright/mcp provides pipeline tools that Claude uses to orchestrate the run — configure the MCP server in your Claude Desktop config and point it at your project directory.

Setup

Step 1 — Install the plugin (scaffolds the skill automatically):

npx @specwright/plugin init

Step 2 — Add @specwright/mcp to Claude Desktop config:

~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "specwright": {
      "command": "npx",
      "args": ["-y", "@specwright/mcp"],
      "env": {
        "PROJECT_PATH": "/absolute/path/to/your-project"
      }
    }
  }
}

Step 3 — Open your project folder in Claude Desktop.

Step 4 — Type a natural language prompt:

Generate E2E tests for the login page at http://localhost:3000/login using Specwright

Available MCP tools

@specwright/mcp exposes 9 tools that Claude uses internally:

ToolWhat it does
e2e_automateRead instructions.js and return pipeline plan
e2e_setupCollect initial config
e2e_configureRead/write instructions.js entries
e2e_exploreSpawn browser exploration agent
e2e_generateSpawn BDD + step generator agents
e2e_healSpawn test healer agent
e2e_executeRun tests (seed or BDD mode)
e2e_planWrite seed + plan from structured input
e2e_statusCheck pipeline state

Differences from CLI

Plugin + CLIClaude Desktop
Invoked by/e2e-automate slash commandNatural language prompt
Phase 6 approvalText yes in Claude CodeChat message reply