Skip to content

fix(mcp): fall back to tmpdir when cwd is filesystem root#40052

Open
derodero24 wants to merge 1 commit intomicrosoft:mainfrom
derodero24:fix-1509
Open

fix(mcp): fall back to tmpdir when cwd is filesystem root#40052
derodero24 wants to merge 1 commit intomicrosoft:mainfrom
derodero24:fix-1509

Conversation

@derodero24
Copy link
Copy Markdown

Summary

  • outputDir() resolves to /.playwright-mcp when the MCP server is spawned with cwd=/ (e.g. by Windsurf IDE), which fails on macOS where / is read-only (SIP/APFS)
  • Fall back to os.tmpdir() when cwd is the filesystem root, restoring the behavior from v0.0.60

Fixes microsoft/playwright-mcp#1509

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.

[Bug] v0.0.70: outputDir regression - tries to mkdir at filesystem root / on macOS

1 participant