mergesafe-mcp

v0.1.0
mergesafe-mcp Checked 1 day ago Published 1 month ago

MergeSafe findings for your own coding agent, over MCP (stdio).

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

get_findings

List MergeSafe's findings on the latest review of a pull request. repo is "owner/name". Each finding has severity (P0 most severe .. P3), title, problem, file, line, status, blocking, comment_id, comment_url, agent_prompt (a self-contained instruction for fixing it, read from the inline comment on GitHub) and comment_status: ok; no_comment (the finding has no inline comment); no_github_token (set GITHUB_TOKEN or run gh auth login, then call again); unavailable (the comment could not be read: open comment_url or the PR on GitHub). Intended loop: for each finding with blocking=true, check the cl…

ParameterTypeDescription
pr_number *integer
repo *string

request_review

Ask MergeSafe to review the current head of a pull request. repo is "owner/name" (or the bare name in the key's own organization). tier and addons are optional; leave them out to use the repository's own settings. Returns MergeSafe's answer unchanged. Call it after pushing fixes; a head that was already reviewed is refused, not charged twice.

ParameterTypeDescription
pr_number *integer
repo *string
addons
tier

reply

Reply on one MergeSafe inline comment thread, as you (with your own GitHub token, not MergeSafe's). repo is "owner/name"; comment_id is the finding's comment_id from get_findings. Use it to say "Fixed in <sha>" after pushing a fix, or to explain why a finding is not a real problem.

ParameterTypeDescription
body *string
comment_id *integer
pr_number *integer
repo *string

report_reproduction

Report the result of reproducing one MergeSafe finding, as a reply on its thread (with your own GitHub token). repo is "owner/name"; comment_id is the finding's comment_id from get_findings. Pass the exact command you ran, its exit code (non-zero when the defect showed) and the tail of its output; the output is shortened to its last lines; a command over 500 characters is refused rather than shortened. Run it against the code as it stands, before fixing, and report what happened rather than what you expected: the reply records it on the thread as evidence for whoever judges the finding.

ParameterTypeDescription
command *string
comment_id *integer
exit_code *integer
output_tail *string
pr_number *integer
repo *string