Skip to content

Commit bc42ec6

Browse files
elberrdclaude
andauthored
fix: MCP do Playwright ganha npx -y — sem ele o stdio morre com cache frio ("Connection closed" no Windows) (#21)
Em máquina nova o npx pede "Ok to proceed?" no stdin — que é o canal stdio do MCP — e a conexão cai. O Convex já tinha -y; agora o Playwright também, com `--` para o `claude mcp add` não interpretar o -y como flag própria. Par deste fix no harness: .mcp.json e .cursor/mcp.json. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 5931847 commit bc42ec6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ export const IMPECCABLE = {
197197
export const MCPS = [
198198
{
199199
name: 'playwright',
200-
args: ['mcp', 'add', 'playwright', 'npx', '@playwright/mcp@latest'],
200+
// `--` keeps `-y` out of claude's own flag parsing; without `-y`, npx asks
201+
// "Ok to proceed?" on a cold cache and the MCP stdio channel dies
202+
// ("Connection closed" — the classic first-run-on-Windows report).
203+
args: ['mcp', 'add', 'playwright', '--', 'npx', '-y', '@playwright/mcp@latest'],
201204
},
202205
{
203206
name: 'convex',

0 commit comments

Comments
 (0)