Skip to content

feat(init): add Playwright MCP to the scaffolded .rulesync/.mcp.json - #2462

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-2432-init-playwright
Jul 28, 2026
Merged

feat(init): add Playwright MCP to the scaffolded .rulesync/.mcp.json#2462
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-2432-init-playwright

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Closes #2432 — adds the proposed playwright server to singletonTemplate("mcp") in src/lib/feature-scaffold.ts, matching the issue's requested shape.

Decisions on the issue's open points:

  • env: {}: mirrored from the existing entries for template consistency.
  • --headless: kept — no visible browser window in agent runs.
  • First-run browser download: accepted for a default scaffold; the entry is trivially removable, and the repo already dogfoods a Playwright fallback per its own CLAUDE.md.
  • pnpm vs npx: kept pnpm dlx for consistency with the existing rulesync entry; switching both to a more neutral runner is the separate follow-up the issue itself suggests.

Tests: the init MCP scaffold assertion now pins all three servers (docs did not embed the template verbatim, so no doc sync needed).

Verification

  • pnpm cicheck green; e2e-init passes locally.

🤖 Generated with Claude Code

Browser automation for SPA-style pages is a common agent need (this
repo's own CLAUDE.md tells contributors to fall back to a Playwright
workflow when webfetch cannot retrieve a page), so the init template
gains a playwright entry alongside deepwiki and rulesync. Decisions on
the issue's open points: the entry mirrors the existing style (pnpm
dlx, explicit empty env), stays --headless for agent contexts, and the
first-run browser download is accepted for a default scaffold (the
server is trivially removable; the pnpm-vs-npx question applies to the
existing rulesync entry too and stays a separate follow-up).

Closes #2432

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit a2d650d into main Jul 28, 2026
10 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

@dyoshikawa
dyoshikawa deleted the resolve-scrap-issue-2432-init-playwright branch July 28, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Playwright MCP to the mcp.json scaffolded by rulesync init

2 participants