Skip to content

Conversation

@mikler
Copy link

@mikler mikler commented Dec 8, 2025

Rationale

When running this MCP in the scope of an AI Coding Agent, screenshots taken for evaluation pollute
the root folder of the project. This change introduces a configurable directory for screenshots.

Features:

  • New SCREENSHOTS_DIR environment variable to specify where screenshots are saved
  • Supports both absolute and relative paths (relative paths resolved from the current working directory)
  • Auto-creates the directory if it doesn't exist
  • Backward compatible – defaults to process working directory when not specified
  • Unit tests covering path resolution and error handling
  • README updated with configuration documentation

NB: Documentation submodules have been updated as requested by CONTRIBUTING.md

List of things in this PR:

  • Support absolute and relative paths (relative resolved from cwd)
  • Auto-create directory if it doesn't exist
  • Add dependency injection for testability
  • Add 15 unit tests covering path resolution and execution
  • Update README with configuration docs

…TS_DIR env var

  - Support absolute and relative paths (relative resolved from cwd)
  - Auto-create directory if it doesn't exist
  - Add dependency injection for testability
  - Add 15 unit tests covering path resolution and execution
  - Update README with configuration docs
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 8, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

Replaced `filename` with `filepath` in the success message to display the full file path of the saved screenshot. This provides more clarity to users on where the screenshot is stored.
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.

1 participant