@nevzatcirak/review-mcp 2.1.0 → 2.2.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/NOTICE +4 -1
  2. package/README.md +5 -3
  3. package/package.json +7 -7
package/NOTICE CHANGED
@@ -17,7 +17,10 @@ review agent, licensed under the MIT License. In particular:
17
17
  question-answering, pull-request description and code-suggestion tools,
18
18
  including the self-review scoring of code suggestions,
19
19
  - the idea of reviewing only the files touched since the last review
20
- (incremental review); only the idea follows PR-Agent, no code is copied.
20
+ (incremental review); only the idea follows PR-Agent, no code is copied,
21
+ - the idea of per-repository settings read from a file in the reviewed
22
+ repository (PR-Agent's .pr_agent.toml; review-mcp's .review-mcp.toml); only
23
+ the idea follows PR-Agent, no code is copied.
21
24
 
22
25
  review-mcp is an independent reimplementation in Go. No PR-Agent source code
23
26
  is included in this repository; the logic, prompt design, and schemas were
package/README.md CHANGED
@@ -187,7 +187,7 @@ except `job_result`).
187
187
  | `pr_info` | Which branch a pull request merges into and who has reviewed or approved it: human reviewers with their states, approval counts, required approvals and merge status where the provider exposes them. review-mcp's own reviews and comments are reported separately and never count as approvals. Also reports the CI results of the head commit (`ci`: state, counts and the failing checks), read from the provider; nothing is built or run. Read-only, no LLM call; see [Pull request status](docs/pr-info.md). |
188
188
  | `pr_comment_reply` | Replies to a pull request comment (inside the thread on Bitbucket Server and GitLab, and on GitHub for an inline comment; as a quoting PR-level comment on Gitea, and on GitHub for a general comment). |
189
189
  | `pr_comment_create` | Posts a new comment on a pull request, PR-level or on a changed line (`file` and `line`). A line outside the diff is refused, never posted at PR level instead. |
190
- | `pr_review` | Reviews a pull request with your LLM. The title, description, existing comments and diff are sent to your LLM endpoint. Optionally publishes the review: one overview comment, edited in place on later runs, and inline comments on the changed lines. The model is also given the head commit's CI results (failing and pending checks, and a CI line in the overview), the project's guidelines file (`.review-mcp/guidelines.md`, else `CONTRIBUTING.md`) and a listing of the directories the change touches, both read at the target branch so a pull request cannot rewrite its own rules. `focus` (`security`, `architecture`, `performance`, `ux`, `tests` or free text) reviews one area and never publishes; the findings of several focused reviews are merged by the client and published once with `findings` and `publish=true`, without another model call (the `multi_perspective_review` prompt describes the steps). With `incremental=true` (or `review.incremental`) it reviews only the files whose content changed since the last review it published, and lists the earlier findings the overview held without an inline comment on files that did not change; nothing changed means no model call and nothing posted. See [Reviewing pull requests](docs/review.md#incremental-review). |
190
+ | `pr_review` | Reviews a pull request with your LLM. The title, description, existing comments and diff are sent to your LLM endpoint. Optionally publishes the review: one overview comment, edited in place on later runs, and inline comments on the changed lines. The model is also given the head commit's CI results (failing and pending checks, and a CI line in the overview), the project's guidelines file (`.review-mcp/guidelines.md`, else `CONTRIBUTING.md`) and a listing of the directories the change touches, both read at the target branch so a pull request cannot rewrite its own rules. `focus` (`security`, `architecture`, `performance`, `ux`, `tests`, `docs` or free text) reviews one area and never publishes; the findings of several focused reviews are merged by the client and published once with `findings` and `publish=true`, without another model call (the `multi_perspective_review` prompt describes the steps). With `incremental=true` (or `review.incremental`) it reviews only the files whose content changed since the last review it published, and lists the earlier findings the overview held without an inline comment on files that did not change; nothing changed means no model call and nothing posted. See [Reviewing pull requests](docs/review.md#incremental-review). |
191
191
  | `pr_ask` | Answers a free-text question about a pull request, grounded in its title, description and diff. Optionally publishes the question and answer as a PR comment. |
192
192
  | `pr_describe` | Describes a pull request with your LLM: a title, the change types, a short summary and a walkthrough of the changed files. The title, description, branch names, commit messages and diff are sent to your LLM endpoint. By default it only reads; `publish=true` writes to the pull request, either one comment that later runs edit in place or a marked region at the end of the description (the author's text is never changed), and `update_title=true` also replaces the title. Files the model did not describe are listed, never padded in. See [Describing pull requests](docs/describe.md). |
193
193
  | `pr_improve` | Suggests code changes for a pull request with your LLM: for each suggestion the existing and the improved code, a label and a score from 0 to 10 given by a second, self-review model call; suggestions below `improve.min_score` are dropped and counted, never silently lost. Each suggestion is checked against the head version of the file before it is called anchored; ones that cannot be are marked, not hidden. The title, description, branch names, existing comments and diff are sent to your LLM endpoint, with the project's guidelines file and the listing of the touched directories read at the target branch, as for `pr_review`. By default it only reads; `publish=true` writes to the pull request: one overview comment that later runs edit in place, and an inline comment on each verified suggestion that is on changed lines of one hunk (not repeated on later runs), with the change as a native suggestion block on GitHub and GitLab and as a diff block on Gitea and Bitbucket Server. See [Suggesting code changes](docs/improve.md). |
@@ -204,6 +204,7 @@ except `job_result`).
204
204
  - [GitHub](docs/github.md): the token and its permissions, URL shapes and GitHub Enterprise Server, how the API address is derived, rate limits, the 3000-file and 250-commit limits, comment threads and why resolved state is not shown, replies and edits, one review per run, native suggestion blocks and their re-indentation rule, `pr_info` (approvals from rulesets and classic protection, the merge status), the description edit, repository context, and what is not supported.
205
205
  - [GitLab](docs/gitlab.md): the token and its scopes, URL shapes (nested groups, a context path), the minimum version 16.0, the diff base and the "diff not ready" case, the diff limits, rate limits, comment threads and replies, inline discussions and native suggestions, quick-action safety (what is sanitised, the diff fallback, the description refusal), `pr_info` (reviewers, approvals, the merge status), CI from commit statuses and what is not read, repository context, a proxy or `external_url` that differs from the base URL, and what is not supported.
206
206
  - [Pull request status](docs/pr-info.md): what `pr_info` reports (target branch, human reviewers, approvals, merge status, CI results), where each fact comes from, and why review-mcp's own reviews are not reviewers.
207
+ - [Repository config](docs/repo-config.md): a `.review-mcp.toml` in the reviewed repository, read at the target branch, tunes its reviews (language, ignore rules, guidelines paths, toggles, tighter caps, extra instructions, default focuses, documentation style) within an allow-list that never reaches hosts, models, limits or secrets.
207
208
  - [Repository context](docs/repo-context.md): opt-in, stdio only: shows the model where the symbols a pull request changes are used elsewhere in the project (a cached `git` fetch of the head, `git grep`, a budgeted prompt block), its configuration, the cache, the security properties, the coverage line and the evaluation harness.
208
209
  - [Getting started](docs/getting-started.md): the minimal configuration and the diff budget in detail.
209
210
  - [Troubleshooting](docs/troubleshooting.md): the `diag` commands and every error sentence.
@@ -218,8 +219,9 @@ lists every adapted file and carries PR-Agent's license. See it for details on
218
219
  what was derived and
219
220
  `docs/research/pr-agent-porting-map.md` for the pinned upstream revision
220
221
  studied during the porting research. The idea of reviewing only the files
221
- touched since the last review follows PR-Agent's incremental review (MIT); no
222
- code is copied.
222
+ touched since the last review follows PR-Agent's incremental review (MIT), and
223
+ per-repository settings (`.review-mcp.toml`) follow PR-Agent's `.pr_agent.toml`
224
+ (MIT); no code is copied.
223
225
 
224
226
  ## License
225
227
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevzatcirak/review-mcp",
3
- "version": "2.1.0",
3
+ "version": "2.2.0-rc.1",
4
4
  "description": "MCP server for AI-assisted pull-request review on Gitea and Bitbucket Server.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -23,12 +23,12 @@
23
23
  "node": ">=18"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@nevzatcirak/review-mcp-linux-x64": "2.1.0",
27
- "@nevzatcirak/review-mcp-linux-arm64": "2.1.0",
28
- "@nevzatcirak/review-mcp-darwin-x64": "2.1.0",
29
- "@nevzatcirak/review-mcp-darwin-arm64": "2.1.0",
30
- "@nevzatcirak/review-mcp-win32-x64": "2.1.0",
31
- "@nevzatcirak/review-mcp-win32-arm64": "2.1.0"
26
+ "@nevzatcirak/review-mcp-linux-x64": "2.2.0-rc.1",
27
+ "@nevzatcirak/review-mcp-linux-arm64": "2.2.0-rc.1",
28
+ "@nevzatcirak/review-mcp-darwin-x64": "2.2.0-rc.1",
29
+ "@nevzatcirak/review-mcp-darwin-arm64": "2.2.0-rc.1",
30
+ "@nevzatcirak/review-mcp-win32-x64": "2.2.0-rc.1",
31
+ "@nevzatcirak/review-mcp-win32-arm64": "2.2.0-rc.1"
32
32
  },
33
33
  "files": [
34
34
  "bin/review-mcp.js",