BriefCheck
v0.6.0Zero-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.
| Parameter | Type | Description |
|---|---|---|
diff | string | Raw unified diff text. |
git_base | string | Local git base ref (e.g. `origin/main`) to diff against `git_head`. |
git_head | string | Local git head ref when using `git_base` (defaults to `HEAD`). |
pr | string | GitHub PR reference (`owner/repo#123` or full PR URL). |
repo_dir | string | Optional local repository path for `git_base` or `staged`. |
staged | boolean | When 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).
| Parameter | Type | Description |
|---|---|---|
allow_external_files | boolean | Downgrade citations to files absent from the diff from error to warning. |
author | string | Optional GitHub login filter when `pr_comments` is true (e.g. `coderabbitai[bot]`). |
diff | string | Raw unified diff text. |
git_base | string | Local git base ref (e.g. `origin/main`) to diff against `git_head`. |
git_head | string | Local git head ref when using `git_base` (defaults to `HEAD`). |
pr | string | GitHub PR reference (`owner/repo#123` or full PR URL). |
pr_comments | boolean | When true with `pr`, fetch and audit existing comments/reviews on that PR. |
repo_dir | string | Optional local repository path for `git_base` or `staged`. |
require_citations | boolean | Fail when zero diff citations are found in the review text. |
review_text | string | Markdown review text whose citations should be verified. |
revision | string | Optional reviewed commit SHA override. |
staged | boolean | When true, read staged git changes (`git diff --cached`). |
strict_log_revision | boolean | Treat mismatched test-log revisions as errors instead of warnings. |
strict_warnings | boolean | Fail when any warning is emitted. |
test_log | string | Optional 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).
| Parameter | Type | Description |
|---|---|---|
report_text * | string | Markdown report containing a 4-column BriefCheck review table. |
allow_external_files | boolean | Downgrade citations to files absent from the diff from error to warning. |
diff | string | Raw unified diff text. |
fail_on | string | Optional CI judgment gate policy (default: `none`). |
git_base | string | Local git base ref (e.g. `origin/main`) to diff against `git_head`. |
git_head | string | Local git head ref when using `git_base` (defaults to `HEAD`). |
pr | string | GitHub PR reference (`owner/repo#123` or full PR URL). |
repo_dir | string | Optional local repository path for `git_base` or `staged`. |
revision | string | Optional reviewed commit SHA override. |
staged | boolean | When true, read staged git changes (`git diff --cached`). |
strict_log_revision | boolean | Treat mismatched test-log revisions as errors instead of warnings. |
strict_warnings | boolean | Fail when any warning is emitted. |
test_log | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
annotate | boolean | Append an explicit `base | new` annotated diff map (default: true). |
diff | string | Raw unified diff text when packing locally. |
git_base | string | Local git base ref when packing locally. |
git_head | string | Local git head ref (default: `HEAD`). |
include_checks | boolean | Include head-commit Check Runs summary when fetching from GitHub. |
include_comments | boolean | Include issue comments when fetching from GitHub. |
include_skill | boolean | Prepend BriefCheck review instructions (default: false). |
issue_number | integer | Explicit GitHub issue number when using `pr`. |
issue_text | string | Issue Markdown text (required when not using `pr`, or overrides GitHub issue). |
pr | string | GitHub PR reference (`owner/repo#123` or URL). |
repo_dir | string | Optional local repository path for `git_base`. |
test_log | string | Optional test log text to include. |