feat(init): add Playwright MCP to the scaffolded .rulesync/.mcp.json - #2462
Merged
Conversation
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>
Owner
Author
|
@dyoshikawa Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #2432 — adds the proposed
playwrightserver tosingletonTemplate("mcp")insrc/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.pnpmvsnpx: keptpnpm dlxfor consistency with the existingrulesyncentry; 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 cicheckgreen;e2e-initpasses locally.🤖 Generated with Claude Code