patrol_mcp 0.2.1 copy "patrol_mcp: ^0.2.1" to clipboard
patrol_mcp: ^0.2.1 copied to clipboard

An MCP server that empowers AI assistants to control, automate, and monitor interactive Patrol development sessions in Flutter.

0.2.1 #

  • Wait for the previous develop session to finish before starting a new one. quit followed quickly by run could otherwise let the old session's cleanup delete the entrypoint the new session had just generated ("Target file ... not found"), which is easy to hit with PATROL_FLAGS=--use-prebuilt-apks=<dir> where a session starts in seconds instead of minutes (#3266).
  • Fix the screenshot tool on iOS: it now captures to a temp file instead of /dev/stdout, since simctl io screenshot writes atomically and can't create its temp file inside /dev (#3257).
  • Require patrol_cli ^4.8.0, and with it patrol 4.9.0 or newer (#3223).
  • Require adb ^0.6.1: earlier versions don't have Adb.pull/Adb.remove, which the patrol_cli dependency uses (#3258).

0.2.0 #

  • Multi-device support: run auto-selects a device (Android before iOS, real before emulator/simulator) or targets one you pass as device, and a new devices tool lists what's attached. A --device in PATROL_FLAGS still wins.
  • Simplified setup: drop the run-patrol wrapper and point your MCP config straight at dart run patrol_mcp; FVM-pinned projects use the pinned Flutter automatically. See the README.
  • More reliable runs and cleanup:
    • run returns a failed run instead of hanging when the app exits before the test finishes (needs patrol 4.7.0+); a timed-out run is distinguishable from a still-running one.
    • No orphaned processes — sessions are torn down on cancel, client disconnect, and shutdown; the server force-exits if teardown stalls.
    • screenshot and native-tree work with multiple devices attached.
    • quit isn't misreported as a crash, and errors clearly when there's no active session.
    • Structured output from run/status/native-tree; run works from a different working directory (PROJECT_ROOT); starts on Windows.

0.1.4 #

  • Relax patrol_cli constraint to ^4.3.0 so patrol_mcp resolves alongside any patrol version from 4.5.0 onward. Fixes the version-solving conflict with patrol ^4.6.0 reported in #3075.

0.1.3 #

  • Bump patrol_cli to 4.3.1.

0.1.2 #

  • Update README.

0.1.1 #

  • Fix dart formatting for full pub.dev score.
  • Add example and remove global executable entry.
  • Update README setup to use pub.dev dependency.

0.1.0 #

  • Initial release.
  • MCP server for managing Patrol develop sessions.
  • Tools: run tests, take screenshots, get native view tree.
30
likes
160
points
46.5k
downloads

Documentation

Documentation
API reference

Publisher

verified publisherleancode.co

Weekly Downloads

An MCP server that empowers AI assistants to control, automate, and monitor interactive Patrol development sessions in Flutter.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#testing #e2e #flutter-test #claude #ai

License

Apache-2.0 (license)

Dependencies

adb, args, dispose_scope, image, logging, mcp_dart, path, patrol_cli

More

Packages that depend on patrol_mcp