Skip to main content
Glama

article-review-mcp

明示的な記事パッチをカテゴリ別コメント付きでレビューするためのビジュアルMCP Appです。

編集エージェントは、サーバーに黙って書き換えられた原稿を渡すのではありません。代わりに以下を送信します:

unchanged base document
+ explicit patches against that base
+ one or more categorized rationale comments per patch

サーバーはそれらのパッチを決定的に検証・適用し、インタラクティブなレビューUIを開き、人間の決定を記録し、最終記事を安全に組み立てます。

なぜパッチ優先なのか

ドキュメント全体の差分では何が変わったかは示せますが、エージェントの本来の意図は失われます。このプロジェクトでは、パッチがレビューの原子的な対象です:

Patch
├── exact target in the original document
├── replace / delete / insert_before / insert_after
├── proposed text
├── categorized comments explaining why
└── human decision: pending / accepted / rejected / edited

各コメントは正確に1つのプライマリtopicIdを持ちます。パッチには、異なるトピックにわたる複数のコメントを含めることができます。

Related MCP server: Lens

現在の機能

  • 不変のベースドキュメントに対する明示的なPatchSetの送信

  • replace、delete、insert_before、insert_after

  • ベースSHA-256の検証

  • オプションのcontextBeforeおよびcontextAfterによる正確なアンカー解決

  • 曖昧なアンカーと重複するパッチの拒否

  • すべてのパッチに必須のカテゴリ別根拠コメント

  • レビューセッションごとのカスタムトピック分類

  • トピックごとのパッチ/コメント数を持つトピックタブ

  • 2つのトピックレビューモード:

    • すべてのパッチを表示したまま、無関係なパッチを暗く表示する

    • 選択したトピックを含むパッチのみを表示する

  • 分割、統合、完全なFinalビュー

  • 英語と中国語の単語レベルの挿入/削除ハイライト

  • 表示中のパッチの承認、拒否、リセット、手動編集、一括決定

  • レビューアーコメントの追加、返信、解決、フィルタリング

  • 編集エージェント向けのコンパクトなトピックフィルタ済みフィードバック

  • 正確なパッチ決定の引き継ぎを伴う不変のリビジョンラウンド

  • JSON永続化、楽観的並行性制御、冪等性

  • MCP Appとトークン保護されたlocalhostブラウザビューア

  • 安全なプレビュー、新規ファイル書き込み、保護付き上書き、静的HTMLエクスポート

  • レガシーbase + full proposalツールは非推奨の互換エイリアスとして保持

要件

  • Node.js 20以降

  • ランタイム依存関係のインストールは不要

検証

npm run check

このスイートは構文チェックと13のテストを実行します。実際のstdio MCP交換とlocalhostビューアの呼び出しを含みます。

MCPサーバーとして実行

node src/cli.mjs \
  --stdio \
  --workspace /absolute/path/to/your/writing-workspace

クライアント設定の例:

{
  "mcpServers": {
    "article-review": {
      "command": "node",
      "args": [
        "/absolute/path/to/article-review-mcp/src/cli.mjs",
        "--stdio",
        "--workspace",
        "/absolute/path/to/your/writing-workspace"
      ]
    }
  }
}

プライマリエージェント呼び出し

article_review_submit_patchsetを呼び出します:

{
  "title": "Introduction revision",
  "format": "markdown",
  "base": {
    "type": "workspace_file",
    "path": "manuscript.md"
  },
  "baseHash": "optional-sha256-of-the-base",
  "topics": [
    {
      "id": "architecture",
      "label": "架构与叙事",
      "description": "章节组织、研究主线和段落衔接"
    },
    {
      "id": "logic",
      "label": "逻辑与论证"
    },
    {
      "id": "clarity",
      "label": "表达与清晰度"
    }
  ],
  "patchSet": {
    "id": "revision-001",
    "summary": "补齐 Section 1 到 Section 2 的理论过渡",
    "patches": [
      {
        "id": "selection-pressure-bridge",
        "operation": "replace",
        "target": {
          "oldText": "The later experiments therefore held the candidate text fixed...",
          "contextBefore": "These results support Prediction 1...",
          "contextAfter": "LLM judge reliability varies..."
        },
        "newText": "Collectively, Section 1 establishes that...",
        "comments": [
          {
            "topicId": "architecture",
            "kind": "proposal_rationale",
            "title": "补齐 Section 1 → Section 2 的逻辑桥梁",
            "body": "原文从多智能体失败直接跳到 Judge reliability,缺少为什么需要 Judge 的理论过渡。",
            "severity": "major"
          },
          {
            "topicId": "logic",
            "kind": "proposal_rationale",
            "title": "明确研究问题递进关系",
            "body": "先证明系统存在选择失败,再验证 Judge 是否能够提供可靠信号。"
          }
        ]
      }
    ]
  }
}

パッチのルール

  • すべてのパッチは同じ変更されていないベースドキュメントを対象とします。

  • 各パッチには少なくとも1つのカテゴリ別コメントを含める必要があります。

  • 各コメントは1つだけのプライマリtopicIdを持ちます。

  • target.oldTextは正確に1つの場所に解決される必要があります。

  • 同じテキストが繰り返し出現する場合は、contextBeforeとcontextAfterを使用します。

  • 重複するパッチと、安全でない共有境界での複数の挿入は拒否されます。

  • サーバーが提案を導出します。エージェントはプライマリワークフローで2番目の完全な原稿を送信しません。

典型的な検証エラー:

BASE_HASH_MISMATCH
ANCHOR_NOT_FOUND
ANCHOR_AMBIGUOUS
PATCH_OVERLAP
MISSING_PATCH_COMMENT
UNKNOWN_COMMENT_TOPIC

トピックに焦点を当てたレビュー

UIには次のようなトピックタブが表示されます:

全部主题 12
架构与叙事 4
逻辑与论证 3
证据与引用 2
方法与统计 1
表达与清晰度 2

トピックを選択すると、右側のコメントがそのトピックにフィルタリングされます。原稿ペインは次のいずれかが可能です:

  • すべてのパッチを保持し、無関係なものを暗く表示する、または

  • 無関係なパッチを完全に非表示にする。

JとKは、アクティブなトピックに関連するパッチのみをナビゲートします。

ローカルビューアのフォールバック

MCP Appをレンダリングしないクライアント向け:

node src/cli.mjs \
  --viewer 4173 \
  --workspace /absolute/path/to/your/writing-workspace

ビューアは127.0.0.1にバインドし、ランダムなトークンで保護されたURLを出力します。

合成デモ:

npm run demo

主要ツール

モデル向けワークフロー:

article_review_submit_patchset
article_review_open
article_review_get_feedback
article_review_add_comments
article_review_update_patchset
article_review_finalize

App限定のレビュー操作:

article_review_get_page
article_review_get_document
article_review_set_patch_decision
article_review_bulk_decide
article_review_edit_patch
article_review_add_comment
article_review_reply_comment
article_review_resolve_comment

非推奨の互換エイリアス:

article_review_create
article_review_get_summary
article_review_update_proposal
article_review_set_decision
article_review_edit_hunk

安全性の不変条件

  • ベースドキュメントは生のセグメントからバイト単位で再構築されます。

  • すべてのパッチを適用すると、導出された提案がバイト単位で再構築されます。

  • CRLF、空白、Markdown、中国語、英語、基本的なLaTeXは正規化されません。

  • 原稿テキストは不活性なテキストノードとしてレンダリングされ、innerHTMLを介しては決してレンダリングされません。

  • 絶対パス、..トラバーサル、ディレクトリシンボリックリンクのエスケープは拒否されます。

  • 変更にはexpectedVersionとidempotencyKeyが必要です。

  • ソースの上書きには、明示的な確認、ソースSHA-256の検証、バックアップが必要です。

ドキュメント

将来のスコープ

  • DOCXの変更履歴

  • PDF編集

  • 単語レベルの部分承認

  • リアルタイムの多ユーザーコラボレーション

  • Google Docsの同期

Available Tools

19 tools
article_review_add_commentAdd categorized review commentC

Attach one reviewer comment to a patch under exactly one primary topic.

Inputs: body (required), patchId (required), topicId (required), sessionId (required), +16 more.

article_review_add_commentsAdd categorized reviewer commentsC

Attach a batch of reviewer comments to existing patches. Each comment must use exactly one primary topicId.

Inputs: comments (required), sessionId (required), idempotencyKey (required), expectedVersion (required), +6 more.

article_review_bulk_decideBulk decide patchesC

Accept, reject, or reset all or selected patches.

Inputs: status (required), sessionId (required), idempotencyKey (required), expectedVersion (required), +6 more.

article_review_createCreate article review from full proposal (deprecated)A

Compatibility tool for base + complete proposal. Prefer article_review_submit_patchset so every change retains agent intent and categorized comments.

Inputs: base (required), title (required), proposal (required), format, +3 more.

article_review_edit_hunkEdit hunk (deprecated alias)C

Compatibility alias for article_review_edit_patch.

Inputs: hunkId (required), sessionId (required), editedText (required), idempotencyKey (required), +7 more.

article_review_edit_patchEdit patch outputC

Save a human-authored replacement for one patch.

Inputs: patchId (required), sessionId (required), editedText (required), idempotencyKey (required), +7 more.

article_review_finalizeFinalize reviewed articleA

Preview or safely write the article assembled from accepted, rejected, edited, and pending patches. Overwrite requires confirmation, hash checking, and backup.

Inputs: sessionId (required), mode, backup, destination, +3 more.

article_review_get_documentGet assembled documentC

Load the complete assembled document for the Final view.

Inputs: sessionId (required), pendingPolicy.

article_review_get_feedbackGet categorized review feedbackA

Return compact pending or rejected patch feedback for an editing agent. Filter by one comment topic without returning the complete manuscript.

Inputs: sessionId (required), topicId, statuses, includeComments.

article_review_get_pageGet filtered patch pageC

Load paginated patches, optionally showing only one comment topic.

Inputs: sessionId (required), limit, query, offset, +3 more.

article_review_get_summaryGet review summary (deprecated)A

Compatibility alias for article_review_get_feedback.

Inputs: sessionId (required).

article_review_openOpen article reviewC

Open an existing visual patch review and optionally filter it by comment topic.

Inputs: sessionId (required), limit, query, offset, +3 more.

article_review_reply_commentReply to review commentC

Record how an editing agent implemented a reviewer comment.

Inputs: commentId (required), sessionId (required), idempotencyKey (required), expectedVersion (required), +7 more.

article_review_resolve_commentResolve review commentC

Mark a review comment resolved or unresolved.

Inputs: commentId (required), sessionId (required), idempotencyKey (required), expectedVersion (required), +7 more.

article_review_set_decisionSet hunk decision (deprecated alias)D

Compatibility alias for article_review_set_patch_decision.

Inputs: hunkId (required), status (required), sessionId (required), idempotencyKey (required), +6 more.

article_review_set_patch_decisionSet patch decisionC

Accept, reject, or reset one patch.

Inputs: status (required), patchId (required), sessionId (required), idempotencyKey (required), +6 more.

article_review_submit_patchsetSubmit categorized article patchesA

Primary article-edit workflow. Submit the unchanged base document plus explicit non-overlapping patches. Every patch must include at least one comment assigned to exactly one primary topic. Use this instead of returning a giant rewritten document or textual diff in chat.

Inputs: base (required), title (required), patchSet (required), format, +4 more.

article_review_update_patchsetSubmit a revised patch setB

Create an immutable next review round from the same base document. Exact unchanged patches may carry decisions and reviewer comments; changed patches reset to pending.

Inputs: patchSet (required), sessionId (required), idempotencyKey (required), expectedVersion (required), +10 more.

article_review_update_proposalUpdate full proposal (deprecated)B

Compatibility tool for complete revised documents. Prefer article_review_update_patchset.

Inputs: proposal (required), sessionId (required), expectedVersion (required), limit, +7 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.6/5.0

    Scored across 19 tools

    Disambiguation2/5

    Multiple tools have overlapping purposes, including explicit compatibility aliases (create/submit_patchset, get_summary/get_feedback, set_decision/set_patch_decision, edit_hunk/edit_patch) and single/batch variants (add_comment/add_comments). This makes it difficult to tell tools apart despite clear descriptions.

    Naming Consistency3/5

    All tools share the article_review_ prefix, but verb/object patterns vary: some omit objects (open, finalize, create), one uses an adverb (bulk_decide), and compatibility aliases introduce inconsistent verbs for the same action (e.g., set_decision vs set_patch_decision).

    Tool Count4/5

    At 19 tools, the count is slightly above the ideal 3-15 range, but the patch-based review workflow is inherently complex. The presence of 5 redundant compatibility tools inflates the count unnecessarily, keeping it from a perfect score.

    Completeness4/5

    The surface covers the full review lifecycle: patch submission, update rounds, decisions, commenting, feedback, pagination, and finalization. Minor gaps exist, such as no explicit patch deletion or comment topic management, but these are workable.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A stateful, AST-aware MCP server for structured code review workflows. It enables iterative review sessions with AST-based context localization and provides structured feedback with verdicts and patch suggestions for JavaScript/TypeScript code.
      1
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for searching and retrieving submissions, reviews, meta-reviews, rebuttals, and decisions from OpenReview venues like NeurIPS and ICLR, enabling peer review analysis.
      15 PyPI
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for creating, validating, and reviewing implementation plans in GitHub Copilot Chat, with visual review interface and MongoDB persistence.
      MIT