Maple

v0.17.1
io.github.maple-kit/maple Checked 1 hour ago Published 1 month ago

Review comments pinned to a running frontend, read and resolved by your coding agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_comments List review comments

Return the review comments on a branch, newest first.

ParameterTypeDescription
branch *stringHead branch of the pull request the comments are on, such as `feat/login`. Not a pull request number.
statusesarrayOnly these states. Omit for all of them.

wait_for_comments Wait for review comments

Block until a new comment arrives or the wait elapses. Returns status "timeout" rather than failing when nothing arrives.

ParameterTypeDescription
branch *stringHead branch of the pull request the comments are on, such as `feat/login`. Not a pull request number.
cursorstringTimestamp from a previous call. Only comments newer than this are returned; omit it to drain everything already there.
timeoutMsnumberHow long to wait. Clamped to 55 seconds, under every client's ceiling.

resolve_comment Resolve a review comment

Mark a comment resolved, recording the commit that addressed it.

ParameterTypeDescription
id *stringThe comment's id.
sha *stringCommit you believe addresses it.
notestringWhat you changed, for the reviewer.

get_comment_context Get a comment's context

Return everything needed to act on one comment: anchor, viewport, surrounding markup and any replay link. A comment written under a Maple Mock carries `mock.recipe` and `mock.replay`, a link to the page in that state.

ParameterTypeDescription
branch *stringHead branch of the pull request the comments are on, such as `feat/login`. Not a pull request number.
id *stringThe comment's id.

start_solo Keep a preview's comments on this machine

Start a bridge on localhost and return the link that pairs a deployed preview with it. The reviewer opens the link in their browser and the comments they write there land in .maple/ for list_comments and wait_for_comments to read. They never count toward the merge gate.

ParameterTypeDescription
previewUrl *stringThe deployed preview's URL, such as `https://feat-login.preview.example`. Only that origin is paired with the bridge.