patrol_mcp 0.2.1
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.
quitfollowed quickly byruncould 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 withPATROL_FLAGS=--use-prebuilt-apks=<dir>where a session starts in seconds instead of minutes (#3266). - Fix the
screenshottool on iOS: it now captures to a temp file instead of/dev/stdout, sincesimctl io screenshotwrites atomically and can't create its temp file inside/dev(#3257). - Require
patrol_cli^4.8.0, and with itpatrol4.9.0 or newer (#3223). - Require
adb ^0.6.1: earlier versions don't haveAdb.pull/Adb.remove, which thepatrol_clidependency uses (#3258).
0.2.0 #
- Multi-device support:
runauto-selects a device (Android before iOS, real before emulator/simulator) or targets one you pass asdevice, and a newdevicestool lists what's attached. A--deviceinPATROL_FLAGSstill wins. - Simplified setup: drop the
run-patrolwrapper and point your MCP config straight atdart run patrol_mcp; FVM-pinned projects use the pinned Flutter automatically. See the README. - More reliable runs and cleanup:
runreturns a failed run instead of hanging when the app exits before the test finishes (needspatrol4.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.
screenshotandnative-treework with multiple devices attached.quitisn't misreported as a crash, and errors clearly when there's no active session.- Structured output from
run/status/native-tree;runworks from a different working directory (PROJECT_ROOT); starts on Windows.
0.1.4 #
- Relax
patrol_cliconstraint to^4.3.0sopatrol_mcpresolves alongside anypatrolversion from 4.5.0 onward. Fixes the version-solving conflict withpatrol ^4.6.0reported in #3075.
0.1.3 #
- Bump
patrol_clito4.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.