servers icon indicating copy to clipboard operation
servers copied to clipboard

Default Viewport always changes back to 800x600

Open raygamedev opened this issue 1 year ago • 5 comments

Describe the bug Even though default launch options is set "PUPPETEER_LAUNCH_OPTIONS": "{ \"headless\": false, \"defaultViewport\": { \"width\": 1920, \"height\": 1080 }, \"args\": [] }"

the viewport always changes back to 800x600 when Claude tries to continue

To Reproduce Steps to reproduce the behavior:

  1. Set the launch options to whatever size, it will open in that size, but immediately return back to 800x600 when Claude continues;

Expected behavior Page always stays in the size configured in the viewport

Logs If applicable, add logs to help explain your problem.

Additional context Add any other context about the problem here.

raygamedev avatar Apr 10 '25 07:04 raygamedev

Same issue here. Soups frustrating

morrelljd avatar Apr 17 '25 21:04 morrelljd

i found out that the screenshot is hardcoded for 800x600, you can try telling it to take screenshots at your resolution, though its not consistent

raygamedev avatar May 05 '25 08:05 raygamedev

Good catch @raygamedev , I think instead of the hard-coded defaults we would need to check for the applicable launch options first, then fall back to the hard-coded ones.

olaservo avatar May 05 '25 14:05 olaservo

I've opened a PR here which needs more testing, if anyone here can help check this out: https://github.com/modelcontextprotocol/servers/pull/1670

olaservo avatar May 05 '25 15:05 olaservo

Thanks for reporting this. This server has been moved to the archived repository at https://github.com/modelcontextprotocol/servers-archived to reduce maintenance overhead, so we can focus our efforts on a smaller set of core servers. Since this server is no longer actively maintained, we recommend checking out the alternatives listed in the Readme.

olaservo avatar May 29 '25 16:05 olaservo