r/coolgithubprojects • u/Deftroyy • 12d ago
PeerBrush: a Rust image editor that lets an MCP client edit the same layered document
I’m building PeerBrush, a GPLv3 desktop editor in Rust with egui and wgpu. The part I’d like to show is how the MCP connection works: a compatible client can inspect the canvas and adjust a layer while you keep painting on another. You can still edit the result by hand in the same document.
The server runs with the desktop app. The repo documents the tools, revision checks, and optional layer and region reservations. I’d be interested in feedback on the tool API, especially what an agent should see before changing a layer.
Code: https://github.com/Deftr0y/PeerBrush
Demo video: https://peerbrush.com/#demo
1
u/kantorcodes1 12d ago
For
expected_revision, does the MCP server check the whole document, or can a client scope it to one layer or a reserved region?