BriefCheck

v0.6.0
io.github.yulongwu-x/briefcheck Checked 23 hours ago Published 3 days ago

Zero-dependency deterministic diff-line verifier MCP server for AI PR reviews and acceptance tables.

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

briefcheck_annotate_diff

Render a unified diff (or local git diff / staged changes / GitHub PR) with explicit `base | new` line numbers for every hunk line so citations never drift.

ParameterTypeDescription
diffstringRaw unified diff text.
git_basestringLocal git base ref (e.g. `origin/main`) to diff against `git_head`.
git_headstringLocal git head ref when using `git_base` (defaults to `HEAD`).
prstringGitHub PR reference (`owner/repo#123` or full PR URL).
repo_dirstringOptional local repository path for `git_base` or `staged`.
stagedbooleanWhen true, read staged git changes (`git diff --cached`).

briefcheck_check_citations

Deterministically verify every `path:line`, `path:start-end`, `path:line:col`, and `path#Lline` diff citation in any free-form Markdown PR review (or existing GitHub PR comments when `pr_comments` is true).

ParameterTypeDescription
allow_external_filesbooleanDowngrade citations to files absent from the diff from error to warning.
authorstringOptional GitHub login filter when `pr_comments` is true (e.g. `coderabbitai[bot]`).
diffstringRaw unified diff text.
git_basestringLocal git base ref (e.g. `origin/main`) to diff against `git_head`.
git_headstringLocal git head ref when using `git_base` (defaults to `HEAD`).
prstringGitHub PR reference (`owner/repo#123` or full PR URL).
pr_commentsbooleanWhen true with `pr`, fetch and audit existing comments/reviews on that PR.
repo_dirstringOptional local repository path for `git_base` or `staged`.
require_citationsbooleanFail when zero diff citations are found in the review text.
review_textstringMarkdown review text whose citations should be verified.
revisionstringOptional reviewed commit SHA override.
stagedbooleanWhen true, read staged git changes (`git diff --cached`).
strict_log_revisionbooleanTreat mismatched test-log revisions as errors instead of warnings.
strict_warningsbooleanFail when any warning is emitted.
test_logstringOptional test log text to verify commit revision alignment.

briefcheck_verify_report

Deterministically verify a 4-column BriefCheck acceptance-criteria Markdown table (structure, canonical English/Chinese judgments, exact base/new diff hunk citations, and optional test-log commit alignment).

ParameterTypeDescription
report_text *stringMarkdown report containing a 4-column BriefCheck review table.
allow_external_filesbooleanDowngrade citations to files absent from the diff from error to warning.
diffstringRaw unified diff text.
fail_onstringOptional CI judgment gate policy (default: `none`).
git_basestringLocal git base ref (e.g. `origin/main`) to diff against `git_head`.
git_headstringLocal git head ref when using `git_base` (defaults to `HEAD`).
prstringGitHub PR reference (`owner/repo#123` or full PR URL).
repo_dirstringOptional local repository path for `git_base` or `staged`.
revisionstringOptional reviewed commit SHA override.
stagedbooleanWhen true, read staged git changes (`git diff --cached`).
strict_log_revisionbooleanTreat mismatched test-log revisions as errors instead of warnings.
strict_warningsbooleanFail when any warning is emitted.
test_logstringOptional test log text to check revision alignment.

briefcheck_pack_review

Assemble an issue, unified diff, and optional test log from local inputs or a GitHub PR (with auto-discovered linked issues) into a prompt-injection-framed review bundle with optional `base | new` annotated line map.

ParameterTypeDescription
annotatebooleanAppend an explicit `base | new` annotated diff map (default: true).
diffstringRaw unified diff text when packing locally.
git_basestringLocal git base ref when packing locally.
git_headstringLocal git head ref (default: `HEAD`).
include_checksbooleanInclude head-commit Check Runs summary when fetching from GitHub.
include_commentsbooleanInclude issue comments when fetching from GitHub.
include_skillbooleanPrepend BriefCheck review instructions (default: false).
issue_numberintegerExplicit GitHub issue number when using `pr`.
issue_textstringIssue Markdown text (required when not using `pr`, or overrides GitHub issue).
prstringGitHub PR reference (`owner/repo#123` or URL).
repo_dirstringOptional local repository path for `git_base`.
test_logstringOptional test log text to include.